Class ItemVariableCopyRecipe
java.lang.Object
net.minecraft.world.item.crafting.CustomRecipe
org.cyclops.integrateddynamics.recipe.ItemVariableCopyRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe
,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
public class ItemVariableCopyRecipe
extends net.minecraft.world.item.crafting.CustomRecipe
Crafting recipe to copy variable data.
-
Constructor Summary
ConstructorDescriptionItemVariableCopyRecipe
(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.CraftingBookCategory craftingBookCategory) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStack
assemble
(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.core.RegistryAccess registryAccess) boolean
canCraftInDimensions
(int width, int height) net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
getRemainingItems
(net.minecraft.world.inventory.CraftingContainer inv) net.minecraft.world.item.ItemStack
net.minecraft.world.item.ItemStack
getResultItem
(net.minecraft.core.RegistryAccess registryAccess) net.minecraft.world.item.crafting.RecipeSerializer<?>
boolean
boolean
matches
(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.world.level.Level worldIn) Methods inherited from class net.minecraft.world.item.crafting.CustomRecipe
category, getId
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, getToastSymbol, isIncomplete, showNotification
-
Constructor Details
-
ItemVariableCopyRecipe
public ItemVariableCopyRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.CraftingBookCategory craftingBookCategory)
-
-
Method Details
-
matches
public boolean matches(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.world.level.Level worldIn) -
assemble
public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.core.RegistryAccess registryAccess) -
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) -
getResultItem
public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.RegistryAccess registryAccess) - Specified by:
getResultItem
in interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
- Overrides:
getResultItem
in classnet.minecraft.world.item.crafting.CustomRecipe
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem() -
getRemainingItems
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.inventory.CraftingContainer inv) -
getIngredients
public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients() -
isSpecial
public boolean isSpecial()- Specified by:
isSpecial
in interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
- Overrides:
isSpecial
in classnet.minecraft.world.item.crafting.CustomRecipe
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()
-