Package be.seeseemelk.mockbukkit.entity
Class FishHookMock
- All Implemented Interfaces:
MessageTarget,net.kyori.adventure.audience.Audience,net.kyori.adventure.pointer.Pointered,net.kyori.adventure.sound.Sound.Emitter,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>,CommandSender,Entity,FishHook,Projectile,Metadatable,Nameable,Permissible,ServerOperator,PersistentDataHolder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.SpigotNested classes/interfaces inherited from interface org.bukkit.entity.FishHook
FishHook.HookState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandouble@Nullable Entityintint@NotNull SpawnCategory@NotNull FishHook.HookStategetState()@NotNull EntityTypegetType()intbooleanbooleanvoidsetApplyLure(boolean applyLure) voidsetBiteChance(double chance) voidsetHookedEntity(@Nullable Entity entity) voidsetMaxWaitTime(int maxWaitTime) voidsetMinWaitTime(int minWaitTime) voidsetWaitTime(int ticks) @NotNull StringtoString()voidUpdates theFishHook.HookStateof the hook.Methods inherited from class be.seeseemelk.mockbukkit.entity.ProjectileMock
getShooter, setShooterMethods inherited from class be.seeseemelk.mockbukkit.entity.AbstractProjectileMock
doesBounce, setBounceMethods inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, asHoverEvent, assertLocation, assertNotTeleported, assertTeleported, clearTeleported, collidesAt, customName, customName, eject, equals, fromMobSpawner, getBoundingBox, getChunk, getCustomName, getEffectivePermissions, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getMetadata, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardEntry, getScoreboardTags, getServer, getTeleportCause, getTicksLived, getTrackedPlayers, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, hashCode, hasMetadata, hasPassengers, hasPermission, hasPermission, hasTeleported, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isSilent, isTicking, isValid, isVisualFire, leaveVehicle, lockFreezeTicks, name, nextComponentMessage, playEffect, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setLocation, setMetadata, setName, setOp, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleportWithoutEvent, wouldCollideUsingMethods inherited from class org.bukkit.command.CommandSender.Spigot
sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, collidesAt, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getTrackedPlayers, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, wouldCollideUsingMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaid, assertSaid, nextMessageMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.entity.Projectile
doesBounce, getShooter, setBounce, setShooterMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Constructor Details
-
FishHookMock
-
-
Method Details
-
getMinWaitTime
public int getMinWaitTime()- Specified by:
getMinWaitTimein interfaceFishHook
-
setMinWaitTime
public void setMinWaitTime(int minWaitTime) - Specified by:
setMinWaitTimein interfaceFishHook
-
getMaxWaitTime
public int getMaxWaitTime()- Specified by:
getMaxWaitTimein interfaceFishHook
-
setMaxWaitTime
public void setMaxWaitTime(int maxWaitTime) - Specified by:
setMaxWaitTimein interfaceFishHook
-
getApplyLure
public boolean getApplyLure()- Specified by:
getApplyLurein interfaceFishHook
-
setApplyLure
public void setApplyLure(boolean applyLure) - Specified by:
setApplyLurein interfaceFishHook
-
getBiteChance
public double getBiteChance()- Specified by:
getBiteChancein interfaceFishHook
-
setBiteChance
- Specified by:
setBiteChancein interfaceFishHook- Throws:
IllegalArgumentException
-
isInOpenWater
public boolean isInOpenWater()- Specified by:
isInOpenWaterin interfaceFishHook
-
getHookedEntity
- Specified by:
getHookedEntityin interfaceFishHook
-
setHookedEntity
- Specified by:
setHookedEntityin interfaceFishHook
-
pullHookedEntity
public boolean pullHookedEntity()- Specified by:
pullHookedEntityin interfaceFishHook
-
updateState
public void updateState()Updates theFishHook.HookStateof the hook. Normally the server does this every tick.- See Also:
-
getState
-
getWaitTime
public int getWaitTime()- Specified by:
getWaitTimein interfaceFishHook
-
setWaitTime
public void setWaitTime(int ticks) - Specified by:
setWaitTimein interfaceFishHook
-
getType
- Specified by:
getTypein interfaceEntity- Overrides:
getTypein classEntityMock
-
getSpawnCategory
- Specified by:
getSpawnCategoryin interfaceEntity- Overrides:
getSpawnCategoryin classEntityMock
-
toString
-