IEntityDrop
Link to ientitydrop
An IEntityDrop refers to a drop from an Entity.
패키지 임포트하기
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.entity.IEntityDrop;
ZenGetters
Link to zengetters
You can retrieve this information out of them.
ZenGetter | 역할 | Return type | Usage |
---|---|---|---|
ZenGetter chance | 역할 Returns the chance of the drop. | Return type float | Usage drop.chance |
ZenGetter max | 역할 Returns the maximum Amount of the drop. | Return type int | Usage drop.max |
ZenGetter min | 역할 Returns the minimum Amount of the drop. | Return type int | Usage drop.min |
ZenGetter playerOnly | 역할 Returns whether the drop is playerOnly. | Return type boolean | Usage drop.playerOnly |
ZenGetter range | 역할 Returns the minimum to maximum Amount range of the drop. | Return type IntegerRange | Usage drop.range |
ZenGetter stack | 역할 Returns the dropped Item. | Return type IItemStack | Usage drop.stack |