Modifier and Type | Class and Description |
---|---|
static class |
CuttingRecipe.Serializer<T extends CuttingRecipe> |
Modifier and Type | Field and Description |
---|---|
protected String |
group |
protected Identifier |
id |
protected Ingredient |
input |
protected ItemStack |
output |
private RecipeSerializer<?> |
serializer |
private RecipeType<?> |
type |
Constructor and Description |
---|
CuttingRecipe(RecipeType<?> type,
RecipeSerializer<?> serializer,
Identifier id,
String group,
Ingredient input,
ItemStack output) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
craft(Inventory inv) |
boolean |
fits(int width,
int height) |
String |
getGroup() |
Identifier |
getId() |
ItemStack |
getOutput() |
DefaultedList<Ingredient> |
getPreviewInputs() |
RecipeSerializer<?> |
getSerializer() |
RecipeType<?> |
getType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRecipeKindIcon, getRemainingStacks, isIgnoredInRecipeBook, matches
protected final Ingredient input
protected final ItemStack output
private final RecipeType<?> type
private final RecipeSerializer<?> serializer
protected final Identifier id
protected final String group
public CuttingRecipe(RecipeType<?> type, RecipeSerializer<?> serializer, Identifier id, String group, Ingredient input, ItemStack output)
public RecipeType<?> getType()
public RecipeSerializer<?> getSerializer()
getSerializer
in interface Recipe<Inventory>
public Identifier getId()
@Environment(value=CLIENT) public String getGroup()
public DefaultedList<Ingredient> getPreviewInputs()
getPreviewInputs
in interface Recipe<Inventory>
@Environment(value=CLIENT) public boolean fits(int width, int height)