Class FishMock

All Implemented Interfaces:
MessageTarget, io.papermc.paper.entity.Bucketable, io.papermc.paper.entity.Frictional, 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.attribute.Attributable, org.bukkit.command.CommandSender, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.Fish, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.WaterMob, org.bukkit.loot.Lootable, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder, org.bukkit.projectiles.ProjectileSource
Direct Known Subclasses:
PufferFishMock, SchoolableFishMock, TadpoleMock

public abstract class FishMock extends CreatureMock implements org.bukkit.entity.Fish
Mock implementation of a Fish.
See Also:
  • Constructor Details

    • FishMock

      protected FishMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new FishMock 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

    • isFromBucket

      public boolean isFromBucket()
      Specified by:
      isFromBucket in interface io.papermc.paper.entity.Bucketable
    • setFromBucket

      public void setFromBucket(boolean fromBucket)
      Specified by:
      setFromBucket in interface io.papermc.paper.entity.Bucketable
    • getPickupSound

      @NotNull public @NotNull org.bukkit.Sound getPickupSound()
      Specified by:
      getPickupSound in interface io.papermc.paper.entity.Bucketable