Class RepairItemRecipe
java.lang.Object
net.minecraft.world.item.crafting.CustomRecipe
net.minecraft.world.item.crafting.RepairItemRecipe
- All Implemented Interfaces:
CraftingRecipe
,Recipe<CraftingInput>
-
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble
(CraftingInput pInput, HolderLookup.Provider pRegistries) private static boolean
canCombine
(ItemStack pStack1, ItemStack pStack2) boolean
canCraftInDimensions
(int pWidth, int pHeight) Used to determine if this recipe can fit in a grid of the given width/heightgetItemsToCombine
(CraftingInput p_345543_) boolean
matches
(CraftingInput pInput, Level pLevel) Methods inherited from class net.minecraft.world.item.crafting.CustomRecipe
category, getResultItem, isSpecial
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.CraftingRecipe
getType
Methods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getToastSymbol, isIncomplete, showNotification
-
Constructor Details
-
RepairItemRecipe
-
-
Method Details
-
getItemsToCombine
@Nullable private com.mojang.datafixers.util.Pair<ItemStack,ItemStack> getItemsToCombine(CraftingInput p_345543_) -
canCombine
-
matches
-
assemble
-
canCraftInDimensions
public boolean canCraftInDimensions(int pWidth, int pHeight) Used to determine if this recipe can fit in a grid of the given width/height -
getSerializer
-