Class TransmuteRecipe
java.lang.Object
net.minecraft.world.item.crafting.NormalCraftingRecipe
net.minecraft.world.item.crafting.TransmuteRecipe
- 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 TypeFieldDescriptionprivate final booleanstatic final MinMaxBounds.Intsstatic final MinMaxBounds.Intsprivate final Ingredientstatic final com.mojang.serialization.MapCodec<TransmuteRecipe> private final Ingredientstatic final com.mojang.serialization.Codec<MinMaxBounds.Ints> private final MinMaxBounds.Intsprivate static final intprivate static final intprivate final ItemStackTemplatestatic final RecipeSerializer<TransmuteRecipe> static final StreamCodec<RegistryFriendlyByteBuf, TransmuteRecipe> Fields inherited from class NormalCraftingRecipe
bookInfo, commonInfoFields inherited from interface Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionTransmuteRecipe(Recipe.CommonInfo commonInfo, CraftingRecipe.CraftingBookInfo bookInfo, Ingredient input, Ingredient material, MinMaxBounds.Ints materialCount, ItemStackTemplate result, boolean addMaterialCountToResult) -
Method Summary
Modifier and TypeMethodDescriptionassemble(CraftingInput input) private ItemStackcomputeResult(ItemStack inputIngredient, int materialCount) private intcomputeResultSize(int materialCount) protected PlacementInfostatic ItemStackcreateWithOriginalComponents(ItemStackTemplate target, ItemStack input) static ItemStackcreateWithOriginalComponents(ItemStackTemplate target, ItemStack input, int extraCount) display()booleanmatches(CraftingInput input, Level level) private intprivate intMethods inherited from class NormalCraftingRecipe
category, group, placementInfo, showNotificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CraftingRecipe
getRemainingItems, getType, recipeBookCategory
-
Field Details
-
MIN_MATERIAL_COUNT
private static final int MIN_MATERIAL_COUNT- See Also:
-
MAX_MATERIAL_COUNT
private static final int MAX_MATERIAL_COUNT- See Also:
-
DEFAULT_MATERIAL_COUNT
-
FULL_RANGE_MATERIAL_COUNT
-
MATERIAL_COUNT_BOUNDS
-
MAP_CODEC
-
STREAM_CODEC
-
SERIALIZER
-
input
-
material
-
materialCount
-
result
-
addMaterialCountToResult
private final boolean addMaterialCountToResult
-
-
Constructor Details
-
TransmuteRecipe
public TransmuteRecipe(Recipe.CommonInfo commonInfo, CraftingRecipe.CraftingBookInfo bookInfo, Ingredient input, Ingredient material, MinMaxBounds.Ints materialCount, ItemStackTemplate result, boolean addMaterialCountToResult)
-
-
Method Details
-
createWithOriginalComponents
-
createWithOriginalComponents
public static ItemStack createWithOriginalComponents(ItemStackTemplate target, ItemStack input, int extraCount) -
computeResultSize
private int computeResultSize(int materialCount) -
computeResult
-
matches
-
assemble
-
display
-
minMaterialCount
private int minMaterialCount() -
maxMaterialCount
private int maxMaterialCount() -
getSerializer
- Specified by:
getSerializerin interfaceCraftingRecipe- Specified by:
getSerializerin interfaceRecipe<CraftingInput>- Specified by:
getSerializerin classNormalCraftingRecipe
-
createPlacementInfo
- Specified by:
createPlacementInfoin classNormalCraftingRecipe
-