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
  • Constructor Details

    • FishHookMock

      public FishHookMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
  • 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
    • 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
    • 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
    • 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

      public String toString()
      Overrides:
      toString in class Object
    • name

      @NotNull public @NotNull net.kyori.adventure.text.Component name()
      Specified by:
      name in interface org.bukkit.command.CommandSender
      Overrides:
      name in class EntityMock
    • customName

      @Nullable public @Nullable net.kyori.adventure.text.Component customName()
      Specified by:
      customName in interface org.bukkit.Nameable
      Overrides:
      customName in class EntityMock
    • customName

      public void customName(@Nullable @Nullable net.kyori.adventure.text.Component customName)
      Specified by:
      customName in interface org.bukkit.Nameable
      Overrides:
      customName in class EntityMock