MCIngredientConditioned

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.

Importing the class

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.MCIngredientConditioned

Implemented Interfaces

MCIngredientConditioned implementuje następujące interfejsy. That means any method available to them can also be used on this class.

Methods

anyDamage

Typ zwracania: crafttweaker.api.item.MCIngredientConditioned<crafttweaker.api.item.ISkładnik>

null.anyDamage();

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

nul.getRemainingItem(stack as crafttweaker.api.item.IItemStack);
null.getRemainingItem(<item:minecraft:iron_ingot>);
ParameterTypeDescription
stackcrafttweaker.api.item.IItemStackThe stack to provide for this ingredient.

matches

Does the given stack match the ingredient?

Return type: boolean

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

Return type: boolean

myMCIngredientConditioned.matches(stack as crafttweaker.api.item.IItemStack, ignoruj obrażenia jako boolean);
ParameterTypeDescription
stackcrafttweaker.api.item.IItemStackNo description provided
zignorowano obrażeniabooleanNo description provided

onlyDamaged

Typ zwracania: crafttweaker.api.item.MCIngredientConditioned<crafttweaker.api.item.ISkładnik>

null.onlyDamaged();

onlyIf

Typ zwracania: crafttweaker.api.item.MCIngredientConditioned<crafttweaker.api.item.ISkładnik>

null.onlyIf(uid jako String, funkcja jako function.Predicate<crafttweaker.api.item.IItemStack>);
ParameterTypeDescriptionIsOptionalDefault Value
uidStringNo description providedfalsenull
functionFunkcja. Przewidaj<crafttweaker.api.item.IItemStack>No description providedtruenull

Properties

NameTypeHas GetterHas Setter
bazowy SkładnikTtruefalse
commandStringStringtruefalse
warunekcrafttweaker.api.item.IIngredientTransformer<T>truefalse
itemscrafttweaker.api.item.IItemStack[]truefalse

Operators

OR

<tag:ingotIron> | inne jak crafttweaker.api.item.IIngredient
ParameterTypeDescription
othercrafttweaker.api.item.IIngredientNo description provided

Casters