IWeightedIngredient

Link to iweightedingredient

An IWeightedIngredient is an ingredient with a percentage. It is the subclass of WeightedItemStack, WeightedLiquidStack and WeightedOreDictEntry.

패키지 임포트하기

Link to 패키지-임포트하기

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.
import crafttweaker.item.IWeightedIngredient;

ZenGetter역할반환 타입
ZenGetter
ingredient
역할
Returns the associated IIngredient
반환 타입
IIngredient
ZenGetter
chance
역할
Returns the stack's chance as decimal (e.g. 0.2)
반환 타입
float
ZenGetter
percent
역할
Returns the stack's chance as percentage (e.g. 20.0)
반환 타입
float