Package org.bukkit.inventory
Interface HorseInventory
- All Superinterfaces:
AbstractHorseInventory
,Inventory
,Iterable<ItemStack>
An interface to the inventory of a Horse.
-
Method Summary
Modifier and TypeMethodDescriptiongetArmor()
Gets the item in the horse's armor slot.Gets the item in the horse's saddle slot.void
Sets the item in the horse's armor slot.void
Sets the item in the horse's saddle slot.Methods inherited from interface 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
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getSaddle
Gets the item in the horse's saddle slot.- Specified by:
getSaddle
in interfaceAbstractHorseInventory
- Returns:
- the saddle item
-
setSaddle
Sets the item in the horse's saddle slot.- Specified by:
setSaddle
in interfaceAbstractHorseInventory
- Parameters:
stack
- the new item
-
getArmor
Gets the item in the horse's armor slot.- Returns:
- the armor item
-
setArmor
Sets the item in the horse's armor slot.- Parameters:
stack
- the new item
-