Class SingleItemRecipe
java.lang.Object
net.minecraft.world.item.crafting.SingleItemRecipe
- All Implemented Interfaces:
Recipe<SingleRecipeInput>
- Direct Known Subclasses:
AbstractCookingRecipe
,StonecutterRecipe
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
SingleItemRecipe.Factory<T extends SingleItemRecipe>
static class
SingleItemRecipe.Serializer<T extends SingleItemRecipe>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final Ingredient
private PlacementInfo
private final ItemStack
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC, STREAM_CODEC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble
(SingleRecipeInput pInput, HolderLookup.Provider pRegistries) abstract RecipeSerializer
<? extends SingleItemRecipe> abstract RecipeType
<? extends SingleItemRecipe> getType()
group()
input()
boolean
matches
(SingleRecipeInput pInput, Level pLevel) protected ItemStack
result()
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
display, isSpecial, recipeBookCategory, showNotification
-
Field Details
-
input
-
result
-
group
-
placementInfo
-
-
Constructor Details
-
SingleItemRecipe
-
-
Method Details
-
getSerializer
- Specified by:
getSerializer
in interfaceRecipe<SingleRecipeInput>
-
getType
- Specified by:
getType
in interfaceRecipe<SingleRecipeInput>
-
matches
- Specified by:
matches
in interfaceRecipe<SingleRecipeInput>
-
group
- Specified by:
group
in interfaceRecipe<SingleRecipeInput>
-
input
-
result
-
placementInfo
- Specified by:
placementInfo
in interfaceRecipe<SingleRecipeInput>
-
assemble
- Specified by:
assemble
in interfaceRecipe<SingleRecipeInput>
-