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.
import crafttweaker.api.item.component.ItemContainerContents;
Members
copyInto(stacks as List<IItemStack>)
myItemContainerContents.copyInto(myList);
Parameters:
stacks: List<IItemStack>
Type: List<IItemStack>
Getter
// ItemContainerContents.copyOne as IItemStackmyItemContainerContents.copyOne
Return Type:
IItemStack
static empty() as ItemContainerContents
Getter
myItemContainerContents.items
Return Type:
List<IItemStack>
Getter
myItemContainerContents.nonEmptyItems
Return Type:
List<IItemStack>
static of(items as List<IItemStack>) as ItemContainerContents
ItemContainerContents.of(myList);
Parameters:
items: List<IItemStack>
Type: List<IItemStack>
Return Type:
ItemContainerContents