public class ShapedRecipeHandler.CachedShapedRecipe extends TemplateRecipeHandler.CachedRecipe
| Modifier and Type | Field and Description |
|---|---|
java.util.ArrayList<PositionedStack> |
ingredients |
PositionedStack |
result |
| Constructor and Description |
|---|
CachedShapedRecipe(int width,
int height,
java.lang.Object[] items,
ItemStack out) |
CachedShapedRecipe(ShapedRecipes recipe) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeVisuals() |
java.util.List<PositionedStack> |
getIngredients()
The ingredients required to produce the result
Use this if you have more than one ingredient
|
PositionedStack |
getResult() |
void |
setIngredients(int width,
int height,
java.lang.Object[] items) |
contains, contains, getCycledIngredients, getIngredient, getOtherStack, getOtherStacks, randomRenderPermutation, setIngredientPermutationpublic java.util.ArrayList<PositionedStack> ingredients
public PositionedStack result
public CachedShapedRecipe(int width,
int height,
java.lang.Object[] items,
ItemStack out)
public CachedShapedRecipe(ShapedRecipes recipe)
public void setIngredients(int width,
int height,
java.lang.Object[] items)
width - height - items - an ItemStack[] or ItemStack[][]public java.util.List<PositionedStack> getIngredients()
TemplateRecipeHandler.CachedRecipegetIngredients in class TemplateRecipeHandler.CachedRecipepublic PositionedStack getResult()
getResult in class TemplateRecipeHandler.CachedRecipepublic void computeVisuals()