IEntityAttributeModifier
Link to ientityattributemodifier
Импорт пакета
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.AttributeModifier;
ZenGetters
Link to zengetters
ZenGetter | GetterMethod | Возвращаемый тип |
---|---|---|
ZenGetter uuid | GetterMethod getUUID() | Возвращаемый тип string |
ZenGetter name | GetterMethod getName() | Возвращаемый тип string |
ZenGetter operation | GetterMethod getOperation() | Возвращаемый тип int |
ZenGetter amount | GetterMethod getAmount() | Возвращаемый тип double |
ZenGetter saved | GetterMethod isSaved() | Возвращаемый тип boolean |
ZenSetters
Link to zensetters
Сеттер | SetterMethod | Parameter Type |
---|---|---|
Сеттер saved | SetterMethod setSaved(boolean) | Parameter Type boolean |
Create Modifier
Link to create-modifier
Copyfor operation:
0 = add: Increment X by Amount
1 = multiply_base: Increment Y by X * Amount
2 = multiply: Y = Y * (1 + Amount) (equivalent to Increment Y by Y * Amount).
ZenScript CopyAttributeModifier.createModifier(String name, double amount, int operation, @Optional String uuid);