原材料リスト

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

Implemented Interfaces

IngredientList は、以下のインターフェイスを実装しています。 That means any method available to them can also be used on this class.

Methods

anyDamage

戻り値の型: crafttweaker.api.item.MCIngredientConditioned<crafttweaker.api.item.IIngredient>

null.anyDamage();

getRemainingItem

この材料スタックでクラフトが行われると、グリッド上になにが残るか? ただし、スタックが一致するかどうかのチェックは行いません! Craft Tweakerでの使用例,

Return type: crafttweaker.api.item.IItemStack

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

Does the given stack match the ingredient?

Return type: boolean

null.matches(stack as crafttweaker.api.item.IItemStack, ignoreDamage as boolean);
ParameterTypeDescription
stackcrafttweaker.api.item.IItemStackThe stack to check
ignoreDamageboolean型損傷を確認する必要がありますか?

onlyDamaged

戻り値の型: crafttweaker.api.item.MCIngredientConditioned<crafttweaker.api.item.IIngredient>

null.onlyDamaged();

onlyIf

戻り値の型: crafttweaker.api.item.MCIngredientConditioned<crafttweaker.api.item.IIngredient>

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

Properties

名称TypeHas GetterHas Setter
commandStringStringtruefalse
itemscrafttweaker.api.item.IItemStack[]truefalse

演算子

OR

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

Casters