Package be.seeseemelk.mockbukkit.entity
Class FishHookMock
java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.AbstractProjectileMock
be.seeseemelk.mockbukkit.entity.ProjectileMock
be.seeseemelk.mockbukkit.entity.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>,org.bukkit.command.CommandSender,org.bukkit.entity.Entity,org.bukkit.entity.FishHook,org.bukkit.entity.Projectile,org.bukkit.metadata.Metadatable,org.bukkit.Nameable,org.bukkit.permissions.Permissible,org.bukkit.permissions.ServerOperator,org.bukkit.persistence.PersistentDataHolder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.SpigotNested classes/interfaces inherited from interface org.bukkit.entity.FishHook
org.bukkit.entity.FishHook.HookState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable net.kyori.adventure.text.ComponentvoidcustomName(@Nullable net.kyori.adventure.text.Component customName) booleandouble@Nullable org.bukkit.entity.Entityintint@NotNull org.bukkit.entity.SpawnCategory@NotNull org.bukkit.entity.FishHook.HookStategetState()@NotNull org.bukkit.entity.EntityTypegetType()intboolean@NotNull net.kyori.adventure.text.Componentname()booleanvoidsetApplyLure(boolean applyLure) voidsetBiteChance(double chance) voidsetHookedEntity(@Nullable org.bukkit.entity.Entity entity) voidsetMaxWaitTime(int maxWaitTime) voidsetMinWaitTime(int minWaitTime) voidsetWaitTime(int ticks) toString()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, 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, getScoreboardTags, getServer, getTeleportCause, getTicksLived, getTrackedPlayers, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, hashCode, hasMetadata, 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, nextComponentMessage, nextMessage, 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, teleportMethods 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, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, 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, teleportAsync, teleportAsyncMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaidMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.Nameable
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 interfaceorg.bukkit.entity.FishHook
-
setMinWaitTime
public void setMinWaitTime(int minWaitTime) - Specified by:
setMinWaitTimein interfaceorg.bukkit.entity.FishHook
-
getMaxWaitTime
public int getMaxWaitTime()- Specified by:
getMaxWaitTimein interfaceorg.bukkit.entity.FishHook
-
setMaxWaitTime
public void setMaxWaitTime(int maxWaitTime) - Specified by:
setMaxWaitTimein interfaceorg.bukkit.entity.FishHook
-
getApplyLure
public boolean getApplyLure()- Specified by:
getApplyLurein interfaceorg.bukkit.entity.FishHook
-
setApplyLure
public void setApplyLure(boolean applyLure) - Specified by:
setApplyLurein interfaceorg.bukkit.entity.FishHook
-
getBiteChance
public double getBiteChance()- Specified by:
getBiteChancein interfaceorg.bukkit.entity.FishHook
-
setBiteChance
- Specified by:
setBiteChancein interfaceorg.bukkit.entity.FishHook- Throws:
IllegalArgumentException
-
isInOpenWater
public boolean isInOpenWater()- Specified by:
isInOpenWaterin interfaceorg.bukkit.entity.FishHook
-
getHookedEntity
@Nullable public @Nullable org.bukkit.entity.Entity getHookedEntity()- Specified by:
getHookedEntityin interfaceorg.bukkit.entity.FishHook
-
setHookedEntity
public void setHookedEntity(@Nullable @Nullable org.bukkit.entity.Entity entity) - Specified by:
setHookedEntityin interfaceorg.bukkit.entity.FishHook
-
pullHookedEntity
public boolean pullHookedEntity()- Specified by:
pullHookedEntityin interfaceorg.bukkit.entity.FishHook
-
updateState
public void updateState()Updates theFishHook.HookStateof the hook. Normally the server does this every tick.- See Also:
-
getState
@NotNull public @NotNull org.bukkit.entity.FishHook.HookState getState()- Specified by:
getStatein interfaceorg.bukkit.entity.FishHook
-
getWaitTime
public int getWaitTime()- Specified by:
getWaitTimein interfaceorg.bukkit.entity.FishHook
-
setWaitTime
public void setWaitTime(int ticks) - Specified by:
setWaitTimein interfaceorg.bukkit.entity.FishHook
-
getType
@NotNull public @NotNull org.bukkit.entity.EntityType getType()- Specified by:
getTypein interfaceorg.bukkit.entity.Entity- Overrides:
getTypein classEntityMock
-
getSpawnCategory
@NotNull public @NotNull org.bukkit.entity.SpawnCategory getSpawnCategory()- Specified by:
getSpawnCategoryin interfaceorg.bukkit.entity.Entity- Overrides:
getSpawnCategoryin classEntityMock
-
toString
-
name
@NotNull public @NotNull net.kyori.adventure.text.Component name()- Specified by:
namein interfaceorg.bukkit.command.CommandSender- Overrides:
namein classEntityMock
-
customName
@Nullable public @Nullable net.kyori.adventure.text.Component customName()- Specified by:
customNamein interfaceorg.bukkit.Nameable- Overrides:
customNamein classEntityMock
-
customName
public void customName(@Nullable @Nullable net.kyori.adventure.text.Component customName) - Specified by:
customNamein interfaceorg.bukkit.Nameable- Overrides:
customNamein classEntityMock
-