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 -
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCTShapelessRecipe(IItemStack output, IIngredient[] ingredients) CTShapelessRecipe(IItemStack output, IIngredient[] ingredients, RecipeFunction1D function) CTShapelessRecipe(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) static booleancheckEmptyIngredient(net.minecraft.resources.ResourceLocation name, IIngredient[] ingredients) booleannet.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>inthashCode()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, getGroupMethods inherited from class java.lang.Object
clone, finalize, getClass, 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
-
CTShapelessRecipe
public CTShapelessRecipe(IItemStack output, IIngredient[] ingredients, @Nullable RecipeFunction1D function) -
CTShapelessRecipe
public CTShapelessRecipe(net.minecraft.world.item.crafting.CraftingBookCategory category, IItemStack output, IIngredient[] ingredients, @Nullable RecipeFunction1D function)
-
-
Method Details
-
checkEmptyIngredient
public static boolean checkEmptyIngredient(net.minecraft.resources.ResourceLocation name, IIngredient[] ingredients) -
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
-
equals
-
hashCode
public int hashCode()
-