BundleContents

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.item.component.BundleContents;

Implements

BundleContents implements the following interfaces:

TooltipComponent

Members

Getter
script.zs
// BundleContents.isEmpty as bool
myBundleContents.isEmpty

Return Type: bool

Getter
script.zs
// BundleContents.items as Iterable<ItemStack>
myBundleContents.items

Return Type: Iterable<ItemStack>

static of(items as List<IItemStack>) as BundleContents
script.zs
// BundleContents.of(items as List<IItemStack>) as BundleContents;
BundleContents.of(myList);

Parameters:

items Type: List<IItemStack>

Return Type: BundleContents

Getter
script.zs
// BundleContents.size as int
myBundleContents.size

Return Type: int