Class SingleItemRecipe
java.lang.Object
net.minecraft.world.item.crafting.SingleItemRecipe
- Direct Known Subclasses:
StonecutterRecipe
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
SingleItemRecipe.Serializer<T extends SingleItemRecipe>
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected ResourceLocation
protected Ingredient
protected ItemStack
private RecipeSerializer<?>
private RecipeType<?>
-
Constructor Summary
ConstructorDescriptionSingleItemRecipe(RecipeType<?> p_44416_, RecipeSerializer<?> p_44417_, ResourceLocation p_44418_, String p_44419_, Ingredient p_44420_, ItemStack p_44421_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canCraftInDimensions(int p_44424_, int p_44425_)
getGroup()
getId()
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.world.item.crafting.Recipe
getRemainingItems, getToastSymbol, isIncomplete, isSpecial, matches
-
Field Details
-
ingredient
-
result
-
type
-
serializer
-
id
-
group
-
-
Constructor Details
-
SingleItemRecipe
public SingleItemRecipe(RecipeType<?> p_44416_, RecipeSerializer<?> p_44417_, ResourceLocation p_44418_, String p_44419_, Ingredient p_44420_, ItemStack p_44421_)
-
-
Method Details
-
getType
-
getSerializer
- Specified by:
getSerializer
in interfaceRecipe<Container>
-
getId
-
getGroup
-
getResultItem
- Specified by:
getResultItem
in interfaceRecipe<Container>
-
getIngredients
- Specified by:
getIngredients
in interfaceRecipe<Container>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_44424_, int p_44425_)- Specified by:
canCraftInDimensions
in interfaceRecipe<Container>
-
assemble
-