MutableBundleContents
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.
Members
clearItems() as Mutable
Clears the items of the MutableBundleContents.
Returns: The new MutableBundleContents.
Return Type:
MutableBundleContents
static of(contents as BundleContents) as Mutable
Creates a new MutableBundleContents with the given contents.
Returns: The new MutableBundleContents.
Parameters:
Return Type:
MutableBundleContents
removeOne() as IItemStack
Removes one item from the MutableBundleContents.
Returns: The item that was removed.
Return Type:
IItemStack
toImmutable() as BundleContents
Converts the MutableBundleContents to an immutable BundleContents.
Returns: The immutable BundleContents.
Return Type:
BundleContents
implicit as BundleContents
Converts the MutableBundleContents to an immutable BundleContents.
Return Type:
BundleContents