![]() |
Bukkit
1.4.7-R1.0
|
Inheritance diagram for org.bukkit.inventory.BrewerInventory:
Collaboration diagram for org.bukkit.inventory.BrewerInventory:Public Member Functions | |
| ItemStack | getIngredient () |
| Get the current ingredient for brewing. | |
| void | setIngredient (ItemStack ingredient) |
| Set the current ingredient for brewing. | |
| BrewingStand | getHolder () |
Public Member Functions inherited from org.bukkit.inventory.Inventory | |
| int | getSize () |
| Returns the size of the inventory. | |
| int | getMaxStackSize () |
| Returns the maximum stack size for an ItemStack in this inventory. | |
| void | setMaxStackSize (int size) |
| This method allows you to change the maximum stack size for an inventory. | |
| String | getName () |
| Returns the name of the inventory. | |
| ItemStack | getItem (int index) |
| Returns the ItemStack found in the slot at the given index. | |
| void | setItem (int index, ItemStack item) |
| Stores the ItemStack at the given index of the inventory. | |
| HashMap< Integer, ItemStack > | addItem (ItemStack...items) throws IllegalArgumentException |
| Stores the given ItemStacks in the inventory. | |
| HashMap< Integer, ItemStack > | removeItem (ItemStack...items) throws IllegalArgumentException |
| Removes the given ItemStacks from the inventory. | |
| ItemStack[] | getContents () |
| Returns all ItemStacks from the inventory. | |
| void | setContents (ItemStack[] items) throws IllegalArgumentException |
| Completely replaces the inventory's contents. | |
| boolean | contains (int materialId) |
| Checks if the inventory contains any ItemStacks with the given materialId. | |
| boolean | contains (Material material) throws IllegalArgumentException |
| Checks if the inventory contains any ItemStacks with the given material. | |
| boolean | contains (ItemStack item) |
| Checks if the inventory contains any ItemStacks matching the given ItemStack. | |
| boolean | contains (int materialId, int amount) |
| Checks if the inventory contains any ItemStacks with the given materialId, adding to at least the minimum amount specified. | |
| boolean | contains (Material material, int amount) throws IllegalArgumentException |
| Checks if the inventory contains any ItemStacks with the given material, adding to at least the minimum amount specified. | |
| boolean | contains (ItemStack item, int amount) |
| Checks if the inventory contains any ItemStacks matching the given ItemStack and at least the minimum amount specified This will only match if both the type and the amount of the stack match. | |
| boolean | containsAtLeast (ItemStack item, int amount) |
| Returns a HashMap with all slots and ItemStacks in the inventory with given materialId. | |
| HashMap< Integer,?extends ItemStack > | all (int materialId) |
| Find all slots in the inventory containing any ItemStacks with the given materialId. | |
| HashMap< Integer,?extends ItemStack > | all (Material material) throws IllegalArgumentException |
| Returns a HashMap with all slots and ItemStacks in the inventory with the given Material. | |
| HashMap< Integer,?extends ItemStack > | all (ItemStack item) |
| Finds all slots in the inventory containing any ItemStacks with the given ItemStack This will only match slots if both the type and the amount of the stack match. | |
| int | first (int materialId) |
| Finds the first slot in the inventory containing an ItemStack with the given materialId. | |
| int | first (Material material) throws IllegalArgumentException |
| Finds the first slot in the inventory containing an ItemStack with the given material. | |
| int | first (ItemStack item) |
| Returns the first slot in the inventory containing an ItemStack with the given stack This will only match a slot if both the type and the amount of the stack match. | |
| int | firstEmpty () |
| Returns the first empty Slot. | |
| void | remove (int materialId) |
| Removes all stacks in the inventory matching the given materialId. | |
| void | remove (Material material) throws IllegalArgumentException |
| Removes all stacks in the inventory matching the given material. | |
| void | remove (ItemStack item) |
| Removes all stacks in the inventory matching the given stack. | |
| void | clear (int index) |
| Clears out a particular slot in the index. | |
| void | clear () |
| Clears out the whole Inventory. | |
| List< HumanEntity > | getViewers () |
| Gets a list of players viewing. | |
| String | getTitle () |
| Returns the title of this inventory. | |
| InventoryType | getType () |
| Returns what type of inventory this is. | |
| InventoryHolder | getHolder () |
| Gets the block or entity belonging to the open inventory. | |
| ListIterator< ItemStack > | iterator () |
| ListIterator< ItemStack > | iterator (int index) |
| Returns an iterator starting at the given index. | |
Definition at line 5 of file BrewerInventory.java.
| BrewingStand org.bukkit.inventory.BrewerInventory.getHolder | ( | ) |
| ItemStack org.bukkit.inventory.BrewerInventory.getIngredient | ( | ) |
Get the current ingredient for brewing.
| void org.bukkit.inventory.BrewerInventory.setIngredient | ( | ItemStack | ingredient | ) |
Set the current ingredient for brewing.
| ingredient | The ingredient |