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

Extending Record

Link to extending-record

PotDecorations extends Record. That means all methods available in Record are also available in PotDecorations

Name: of

Return Type: PotDecorations

ZenScript
Copy
PotDecorations.of(back as ItemDefinition?, left as ItemDefinition?, right as ItemDefinition?, front as ItemDefinition?) as PotDecorations
ParameterType
Parameter
back
Type
ItemDefinition?
Parameter
left
Type
ItemDefinition?
Parameter
right
Type
ItemDefinition?
Parameter
front
Type
ItemDefinition?
NameTypeHas GetterHas Setter
Name
back
Type
ItemDefinition?
Has Getter
true
Has Setter
false
Name
front
Type
ItemDefinition?
Has Getter
true
Has Setter
false
Name
left
Type
ItemDefinition?
Has Getter
true
Has Setter
false
Name
ordered
Type
stdlib.List<ItemDefinition>
Has Getter
true
Has Setter
false
Name
right
Type
ItemDefinition?
Has Getter
true
Has Setter
false