public interface IIngredient
Modifier and Type | Method and Description |
---|---|
void |
bake()
Bakes the lists in for faster runtime look-ups.
|
int |
getDamageValue() |
java.lang.String |
getItemName() |
net.minecraft.item.ItemStack |
getItemStack()
Acquire a single input stack for the current recipe, if more then one ItemStack is possible a
RegistrationError exception will be thrown, ignore these and let the system handle the error.
|
net.minecraft.item.ItemStack[] |
getItemStackSet()
Acquire a list of all the input stacks for the current recipe, this is for handlers that support
multiple inputs per slot.
|
java.lang.String |
getNameSpace() |
int |
getQty() |
boolean |
isAir()
If you wish to support air, you must test before getting the ItemStack, or ItemStackSet
|
net.minecraft.item.ItemStack getItemStack() throws RegistrationError, MissingIngredientError
RegistrationError
MissingIngredientError
net.minecraft.item.ItemStack[] getItemStackSet() throws RegistrationError, MissingIngredientError
RegistrationError
MissingIngredientError
boolean isAir()
java.lang.String getNameSpace()
java.lang.String getItemName()
int getDamageValue()
int getQty()
void bake() throws RegistrationError, MissingIngredientError