|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CraftingInventory
Interface to the crafting inventories
Method Summary | |
---|---|
ItemStack[] |
getMatrix()
Get the contents of the crafting matrix. |
Recipe |
getRecipe()
Get the current recipe formed on the crafting inventory, if any. |
ItemStack |
getResult()
Check what item is in the result slot of this crafting inventory. |
void |
setMatrix(ItemStack[] contents)
Replace the contents of the crafting matrix |
void |
setResult(ItemStack newResult)
Set the item in the result slot of the crafting inventory. |
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 Detail |
---|
ItemStack getResult()
ItemStack[] getMatrix()
void setResult(ItemStack newResult)
newResult
- The new result item.void setMatrix(ItemStack[] contents)
contents
- The new contents.
IllegalArgumentException
- if the length of contents is greater than the size of the crafting matrix.Recipe getRecipe()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |