Tool
Link to tool
Importing the class
Link to 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 Copyimport crafttweaker.api.item.component.Tool;
Extending Record
Link to extending-record
Tool extends Record. That means all methods available in Record are also available in Tool
Static Methods
Link to static-methods
Methods
Link to methods
Name: getMiningSpeed
Return Type: float
ZenScript CopyTool.getMiningSpeed(state as BlockState) as float
Parameter | Type |
---|---|
Parameter state | Type BlockState |
Name: isCorrectForDrops
Return Type: boolean
ZenScript CopyTool.isCorrectForDrops(state as BlockState) as boolean
Parameter | Type |
---|---|
Parameter state | Type BlockState |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name damagePerBlock | Type int | Has Getter true | Has Setter false |
Name defaultMiningSpeed | Type float | Has Getter true | Has Setter false |
Name rules | Type stdlib.List<ToolRule> | Has Getter true | Has Setter false |