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
Copy
import crafttweaker.api.entity.AttributeInstance;

Link to applyNonPersistentModifier

Name: applyNonPersistentModifier

Return Type: void

ZenScript
Copy
AttributeInstance.applyNonPersistentModifier(modifier as AttributeModifier) as void
ParameterTypeBeschreibung
Parameter
modifier
Type
AttributeModifier
Beschreibung
No Description Provided

Link to applyPersistentModifier

Name: applyPersistentModifier

Return Type: void

ZenScript
Copy
AttributeInstance.applyPersistentModifier(modifier as AttributeModifier) as void
ParameterTypeBeschreibung
Parameter
modifier
Type
AttributeModifier
Beschreibung
No Description Provided

Name: getModifier

Return Type: AttributeModifier?

ZenScript
Copy
AttributeInstance.getModifier(uuid as string) as AttributeModifier?
ParameterTypeBeschreibung
Parameter
uuid
Type
string
Beschreibung
No Description Provided

Name: hasModifier

Return Type: boolean

ZenScript
Copy
AttributeInstance.hasModifier(modifier as AttributeModifier) as boolean
ParameterTypeBeschreibung
Parameter
modifier
Type
AttributeModifier
Beschreibung
No Description Provided

Name: removeModifier

Return Type: void

ZenScript
Copy
AttributeInstance.removeModifier(modifier as AttributeModifier) as void
ParameterTypeBeschreibung
Parameter
modifier
Type
AttributeModifier
Beschreibung
No Description Provided

Name: removeModifier

Return Type: void

ZenScript
Copy
AttributeInstance.removeModifier(uuid as string) as void
ParameterTypeBeschreibung
Parameter
uuid
Type
string
Beschreibung
No Description Provided
NameTypeHas GetterHas SetterBeschreibung
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