Zutatenliste

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

Diese Klasse importieren

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.

crafttweaker.api.item.IngredientList

Implemented Interfaces

IngredientList implementiert die folgenden Schnittstellen. That means any method available to them can also be used on this class.

Methoden

anyDamage

Retourentyp: crafttweaker.api.item.MCIngredientConditioned<crafttweaker.api.item.IIngredient>

null.anySchaden();

getRemainingItem

When this ingredient stack is crafted, what will remain in the grid? Does not check if the stack matches though! Used e.g. in CrT's net.minecraft.item.crafting.ICraftingRecipe

Return type: crafttweaker.api.item.IItemStack

null.getRemainingItem(Stapel als crafttweaker.api.item.IItemStack);
null.getRemainingItem(<item:minecraft:iron_ingot>);
ParameterTypeBeschreibung
stackcrafttweaker.api.item.IItemStackThe stack to provide for this ingredient.

matches

Does the given stack match the ingredient?

Return type: boolean

null.matches(Stapel als crafttweaker.api.item.IItemStack);
null.matches(<item:minecraft:iron_ingot>);
ParameterTypeBeschreibung
stackcrafttweaker.api.item.IItemStackThe stack to check

Does the given stack match the ingredient?

Return type: boolean

null.matches(Stapel als crafttweaker.api.item.IItemStack, ignoreSchaden als boolean);
ParameterTypeBeschreibung
stackcrafttweaker.api.item.IItemStackThe stack to check
ignoreSchadenbooleanSoll der Schaden überprüft werden?

onlyDamaged

Retourentyp: crafttweaker.api.item.MCIngredientConditioned<crafttweaker.api.item.IIngredient>

null.onlyDamaged();

onlyIf

Retourentyp: crafttweaker.api.item.MCIngredientConditioned<crafttweaker.api.item.IIngredient>

null.onlyIf(uid as String, function as function.Predicate<crafttweaker.api.item.IItemStack>);
ParameterTypeBeschreibungIsOptionalStandardwert
uidStringNo description providedfalsenull
functionfunction.Predicate<crafttweaker.api.item.IItemStack>No description providedtruenull

Properties

NameTypeHas GetterHas Setter
commandStringStringtruefalse
itemscrafttweaker.api.item.IItemStack[]truefalse

Operatoren

OR (ODER)

<tag:ingotIron> | Andere als crafttweaker.api.item.IIngredient
ParameterTypeBeschreibung
othercrafttweaker.api.item.IIngredientNo description provided

Casters