Interface PufferFish

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Entity, Fish, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator, WaterMob

public interface PufferFish extends Fish
Represents a puffer fish.
  • Method Details

    • getPuffState

      int getPuffState()
      Returns the current puff state of this fish (i.e. how inflated it is).
      Returns:
      current puff state
    • setPuffState

      void setPuffState(int state)
      Sets the current puff state of this fish (i.e. how inflated it is).
      Parameters:
      state - new puff state