程序包 org.bukkit.inventory

# 接口 HorseInventory

所有超级接口:
  `AbstractHorseInventory`, `Inventory`, `Iterable<ItemStack>`

public interface HorseInventory extends AbstractHorseInventory
马(抽象)的界面接口.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@Nullable ItemStack`
  `getArmor()`
  获取马所装备的盔甲.
  `void`
  `setArmor(@Nullable ItemStack stack)`
  为这匹马装备盔甲.

  ### 从接口继承的方法 org.bukkit.inventory.AbstractHorseInventory

  `getSaddle, setSaddle`

  ### 从接口继承的方法 org.bukkit.inventory.Inventory

  `addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents`

  ### 从接口继承的方法 java.lang.Iterable

  `forEach, spliterator`

- ## 方法详细资料

  - ### getArmor

    @Nullable @Nullable ItemStack getArmor()
    获取马所装备的盔甲.

    原文:Gets the item in the horse's armor slot.

    返回:
      盔甲

  - ### setArmor

    void setArmor(@Nullable @Nullable ItemStack stack)
    为这匹马装备盔甲.

    原文:Sets the item in the horse's armor slot.

    参数:
      `stack` - 盔甲