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();