AttributeOperation

Importing the class

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.AttributeOperation;

Extending Enum<AttributeOperation>

AttributeOperation extends Enum<AttributeOperation>. That means all methods available in Enum<AttributeOperation> are also available in AttributeOperation

Static Properties

名称TypeHas GetterHas SetterDescription
ADDITIONAttributeOperationtruefalseNo Description Provided
MULTIPLY_BASEAttributeOperationtruefalseNo Description Provided
MULTIPLY_TOTALAttributeOperationtruefalseNo Description Provided

Methods

getId

Gets the ID of this operation.

Returns: The ID of this operation.
Return Type: int

ZenScript
Copy
// AttributeOperation.getId() as int

myAttributeOperation.getId();

Properties

名称TypeHas GetterHas SetterDescription
idinttruefalseGets the ID of this operation.