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 interfaceSingleItemRecipe.Factory<T extends SingleItemRecipe>static classSingleItemRecipe.Serializer<T extends SingleItemRecipe> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Ingredientprivate PlacementInfoprivate final ItemStackFields 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()booleanmatches(SingleRecipeInput pInput, Level pLevel) protected ItemStackresult()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
display, isSpecial, recipeBookCategory, showNotification
-
Field Details
-
input
-
result
-
group
-
placementInfo
-
-
Constructor Details
-
SingleItemRecipe
-
-
Method Details
-
getSerializer
- Specified by:
getSerializerin interfaceRecipe<SingleRecipeInput>
-
getType
- Specified by:
getTypein interfaceRecipe<SingleRecipeInput>
-
matches
- Specified by:
matchesin interfaceRecipe<SingleRecipeInput>
-
group
- Specified by:
groupin interfaceRecipe<SingleRecipeInput>
-
input
-
result
-
placementInfo
- Specified by:
placementInfoin interfaceRecipe<SingleRecipeInput>
-
assemble
- Specified by:
assemblein interfaceRecipe<SingleRecipeInput>
-