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 g-

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 g--1

Name: applyPersistentModifier

Return Type: void

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

Link to g--2

Name: getModifier

Return Type: AttributeModifier?

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

Link to g--3

Name: hasModifier

Return Type: boolean

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

Link to g--4

Name: removeModifier

Return Type: void

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

Link to g--5

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