BlockItemStateProperties
Link to blockitemstateproperties
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.BlockItemStateProperties;
Extending Record
Link to extending-record
BlockItemStateProperties extends Record. That means all methods available in Record are also available in BlockItemStateProperties
Static Methods
Link to static-methods
Name: of
Return Type: BlockItemStateProperties
ZenScript CopyBlockItemStateProperties.of(properties as string[string]) as BlockItemStateProperties
Parameter | Type |
---|---|
Parameter properties | Type string[string] |
Methods
Link to methods
Name: apply
Return Type: BlockState
ZenScript CopyBlockItemStateProperties.apply(state as BlockState) as BlockState
Parameter | Type |
---|---|
Parameter state | Type BlockState |
Name: properties
Return Type: string[string]
ZenScript Copy// BlockItemStateProperties.properties() as string[string]
myBlockItemStateProperties.properties();
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name isEmpty | Type boolean | Has Getter true | Has Setter false |