接口 ChestedHorse

所有超级接口:
AbstractHorse, Ageable, Animals, Attributable, CommandSender, Creature, Damageable, Entity, InventoryHolder, LivingEntity, Metadatable, Nameable, Permissible, ProjectileSource, ServerOperator, Tameable, Vehicle
所有已知子接口:
Donkey, Llama, Mule

public interface ChestedHorse extends AbstractHorse
Represents Horse-like creatures which can carry an inventory.
  • 方法详细资料

    • 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