程序包 org.bukkit.inventory

# 接口 AbstractHorseInventory

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

所有已知子接口:
  `HorseInventory`, `LlamaInventory`

public interface AbstractHorseInventory extends Inventory
马(抽象概念的)(`AbstractHorse`)的物品栏界面接口.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@Nullable ItemStack`
  `getSaddle()`
  获取马所装备的马鞍.
  `void`
  `setSaddle(@Nullable ItemStack stack)`
  为这匹马装备一个马鞍.

  ### 从接口继承的方法 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`

- ## 方法详细资料

  - ### getSaddle

    @Nullable @Nullable ItemStack getSaddle()
    获取马所装备的马鞍.

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

    返回:
      马鞍

  - ### setSaddle

    void setSaddle(@Nullable @Nullable ItemStack stack)
    为这匹马装备一个马鞍.

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

    参数:
      `stack` - 马鞍