Package be.seeseemelk.mockbukkit.entity
Class FishHookMock
- All Implemented Interfaces:
MessageTarget,PersistentDataViewHolder,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
Mock implementation of a
FishHook.- See Also:
-
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 -
Field Summary
Fields inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
entityData, perms, server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandouble@Nullable Entityfloatintintfloatintint@NotNull SpawnCategory@NotNull FishHook.HookStategetState()@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int@NotNull EntityTypegetType()intbooleanbooleanbooleanbooleanvoidvoidsetApplyLure(boolean applyLure) voidsetBiteChance(double chance) voidsetHookedEntity(@Nullable Entity entity) voidsetLureAngle(float min, float max) voidsetLureTime(int min, int max) voidsetMaxLureAngle(float maxLureAngle) voidsetMaxLureTime(int maxLureTime) voidsetMaxWaitTime(int maxWaitTime) voidsetMinLureAngle(float minLureAngle) voidsetMinLureTime(int minLureTime) voidsetMinWaitTime(int minWaitTime) voidsetRainInfluenced(boolean rainInfluenced) voidsetSkyInfluenced(boolean skyInfluenced) voidsetTimeUntilBite(@org.jetbrains.annotations.Range(from=1L, to=2147483647L) int i) voidsetWaitTime(int ticks) voidsetWaitTime(int min, int max) @NotNull StringtoString()voidUpdates theFishHook.HookStateof the hook.Methods inherited from class be.seeseemelk.mockbukkit.entity.ProjectileMock
canHitEntity, getOwnerUniqueId, getShooter, hasBeenShot, hasLeftShooter, hitEntity, hitEntity, setHasBeenShot, setHasLeftShooter, 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, broadcastHurtAnimation, clearMetadata, clearTeleported, collidesAt, copy, copy, createSnapshot, customName, customName, eject, equals, fromMobSpawner, getAsString, getBoundingBox, getChunk, getCustomName, getEffectivePermissions, getEntityId, getEntityProperty, getEntitySpawnReason, getEntityState, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getMetadata, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntry, getScoreboardEntryName, getScoreboardTags, getServer, getSubType, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTeleportCause, getTicksLived, getTrackedBy, getTrackedPlayers, getTransitivePassengers, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hashCode, hasMetadata, hasNoPhysics, hasPassengers, hasPermission, hasPermission, hasTeleported, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isInWorld, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, name, nextComponentMessage, playEffect, recalculatePermissions, remove, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvisible, setInvulnerable, setInWater, setLastDamageCause, setLocation, setMetadata, setName, setNoPhysics, setOnGround, setOp, setPassenger, setPersistent, setPortalCooldown, setPose, setRotation, setSilent, setSneaking, setSpawnReason, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportWithoutEvent, tick, 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
clearResourcePacks, clearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, broadcastHurtAnimation, collidesAt, copy, copy, createSnapshot, eject, fromMobSpawner, getAsString, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntryName, getScoreboardTags, getServer, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getTrackedPlayers, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hasNoPhysics, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isInWorld, isOnGround, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvisible, setInvulnerable, setLastDamageCause, setNoPhysics, setPassenger, setPersistent, setPortalCooldown, setPose, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, 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
canHitEntity, doesBounce, getOwnerUniqueId, getShooter, hasBeenShot, hasLeftShooter, hitEntity, hitEntity, setBounce, setHasBeenShot, setHasLeftShooter, setShooterMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Constructor Details
-
FishHookMock
- Parameters:
server- The server to create the entity on.uuid- The UUID of the entity.
-
-
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
-
setWaitTime
public void setWaitTime(int min, int max) - Specified by:
setWaitTimein interfaceFishHook
-
getMinLureTime
public int getMinLureTime()- Specified by:
getMinLureTimein interfaceFishHook
-
setMinLureTime
public void setMinLureTime(int minLureTime) - Specified by:
setMinLureTimein interfaceFishHook
-
getMaxLureTime
public int getMaxLureTime()- Specified by:
getMaxLureTimein interfaceFishHook
-
setMaxLureTime
public void setMaxLureTime(int maxLureTime) - Specified by:
setMaxLureTimein interfaceFishHook
-
setLureTime
public void setLureTime(int min, int max) - Specified by:
setLureTimein interfaceFishHook
-
getMinLureAngle
public float getMinLureAngle()- Specified by:
getMinLureAnglein interfaceFishHook
-
setMinLureAngle
public void setMinLureAngle(float minLureAngle) - Specified by:
setMinLureAnglein interfaceFishHook
-
getMaxLureAngle
public float getMaxLureAngle()- Specified by:
getMaxLureAnglein interfaceFishHook
-
setMaxLureAngle
public void setMaxLureAngle(float maxLureAngle) - Specified by:
setMaxLureAnglein interfaceFishHook
-
setLureAngle
public void setLureAngle(float min, float max) - Specified by:
setLureAnglein 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
-
isSkyInfluenced
public boolean isSkyInfluenced()- Specified by:
isSkyInfluencedin interfaceFishHook
-
setSkyInfluenced
public void setSkyInfluenced(boolean skyInfluenced) - Specified by:
setSkyInfluencedin interfaceFishHook
-
isRainInfluenced
public boolean isRainInfluenced()- Specified by:
isRainInfluencedin interfaceFishHook
-
setRainInfluenced
public void setRainInfluenced(boolean rainInfluenced) - Specified by:
setRainInfluencedin 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
-
getTimeUntilBite
public @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int getTimeUntilBite()- Specified by:
getTimeUntilBitein interfaceFishHook
-
setTimeUntilBite
public void setTimeUntilBite(@org.jetbrains.annotations.Range(from=1L, to=2147483647L) int i) throws IllegalArgumentException - Specified by:
setTimeUntilBitein interfaceFishHook- Throws:
IllegalArgumentException
-
resetFishingState
public void resetFishingState()- Specified by:
resetFishingStatein interfaceFishHook
-
getType
- Specified by:
getTypein interfaceEntity- Overrides:
getTypein classEntityMock
-
getSpawnCategory
- Specified by:
getSpawnCategoryin interfaceEntity- Overrides:
getSpawnCategoryin classEntityMock
-
toString
-