AttributeOperation

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.entity.attribute.AttributeOperation;

Implements

AttributeOperation implements the following interfaces:

StringRepresentable

Undocumented Interfaces

Comparable<Enum>

Enum Constants

AttributeOperation is an enum with 3 constants. They are accessible like so:

script.zs
// AttributeOperation.ADD_MULTIPLIED_BASE
<constant:minecraft:attribute/operation:add_multiplied_base>
// AttributeOperation.ADD_MULTIPLIED_TOTAL
<constant:minecraft:attribute/operation:add_multiplied_total>
// AttributeOperation.ADD_VALUE
<constant:minecraft:attribute/operation:add_value>

Members

Getter
Gets the id of this operation.
script.zs
// Operation.id as int
<constant:minecraft:attribute/operation:add_multiplied_base>.id

Return Type: int

Getter
Gets the serialized name.
script.zs
// Operation.serializedName as string
<constant:minecraft:attribute/operation:add_multiplied_base>.serializedName

Return Type: string

serializedName() as string
Gets the serialized name.

Returns: the serialized name.

script.zs
// Operation.serializedName() as string;
<constant:minecraft:attribute/operation:add_multiplied_base>.serializedName();

Return Type: string