Class CTShapedRecipeBase
java.lang.Object
com.blamejared.crafttweaker.api.recipe.type.CTShapedRecipeBase
- All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
public class CTShapedRecipeBase
extends Object
implements net.minecraft.world.item.crafting.CraftingRecipe
-
Constructor Summary
ConstructorsConstructorDescriptionCTShapedRecipeBase(String name, IItemStack output, IIngredient[][] ingredients, MirrorAxis mirrorAxis, RecipeFunctionMatrix function) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackassemble(net.minecraft.world.inventory.CraftingContainer container) booleancanCraftInDimensions(int width, int height) IIngredient[][]net.minecraft.resources.ResourceLocationgetId()net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>intintnet.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>getRemainingItems(net.minecraft.world.inventory.CraftingContainer inv) net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>getRemainingItems(net.minecraft.world.inventory.CraftingContainer inv, com.mojang.datafixers.util.Pair<Integer, Integer> offsetPair, IIngredient[][] ingredients) net.minecraft.world.item.ItemStacknet.minecraft.world.item.crafting.RecipeSerializer<CTShapedRecipeBase>booleanbooleanbooleanmatches(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.world.level.Level worldIn) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.CraftingRecipe
getTypeMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getToastSymbol, isSpecial
-
Constructor Details
-
CTShapedRecipeBase
public CTShapedRecipeBase(String name, IItemStack output, IIngredient[][] ingredients, MirrorAxis mirrorAxis, @Nullable RecipeFunctionMatrix function)
-
-
Method Details
-
matches
public boolean matches(net.minecraft.world.inventory.CraftingContainer inv, @Nullable net.minecraft.world.level.Level worldIn) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
-
assemble
public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.inventory.CraftingContainer container) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
-
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem()- Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
-
getRemainingItems
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.inventory.CraftingContainer inv) - Specified by:
getRemainingItemsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
-
getRemainingItems
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.inventory.CraftingContainer inv, com.mojang.datafixers.util.Pair<Integer, Integer> offsetPair, IIngredient[][] ingredients) -
getIngredients
public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()- Specified by:
getIngredientsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
-
getSerializer
- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
-
getRecipeWidth
public int getRecipeWidth() -
getRecipeHeight
public int getRecipeHeight() -
getCtIngredients
-
getCtOutput
-
getFunction
-
isMirrored
public boolean isMirrored() -
getMirrorAxis
-
isIncomplete
public boolean isIncomplete()- Specified by:
isIncompletein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
-