Class SingleItemRecipe
java.lang.Object
net.minecraft.world.item.crafting.SingleItemRecipe
- All Implemented Interfaces:
Recipe<SingleRecipeInput>
- Direct Known Subclasses:
StonecutterRecipe
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
SingleItemRecipe.Factory<T extends SingleItemRecipe>
static class
SingleItemRecipe.Serializer<T extends SingleItemRecipe>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final Ingredient
protected final ItemStack
private final RecipeSerializer
<?> private final RecipeType
<?> Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, STREAM_CODEC
-
Constructor Summary
ConstructorDescriptionSingleItemRecipe
(RecipeType<?> p_44416_, RecipeSerializer<?> p_44417_, String p_44419_, Ingredient p_44420_, ItemStack p_44421_) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(SingleRecipeInput p_343460_, HolderLookup.Provider p_330907_) boolean
canCraftInDimensions
(int p_44424_, int p_44425_) getGroup()
getResultItem
(HolderLookup.Provider p_329765_) 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, showNotification
-
Field Details
-
ingredient
-
result
-
type
-
serializer
-
group
-
-
Constructor Details
-
SingleItemRecipe
public SingleItemRecipe(RecipeType<?> p_44416_, RecipeSerializer<?> p_44417_, String p_44419_, Ingredient p_44420_, ItemStack p_44421_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceRecipe<SingleRecipeInput>
-
getSerializer
- Specified by:
getSerializer
in interfaceRecipe<SingleRecipeInput>
-
getGroup
- Specified by:
getGroup
in interfaceRecipe<SingleRecipeInput>
-
getResultItem
- Specified by:
getResultItem
in interfaceRecipe<SingleRecipeInput>
-
getIngredients
- Specified by:
getIngredients
in interfaceRecipe<SingleRecipeInput>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_44424_, int p_44425_) - Specified by:
canCraftInDimensions
in interfaceRecipe<SingleRecipeInput>
-
assemble
- Specified by:
assemble
in interfaceRecipe<SingleRecipeInput>
-