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 | 参数类型 |
---|---|---|
ZenSetter baseValue | SetterMethod setBaseValue(value) | 参数类型 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();