ItemContainerContents

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

Members

copyInto(stacks as List<IItemStack>)
script.zs
// ItemContainerContents.copyInto(stacks as List<IItemStack>);
myItemContainerContents.copyInto(myList);

Parameters:

stacks Type: List<IItemStack>
Getter
script.zs
// ItemContainerContents.copyOne as IItemStack
myItemContainerContents.copyOne

Return Type: IItemStack

static empty() as ItemContainerContents
script.zs
// ItemContainerContents.empty() as ItemContainerContents;
ItemContainerContents.empty();

Return Type: ItemContainerContents

Getter
script.zs
// ItemContainerContents.items as List<IItemStack>
myItemContainerContents.items

Return Type: List<IItemStack>

Getter
script.zs
// ItemContainerContents.nonEmptyItems as List<IItemStack>
myItemContainerContents.nonEmptyItems

Return Type: List<IItemStack>

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

Parameters:

items Type: List<IItemStack>

Return Type: ItemContainerContents