AttributeInstance
Link to attributeinstance
Diese Klasse importieren
Link to diese-klasse-importieren
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 at the very top of the file.
ZenScript Copyimport crafttweaker.api.entity.attribute.AttributeInstance;
Methoden
Link to methoden
Name: addPermanentModifier
Return Type: void
ZenScript CopyAttributeInstance.addPermanentModifier(modifier as AttributeModifier) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter modifier | Type AttributeModifier | Beschreibung No Description Provided |
Name: addTransientModifier
Return Type: void
ZenScript CopyAttributeInstance.addTransientModifier(modifier as AttributeModifier) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter modifier | Type AttributeModifier | Beschreibung No Description Provided |
Name: getModifier
Return Type: AttributeModifier
ZenScript CopyAttributeInstance.getModifier(uuid as string) as AttributeModifier
Parameter | Type | Beschreibung |
---|---|---|
Parameter uuid | Type string | Beschreibung No Description Provided |
Name: hasModifier
Return Type: boolean
ZenScript CopyAttributeInstance.hasModifier(modifier as AttributeModifier) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter modifier | Type AttributeModifier | Beschreibung No Description Provided |
Name: removeModifier
Return Type: void
ZenScript CopyAttributeInstance.removeModifier(modifier as AttributeModifier) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter modifier | Type AttributeModifier | Beschreibung No Description Provided |
Name: removeModifier
Return Type: void
ZenScript CopyAttributeInstance.removeModifier(uuid as string) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter uuid | Type string | Beschreibung No Description Provided |
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name baseValue | Type double | Has Getter true | Has Setter true | Beschreibung No Description Provided |
Name modifiers | Type stdlib.List<AttributeModifier> | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name value | Type double | Has Getter true | Has Setter false | Beschreibung No Description Provided |