Class CTShapelessRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapelessRecipe
com.blamejared.crafttweaker.api.recipe.type.CTShapelessRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
public class CTShapelessRecipe
extends net.minecraft.world.item.crafting.ShapelessRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.ShapelessRecipe
net.minecraft.world.item.crafting.ShapelessRecipe.Serializer -
Constructor Summary
ConstructorsConstructorDescriptionCTShapelessRecipe(String name, IItemStack output, IIngredient[] ingredients, RecipeFunction1D function) CTShapelessRecipe(String name, net.minecraft.world.item.crafting.CraftingBookCategory category, IItemStack output, IIngredient[] ingredients, RecipeFunction1D function) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackassemble(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.core.RegistryAccess access) 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.ItemStackgetResultItem(net.minecraft.core.RegistryAccess access) net.minecraft.world.item.crafting.RecipeSerializer<CTShapelessRecipe>booleanmatches(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.world.level.Level worldIn) Methods inherited from class net.minecraft.world.item.crafting.ShapelessRecipe
canCraftInDimensions, category, getGroup, getIdMethods 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
getToastSymbol, isIncomplete, isSpecial, showNotification
-
Constructor Details
-
CTShapelessRecipe
public CTShapelessRecipe(String name, IItemStack output, IIngredient[] ingredients, @Nullable RecipeFunction1D function) -
CTShapelessRecipe
public CTShapelessRecipe(String name, net.minecraft.world.item.crafting.CraftingBookCategory category, IItemStack output, IIngredient[] ingredients, @Nullable RecipeFunction1D function)
-
-
Method Details
-
matches
public boolean matches(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.world.level.Level worldIn) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>- Overrides:
matchesin classnet.minecraft.world.item.crafting.ShapelessRecipe
-
assemble
public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.core.RegistryAccess access) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>- Overrides:
assemblein classnet.minecraft.world.item.crafting.ShapelessRecipe
-
getFunction
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.RegistryAccess access) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>- Overrides:
getResultItemin classnet.minecraft.world.item.crafting.ShapelessRecipe
-
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()- Specified by:
getIngredientsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>- Overrides:
getIngredientsin classnet.minecraft.world.item.crafting.ShapelessRecipe
-
getSerializer
- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>- Overrides:
getSerializerin classnet.minecraft.world.item.crafting.ShapelessRecipe
-
getCtIngredients
-
getCtOutput
-