Package net.minecraft.recipe
Class CuttingRecipe
java.lang.Object
net.minecraft.recipe.CuttingRecipe
- Direct Known Subclasses:
StonecuttingRecipe
public abstract class CuttingRecipe extends Object implements Recipe<Inventory>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CuttingRecipe.Serializer<T extends CuttingRecipe>
-
Field Summary
Fields Modifier and Type Field Description protected String
group
protected Identifier
id
protected Ingredient
input
protected ItemStack
output
private RecipeSerializer<?>
serializer
private RecipeType<?>
type
-
Constructor Summary
Constructors Constructor Description CuttingRecipe(RecipeType<?> type, RecipeSerializer<?> serializer, Identifier id, String group, Ingredient input, ItemStack output)
-
Method Summary
Modifier and Type Method Description ItemStack
craft(Inventory inv)
boolean
fits(int width, int height)
String
getGroup()
Identifier
getId()
ItemStack
getOutput()
DefaultedList<Ingredient>
getPreviewInputs()
RecipeSerializer<?>
getSerializer()
RecipeType<?>
getType()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.recipe.Recipe
getRecipeKindIcon, getRemainingStacks, isIgnoredInRecipeBook, matches
-
Field Details
-
input
-
output
-
type
-
serializer
-
id
-
group
-
-
Constructor Details
-
CuttingRecipe
public CuttingRecipe(RecipeType<?> type, RecipeSerializer<?> serializer, Identifier id, String group, Ingredient input, ItemStack output)
-
-
Method Details
-
getType
-
getSerializer
- Specified by:
getSerializer
in interfaceRecipe<Inventory>
-
getId
-
getGroup
-
getOutput
-
getPreviewInputs
- Specified by:
getPreviewInputs
in interfaceRecipe<Inventory>
-
fits
@Environment(CLIENT) public boolean fits(int width, int height) -
craft
-