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
Copy
import 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

Name: of

Return Type: BlockItemStateProperties

ZenScript
Copy
BlockItemStateProperties.of(properties as string[string]) as BlockItemStateProperties
ParameterType
Parameter
properties
Type
string[string]

Name: apply

Return Type: BlockState

ZenScript
Copy
BlockItemStateProperties.apply(state as BlockState) as BlockState
ParameterType
Parameter
state
Type
BlockState

Name: properties

Return Type: string[string]

ZenScript
Copy
// BlockItemStateProperties.properties() as string[string]

myBlockItemStateProperties.properties();
NameTypeHas GetterHas Setter
Name
isEmpty
Type
boolean
Has Getter
true
Has Setter
false