Class SingleItemRecipe
java.lang.Object
net.minecraft.world.item.crafting.SingleItemRecipe
- Direct Known Subclasses:
StonecutterRecipe
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSingleItemRecipe.Factory<T extends SingleItemRecipe>static classSingleItemRecipe.Serializer<T extends SingleItemRecipe> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Ingredientprotected final ItemStackprivate final RecipeSerializer<?> private final RecipeType<?> Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionSingleItemRecipe(RecipeType<?> p_44416_, RecipeSerializer<?> p_44417_, String p_44419_, Ingredient p_44420_, ItemStack p_44421_) -
Method Summary
Modifier and TypeMethodDescriptionassemble(Container p_44427_, HolderLookup.Provider p_335463_) booleancanCraftInDimensions(int p_44424_, int p_44425_) getGroup()getResultItem(HolderLookup.Provider p_336121_) 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.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
-
getSerializer
- Specified by:
getSerializerin interfaceRecipe<Container>
-
getGroup
-
getResultItem
- Specified by:
getResultItemin interfaceRecipe<Container>
-
getIngredients
- Specified by:
getIngredientsin interfaceRecipe<Container>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_44424_, int p_44425_) - Specified by:
canCraftInDimensionsin interfaceRecipe<Container>
-
assemble
-