Modifier and Type | Method and Description |
---|---|
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.
|
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
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()
Copyright © 2014. All rights reserved.