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

Implemented Interfaces

Link to implemented-interfaces

BundleContents implements the following interfaces. That means all methods defined in these interfaces are also available in BundleContents

Name: of

Return Type: BundleContents

ZenScript
Copy
BundleContents.of(items as stdlib.List<IItemStack>) as BundleContents
ParameterType
Parameter
items
Type
stdlib.List<IItemStack>
NameTypeHas GetterHas Setter
Name
isEmpty
Type
boolean
Has Getter
true
Has Setter
false
Name
items
Type
stdlib.Iterable<ItemStack>
Has Getter
true
Has Setter
false
Name
size
Type
int
Has Getter
true
Has Setter
false