BundleContents
Link to bundlecontents
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.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
Static Methods
Link to static-methods
Name: of
Return Type: BundleContents
ZenScript CopyBundleContents.of(items as stdlib.List<IItemStack>) as BundleContents
Parameter | Type |
---|---|
Parameter items | Type stdlib.List<IItemStack> |
Properties
Link to properties
Name | Type | Has Getter | Has 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 |