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 classCuttingRecipe.Serializer<T extends CuttingRecipe> -
Field Summary
Fields Modifier and Type Field Description protected Stringgroupprotected Identifieridprotected Ingredientinputprotected ItemStackoutputprivate RecipeSerializer<?>serializerprivate 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 ItemStackcraft(Inventory inv)booleanfits(int width, int height)StringgetGroup()IdentifiergetId()ItemStackgetOutput()DefaultedList<Ingredient>getPreviewInputs()RecipeSerializer<?>getSerializer()RecipeType<?>getType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.recipe.Recipe
getRecipeKindIcon, getRemainingStacks, isIgnoredInRecipeBook, matches, method_31584
-
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:
getSerializerin interfaceRecipe<Inventory>
-
getId
-
getGroup
-
getOutput
-
getPreviewInputs
- Specified by:
getPreviewInputsin interfaceRecipe<Inventory>
-
fits
@Environment(CLIENT) public boolean fits(int width, int height) -
craft
-