IEntityAttributeInstance
Link to ientityattributeinstance
Importing the package
Link to importing-the-package
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 | Return Type |
---|---|---|
ZenGetter attribute | GetterMethod getAttribute() | Return Type IEntityAttribute |
ZenGetter baseValue | GetterMethod getBaseValue() | Return Type double |
ZenGetter modifiers | GetterMethod getModifiers() | Return Type List <IEntityAttributeModifier> |
ZenGetter attributeValue | GetterMethod getAttributeValue() | Return Type 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();