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.item.crafting.CraftingInput>
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, STREAM_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.item.crafting.CraftingInput inv, net.minecraft.core.HolderLookup.Provider lookup) static booleancheckEmptyIngredient(net.minecraft.resources.ResourceLocation name, IIngredient[] ingredients) booleannet.minecraft.core.NonNullList<IIngredient> net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.item.crafting.CraftingInput inv) net.minecraft.world.item.ItemStackgetResultItem(net.minecraft.core.HolderLookup.Provider lookup) net.minecraft.world.item.crafting.RecipeSerializer<CTShapelessRecipe> inthashCode()booleanmatches(net.minecraft.world.item.crafting.CraftingInput 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.item.crafting.CraftingInput inv, net.minecraft.world.level.Level worldIn) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Overrides:
matchesin classnet.minecraft.world.item.crafting.ShapelessRecipe
-
assemble
public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.CraftingInput inv, net.minecraft.core.HolderLookup.Provider lookup) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Overrides:
assemblein classnet.minecraft.world.item.crafting.ShapelessRecipe
-
getFunction
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.HolderLookup.Provider lookup) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Overrides:
getResultItemin classnet.minecraft.world.item.crafting.ShapelessRecipe
-
getRemainingItems
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.item.crafting.CraftingInput 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.item.crafting.CraftingInput>- Overrides:
getIngredientsin classnet.minecraft.world.item.crafting.ShapelessRecipe
-
getFlatCtIngredients
-
getSerializer
- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Overrides:
getSerializerin classnet.minecraft.world.item.crafting.ShapelessRecipe
-
getCtIngredients
-
getCtOutput
-
equals
-
hashCode
public int hashCode()
-