public abstract class TemplateRecipeHandler.CachedRecipe
extends java.lang.Object
| Constructor and Description |
|---|
CachedRecipe() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.util.Collection<PositionedStack> ingredients,
Item ingred) |
boolean |
contains(java.util.Collection<PositionedStack> ingredients,
ItemStack ingredient) |
java.util.List<PositionedStack> |
getCycledIngredients(int cycle,
java.util.List<PositionedStack> ingredients)
This will perform default cycling of ingredients, mulitItem capable
|
PositionedStack |
getIngredient() |
java.util.List<PositionedStack> |
getIngredients()
The ingredients required to produce the result
Use this if you have more than one ingredient
|
PositionedStack |
getOtherStack()
Simple utility
|
java.util.List<PositionedStack> |
getOtherStacks()
Return extra items that are not directly involved in the ingredient->result relationship.
|
abstract PositionedStack |
getResult() |
void |
randomRenderPermutation(PositionedStack stack,
long cycle) |
void |
setIngredientPermutation(java.util.Collection<PositionedStack> ingredients,
ItemStack ingredient)
Set all variable ingredients to this permutation.
|
public abstract PositionedStack getResult()
public java.util.List<PositionedStack> getIngredients()
public PositionedStack getIngredient()
public java.util.List<PositionedStack> getOtherStacks()
public PositionedStack getOtherStack()
public java.util.List<PositionedStack> getCycledIngredients(int cycle, java.util.List<PositionedStack> ingredients)
public void randomRenderPermutation(PositionedStack stack, long cycle)
public void setIngredientPermutation(java.util.Collection<PositionedStack> ingredients, ItemStack ingredient)
ingredient - public boolean contains(java.util.Collection<PositionedStack> ingredients, ItemStack ingredient)
ingredient - public boolean contains(java.util.Collection<PositionedStack> ingredients, Item ingred)
ingred -