Interface Sittable

All Superinterfaces:
Audience, CommandSender, DataComponentView, Entity, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ServerOperator, Sound.Emitter
All Known Subinterfaces:
Camel, CamelHusk, Cat, Fox, Panda, Parrot, Wolf

public interface Sittable extends Entity
An entity that can sit still.
Since:
1.12
  • Method Details

    • isSitting

      boolean isSitting()
      Checks if this entity is sitting
      Returns:
      true if sitting
      Since:
      1.12
    • setSitting

      void setSitting(boolean sitting)
      Sets if this entity is sitting. Will remove any path that the entity was following beforehand.
      Parameters:
      sitting - true if sitting
      Since:
      1.12