AttributeOperation

导入相关包

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

名称类型可获得可设置描述
ADDITIONAttributeOperationtruefalseNo Description Provided
MULTIPLY_BASEAttributeOperationtruefalseNo Description Provided
MULTIPLY_TOTALAttributeOperationtruefalseNo Description Provided

方法

getId

Gets the ID of this operation.

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

ZenScript
Copy
// AttributeOperation.getId() as int

myAttributeOperation.getId();

参数

名称类型可获得可设置描述
idinttruefalseGets the ID of this operation.