public abstract class AbstractCookingRecipe extends Object implements Recipe<Inventory>
Modifier and Type | Field and Description |
---|---|
protected int |
cookTime |
protected float |
experience |
protected String |
group |
protected Identifier |
id |
protected Ingredient |
input |
protected ItemStack |
output |
protected RecipeType<?> |
type |
Constructor and Description |
---|
AbstractCookingRecipe(RecipeType<?> type,
Identifier id,
String group,
Ingredient input,
ItemStack output,
float experience,
int cookTime) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
craft(Inventory inv) |
boolean |
fits(int width,
int height) |
int |
getCookTime() |
float |
getExperience() |
String |
getGroup() |
Identifier |
getId() |
ItemStack |
getOutput() |
DefaultedList<Ingredient> |
getPreviewInputs() |
RecipeType<?> |
getType() |
boolean |
matches(Inventory inv,
World world) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRecipeKindIcon, getRemainingStacks, getSerializer, isIgnoredInRecipeBook
protected final RecipeType<?> type
protected final Identifier id
protected final String group
protected final Ingredient input
protected final ItemStack output
protected final float experience
protected final int cookTime
public AbstractCookingRecipe(RecipeType<?> type, Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime)
@Environment(value=CLIENT) public boolean fits(int width, int height)
public DefaultedList<Ingredient> getPreviewInputs()
getPreviewInputs
in interface Recipe<Inventory>
public float getExperience()
@Environment(value=CLIENT) public String getGroup()
public int getCookTime()
public Identifier getId()
public RecipeType<?> getType()