Class FishHookMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
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

public class FishHookMock extends ProjectileMock implements org.bukkit.entity.FishHook
Mock implementation of a FishHook.
See Also:
  • Constructor Details

    • FishHookMock

      public FishHookMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new FishHookMock on the provided ServerMock with a specified UUID.
      Parameters:
      server - The server to create the entity on.
      uuid - The UUID of the entity.
  • Method Details

    • getMinWaitTime

      public int getMinWaitTime()
      Specified by:
      getMinWaitTime in interface org.bukkit.entity.FishHook
    • setMinWaitTime

      public void setMinWaitTime(int minWaitTime)
      Specified by:
      setMinWaitTime in interface org.bukkit.entity.FishHook
    • getMaxWaitTime

      public int getMaxWaitTime()
      Specified by:
      getMaxWaitTime in interface org.bukkit.entity.FishHook
    • setMaxWaitTime

      public void setMaxWaitTime(int maxWaitTime)
      Specified by:
      setMaxWaitTime in interface org.bukkit.entity.FishHook
    • setWaitTime

      public void setWaitTime(int min, int max)
      Specified by:
      setWaitTime in interface org.bukkit.entity.FishHook
    • getMinLureTime

      public int getMinLureTime()
      Specified by:
      getMinLureTime in interface org.bukkit.entity.FishHook
    • setMinLureTime

      public void setMinLureTime(int minLureTime)
      Specified by:
      setMinLureTime in interface org.bukkit.entity.FishHook
    • getMaxLureTime

      public int getMaxLureTime()
      Specified by:
      getMaxLureTime in interface org.bukkit.entity.FishHook
    • setMaxLureTime

      public void setMaxLureTime(int maxLureTime)
      Specified by:
      setMaxLureTime in interface org.bukkit.entity.FishHook
    • setLureTime

      public void setLureTime(int min, int max)
      Specified by:
      setLureTime in interface org.bukkit.entity.FishHook
    • getMinLureAngle

      public float getMinLureAngle()
      Specified by:
      getMinLureAngle in interface org.bukkit.entity.FishHook
    • setMinLureAngle

      public void setMinLureAngle(float minLureAngle)
      Specified by:
      setMinLureAngle in interface org.bukkit.entity.FishHook
    • getMaxLureAngle

      public float getMaxLureAngle()
      Specified by:
      getMaxLureAngle in interface org.bukkit.entity.FishHook
    • setMaxLureAngle

      public void setMaxLureAngle(float maxLureAngle)
      Specified by:
      setMaxLureAngle in interface org.bukkit.entity.FishHook
    • setLureAngle

      public void setLureAngle(float min, float max)
      Specified by:
      setLureAngle in interface org.bukkit.entity.FishHook
    • getApplyLure

      public boolean getApplyLure()
      Specified by:
      getApplyLure in interface org.bukkit.entity.FishHook
    • setApplyLure

      public void setApplyLure(boolean applyLure)
      Specified by:
      setApplyLure in interface org.bukkit.entity.FishHook
    • getBiteChance

      public double getBiteChance()
      Specified by:
      getBiteChance in interface org.bukkit.entity.FishHook
    • setBiteChance

      public void setBiteChance(double chance) throws IllegalArgumentException
      Specified by:
      setBiteChance in interface org.bukkit.entity.FishHook
      Throws:
      IllegalArgumentException
    • isInOpenWater

      public boolean isInOpenWater()
      Specified by:
      isInOpenWater in interface org.bukkit.entity.FishHook
    • getHookedEntity

      @Nullable public @Nullable org.bukkit.entity.Entity getHookedEntity()
      Specified by:
      getHookedEntity in interface org.bukkit.entity.FishHook
    • setHookedEntity

      public void setHookedEntity(@Nullable @Nullable org.bukkit.entity.Entity entity)
      Specified by:
      setHookedEntity in interface org.bukkit.entity.FishHook
    • pullHookedEntity

      public boolean pullHookedEntity()
      Specified by:
      pullHookedEntity in interface org.bukkit.entity.FishHook
    • isSkyInfluenced

      public boolean isSkyInfluenced()
      Specified by:
      isSkyInfluenced in interface org.bukkit.entity.FishHook
    • setSkyInfluenced

      public void setSkyInfluenced(boolean skyInfluenced)
      Specified by:
      setSkyInfluenced in interface org.bukkit.entity.FishHook
    • isRainInfluenced

      public boolean isRainInfluenced()
      Specified by:
      isRainInfluenced in interface org.bukkit.entity.FishHook
    • setRainInfluenced

      public void setRainInfluenced(boolean rainInfluenced)
      Specified by:
      setRainInfluenced in interface org.bukkit.entity.FishHook
    • updateState

      public void updateState()
      Updates the FishHook.HookState of the hook. Normally the server does this every tick.
      See Also:
    • getState

      @NotNull public @NotNull org.bukkit.entity.FishHook.HookState getState()
      Specified by:
      getState in interface org.bukkit.entity.FishHook
    • getWaitTime

      public int getWaitTime()
      Specified by:
      getWaitTime in interface org.bukkit.entity.FishHook
    • setWaitTime

      public void setWaitTime(int ticks)
      Specified by:
      setWaitTime in interface org.bukkit.entity.FishHook
    • getTimeUntilBite

      public @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int getTimeUntilBite()
      Specified by:
      getTimeUntilBite in interface org.bukkit.entity.FishHook
    • setTimeUntilBite

      public void setTimeUntilBite(@org.jetbrains.annotations.Range(from=1L, to=2147483647L) int i) throws IllegalArgumentException
      Specified by:
      setTimeUntilBite in interface org.bukkit.entity.FishHook
      Throws:
      IllegalArgumentException
    • resetFishingState

      public void resetFishingState()
      Specified by:
      resetFishingState in interface org.bukkit.entity.FishHook
    • getType

      @NotNull public @NotNull org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
      Overrides:
      getType in class EntityMock
    • getSpawnCategory

      @NotNull public @NotNull org.bukkit.entity.SpawnCategory getSpawnCategory()
      Specified by:
      getSpawnCategory in interface org.bukkit.entity.Entity
      Overrides:
      getSpawnCategory in class EntityMock
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object