Interface ChestedHorse

All Superinterfaces:
AbstractHorse, Ageable, Animals, Attributable, net.kyori.adventure.audience.Audience, Breedable, CommandSender, Creature, Damageable, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, InventoryHolder, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, ServerOperator, Tameable, Vehicle
All Known Subinterfaces:
Donkey, Llama, Mule, TraderLlama

public interface ChestedHorse extends AbstractHorse
Represents Horse-like creatures which can carry an inventory.
  • Method Details

    • isCarryingChest

      boolean isCarryingChest()
      Gets whether the horse has a chest equipped.
      true if the horse has chest storage
    • setCarryingChest

      void setCarryingChest(boolean chest)
      Sets whether the horse has a chest equipped. Removing a chest will also clear the chest's inventory.
      chest - true if the horse should have a chest