IEntityAttributeInstance
Link to ientityattributeinstance
パッケージのインポート
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.AttributeInstance;
ZenGetters
Link to zengetters
ZenGetter | GetterMethod | 戻り値 |
---|---|---|
ZenGetter attribute | GetterMethod getAttribute() | 戻り値 IEntityAttribute |
ZenGetter baseValue | GetterMethod getBaseValue() | 戻り値 double |
ZenGetter modifiers | GetterMethod getModifiers() | 戻り値 List<IEntityAttrubuteModifier> |
ZenGetter attributeValue | GetterMethod getAttributeValue() | 戻り値 double |
ZenSetters
Link to zensetters
ZenSetter | SetterMethod | Parameter Type |
---|---|---|
ZenSetter baseValue | SetterMethod setBaseValue(value) | Parameter Type double |
Modifier Methods
Link to modifier-methods
List<IEntityAttrubuteModifier>
getModifiersByOperation(int operation)- boolean hasModifier(IEntityAttributeModifier modifier)
- IEntityAttributeModifier getModifier(String uuid);
- void applyModifier(IEntityAttributeModifier modifier);
- void removeModifier(IEntityAttributeModifier modifier);
- void removeModifier(String uuid);
- void removeAllModifiers();