ItemContainerContents
Link to itemcontainercontents
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.ItemContainerContents;
Static Methods
Link to static-methods
Name: empty
Return Type: ItemContainerContents
ZenScript Copy// ItemContainerContents.empty() as ItemContainerContents
ItemContainerContents.empty();
Name: of
Return Type: ItemContainerContents
ZenScript CopyItemContainerContents.of(items as stdlib.List<IItemStack>) as ItemContainerContents
Parameter | Type |
---|---|
Parameter items | Type stdlib.List<IItemStack> |
Methods
Link to methods
Name: copyInto
ZenScript CopyItemContainerContents.copyInto(stacks as stdlib.List<IItemStack>)
Parameter | Type |
---|---|
Parameter stacks | Type stdlib.List<IItemStack> |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name copyOne | Type IItemStack | Has Getter true | Has Setter false |
Name items | Type stdlib.List<IItemStack> | Has Getter true | Has Setter false |
Name nonEmptyItems | Type stdlib.List<IItemStack> | Has Getter true | Has Setter false |