Package org.bukkit.inventory
Interface HorseInventory
public interface HorseInventory extends Inventory
An interface to the inventory of a Horse.
-
Method Summary
Modifier and Type Method Description ItemStackgetArmor()Gets the item in the horse's armor slot.ItemStackgetSaddle()Gets the item in the horse's saddle slot.voidsetArmor(ItemStack stack)Sets the item in the horse's armor slot.voidsetSaddle(ItemStack stack)Sets the item in the horse's saddle slot.Methods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, all, clear, clear, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getHolder, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, iterator, iterator, remove, remove, remove, removeItem, setContents, setItem, setMaxStackSize
-
Method Details
-
getSaddle
ItemStack getSaddle()Gets the item in the horse's saddle slot.- Returns:
- the saddle item
-
getArmor
ItemStack getArmor()Gets the item in the horse's armor slot.- Returns:
- the armor item
-
setSaddle
Sets the item in the horse's saddle slot.- Parameters:
stack- the new item
-
setArmor
Sets the item in the horse's armor slot.- Parameters:
stack- the new item
-