Class BookCloningRecipe
java.lang.Object
net.minecraft.world.item.crafting.CustomRecipe
net.minecraft.world.item.crafting.BookCloningRecipe
- All Implemented Interfaces:
CraftingRecipe, Recipe<CraftingInput>
-
Nested Class Summary
Nested classes/interfaces inherited from interface CraftingRecipe
CraftingRecipe.CraftingBookInfoNested classes/interfaces inherited from interface Recipe
Recipe.BookInfo<CategoryType>, Recipe.CommonInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MinMaxBounds.Intsprivate static final com.mojang.serialization.Codec<MinMaxBounds.Ints> private final MinMaxBounds.Intsstatic final MinMaxBounds.Intsstatic final com.mojang.serialization.MapCodec<BookCloningRecipe> private final Ingredientprivate final ItemStackTemplatestatic final RecipeSerializer<BookCloningRecipe> private final Ingredientstatic final StreamCodec<RegistryFriendlyByteBuf, BookCloningRecipe> Fields inherited from interface Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBookCloningRecipe(Ingredient source, Ingredient material, MinMaxBounds.Ints allowedGenerations, ItemStackTemplate result) -
Method Summary
Modifier and TypeMethodDescriptionassemble(CraftingInput input) private booleancanCraftCopy(WrittenBookContent writtenBookContent) getRemainingItems(CraftingInput input) booleanmatches(CraftingInput input, Level level) Methods inherited from class CustomRecipe
category, group, isSpecial, placementInfo, showNotificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CraftingRecipe
getType, recipeBookCategory
-
Field Details
-
ALLOWED_BOOK_GENERATION_RANGES
-
DEFAULT_BOOK_GENERATION_RANGES
-
ALLOWED_GENERATION_CODEC
-
MAP_CODEC
-
STREAM_CODEC
-
SERIALIZER
-
source
-
material
-
allowedGenerations
-
result
-
-
Constructor Details
-
BookCloningRecipe
public BookCloningRecipe(Ingredient source, Ingredient material, MinMaxBounds.Ints allowedGenerations, ItemStackTemplate result)
-
-
Method Details
-
canCraftCopy
-
matches
-
assemble
-
getRemainingItems
-
getSerializer
- Specified by:
getSerializerin interfaceCraftingRecipe- Specified by:
getSerializerin interfaceRecipe<CraftingInput>- Specified by:
getSerializerin classCustomRecipe
-