Interface ChestedHorse

All Superinterfaces:
AbstractHorse, Ageable, Animals, Attributable, CommandSender, Creature, Damageable, Entity, InventoryHolder, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, 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.
      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