Class PufferFishMock

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.PufferFish, 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

public class PufferFishMock extends FishMock implements org.bukkit.entity.PufferFish
Mock implementation of a PufferFish.
See Also:
  • Constructor Details

    • PufferFishMock

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

    • getBaseBucketItem

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getBaseBucketItem()
      Specified by:
      getBaseBucketItem in interface io.papermc.paper.entity.Bucketable
    • getPuffState

      public int getPuffState()
      Specified by:
      getPuffState in interface org.bukkit.entity.PufferFish
    • setPuffState

      public void setPuffState(int state)
      Specified by:
      setPuffState in interface org.bukkit.entity.PufferFish
    • getType

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

      protected EntityState getEntityState()
      Description copied from class: EntityMock
      Get the current state of this entity
      Overrides:
      getEntityState in class EntityMock
      Returns:
      The current state of this entity