Class SingleItemRecipe
java.lang.Object
net.minecraft.world.item.crafting.SingleItemRecipe
- Direct Known Subclasses:
- StonecutterRecipe
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceSingleItemRecipe.Factory<T extends SingleItemRecipe>static classSingleItemRecipe.Serializer<T extends SingleItemRecipe>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Ingredientprotected final ItemStackprivate final RecipeSerializer<?>private final RecipeType<?>Fields inherited from interface net.minecraft.world.item.crafting.RecipeCODEC, CONDITIONAL_CODEC
- 
Constructor SummaryConstructorsConstructorDescriptionSingleItemRecipe(RecipeType<?> p_44416_, RecipeSerializer<?> p_44417_, String p_44419_, Ingredient p_44420_, ItemStack p_44421_) 
- 
Method SummaryModifier and TypeMethodDescriptionassemble(Container p_44427_, RegistryAccess p_266999_) booleancanCraftInDimensions(int p_44424_, int p_44425_) getGroup()getResultItem(RegistryAccess p_266964_) RecipeType<?>getType()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.RecipegetRemainingItems, getToastSymbol, isIncomplete, isSpecial, matches, showNotification
- 
Field Details- 
ingredient
- 
result
- 
type
- 
serializer
- 
group
 
- 
- 
Constructor Details- 
SingleItemRecipepublic SingleItemRecipe(RecipeType<?> p_44416_, RecipeSerializer<?> p_44417_, String p_44419_, Ingredient p_44420_, ItemStack p_44421_) 
 
- 
- 
Method Details- 
getType
- 
getSerializer- Specified by:
- getSerializerin interface- Recipe<Container>
 
- 
getGroup
- 
getResultItem- Specified by:
- getResultItemin interface- Recipe<Container>
 
- 
getIngredients- Specified by:
- getIngredientsin interface- Recipe<Container>
 
- 
canCraftInDimensionspublic boolean canCraftInDimensions(int p_44424_, int p_44425_) - Specified by:
- canCraftInDimensionsin interface- Recipe<Container>
 
- 
assemble
 
-