Package noppes.npcs.api.handler.data
Interface IRecipe
-
public interface IRecipeRepresents a custom crafting recipe for the carpentry table or vanilla workbench.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete()Deletes this recipe from the handler.intgetHeight()intgetId()booleangetIgnoreDamage()booleangetIgnoreNBT()StringgetName()net.minecraft.item.ItemStack[]getRecipe()net.minecraft.item.ItemStackgetResult()intgetWidth()booleanisGlobal()voidsetIgnoreDamage(boolean ignoreDamage)voidsetIgnoreNBT(boolean ignoreNBT)voidsetIsGlobal(boolean global)
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- the recipe display name.
-
isGlobal
boolean isGlobal()
- Returns:
- true if this is a global (vanilla workbench) recipe.
-
setIsGlobal
void setIsGlobal(boolean global)
- Parameters:
global- true for global; false for carpentry only.
-
getIgnoreNBT
boolean getIgnoreNBT()
- Returns:
- true if NBT data is ignored when matching ingredients.
-
setIgnoreNBT
void setIgnoreNBT(boolean ignoreNBT)
- Parameters:
ignoreNBT- true to ignore NBT in ingredient matching.
-
getIgnoreDamage
boolean getIgnoreDamage()
- Returns:
- true if damage values are ignored when matching ingredients.
-
setIgnoreDamage
void setIgnoreDamage(boolean ignoreDamage)
- Parameters:
ignoreDamage- true to ignore damage in ingredient matching.
-
getWidth
int getWidth()
- Returns:
- the recipe grid width.
-
getHeight
int getHeight()
- Returns:
- the recipe grid height.
-
getResult
net.minecraft.item.ItemStack getResult()
- Returns:
- the resulting item stack.
-
getRecipe
net.minecraft.item.ItemStack[] getRecipe()
- Returns:
- the ingredient item stacks in grid order.
-
delete
void delete()
Deletes this recipe from the handler.
-
getId
int getId()
- Returns:
- the unique recipe ID.
-
-