ItemContainerContents

Link to itemcontainercontents

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

Name: empty

Return Type: ItemContainerContents

ZenScript
Copy
// ItemContainerContents.empty() as ItemContainerContents

ItemContainerContents.empty();

Name: of

Return Type: ItemContainerContents

ZenScript
Copy
ItemContainerContents.of(items as stdlib.List<IItemStack>) as ItemContainerContents
ParameterType
Parameter
items
Type
stdlib.List<IItemStack>

Name: copyInto

ZenScript
Copy
ItemContainerContents.copyInto(stacks as stdlib.List<IItemStack>)
ParameterType
Parameter
stacks
Type
stdlib.List<IItemStack>
NameTypeHas GetterHas Setter
Name
copyOne
Type
IItemStack
Has Getter
true
Has Setter
false
Name
items
Type
stdlib.List<IItemStack>
Has Getter
true
Has Setter
false
Name
nonEmptyItems
Type
stdlib.List<IItemStack>
Has Getter
true
Has Setter
false