Interface ChestedHorse

All Superinterfaces:
AbstractHorse, Ageable, Animals, Attributable, Audience, Breedable, CommandSender, Creature, Damageable, Entity, HoverEventSource<HoverEvent.ShowEntity>, InventoryHolder, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter, 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.
      Returns:
      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.
      Parameters:
      chest - true if the horse should have a chest