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>Nested classes/interfaces inherited from interface Recipe
Recipe.BookInfo<CategoryType>, Recipe.CommonInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Recipe.CommonInfoprivate final Ingredientprivate @Nullable PlacementInfoprivate final ItemStackTemplateFields inherited from interface Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionSingleItemRecipe(Recipe.CommonInfo commonInfo, Ingredient input, ItemStackTemplate result) -
Method Summary
Modifier and TypeMethodDescriptionassemble(SingleRecipeInput input) abstract RecipeSerializer<? extends SingleItemRecipe> abstract RecipeType<? extends SingleItemRecipe> getType()input()booleanmatches(SingleRecipeInput input, Level level) protected ItemStackTemplateresult()booleanstatic <T extends SingleItemRecipe>
com.mojang.serialization.MapCodec<T> simpleMapCodec(SingleItemRecipe.Factory<T> factory) static <T extends SingleItemRecipe>
StreamCodec<RegistryFriendlyByteBuf, T> simpleStreamCodec(SingleItemRecipe.Factory<T> factory) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Recipe
display, group, isSpecial, recipeBookCategory
-
Field Details
-
commonInfo
-
input
-
result
-
placementInfo
-
-
Constructor Details
-
SingleItemRecipe
-
-
Method Details
-
getSerializer
- Specified by:
getSerializerin interfaceRecipe<SingleRecipeInput>
-
getType
- Specified by:
getTypein interfaceRecipe<SingleRecipeInput>
-
matches
- Specified by:
matchesin interfaceRecipe<SingleRecipeInput>
-
showNotification
public boolean showNotification()- Specified by:
showNotificationin interfaceRecipe<SingleRecipeInput>
-
input
-
result
-
placementInfo
- Specified by:
placementInfoin interfaceRecipe<SingleRecipeInput>
-
assemble
- Specified by:
assemblein interfaceRecipe<SingleRecipeInput>
-
simpleMapCodec
public static <T extends SingleItemRecipe> com.mojang.serialization.MapCodec<T> simpleMapCodec(SingleItemRecipe.Factory<T> factory) -
simpleStreamCodec
public static <T extends SingleItemRecipe> StreamCodec<RegistryFriendlyByteBuf, T> simpleStreamCodec(SingleItemRecipe.Factory<T> factory)
-