Interface HorseInventory

All Superinterfaces:
AbstractHorseInventory, Inventory, Iterable<ItemStack>

public interface HorseInventory extends AbstractHorseInventory
An interface to the inventory of a Horse.
  • Method Details

    • getSaddle

      @Nullable ItemStack getSaddle()
      Gets the item in the horse's saddle slot.
      Specified by:
      getSaddle in interface AbstractHorseInventory
      Returns:
      the saddle item
    • setSaddle

      void setSaddle(@Nullable ItemStack stack)
      Sets the item in the horse's saddle slot.
      Specified by:
      setSaddle in interface AbstractHorseInventory
      Parameters:
      stack - the new item
    • getArmor

      @Nullable ItemStack getArmor()
      Gets the item in the horse's armor slot.
      Returns:
      the armor item
    • setArmor

      void setArmor(@Nullable ItemStack stack)
      Sets the item in the horse's armor slot.
      Parameters:
      stack - the new item