ItemStackArrayPersistentDataType

class ItemStackArrayPersistentDataType : PersistentDataType<Array<PersistentDataContainer>, Array<ItemStack?>>

This class represents a PersistentDataType, that is used to save an indexed array of ItemStacks to be saved to a PersistentDataContainer. Useful for storing data about an inventory.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun fromPrimitive(primitive: Array<PersistentDataContainer>, context: PersistentDataAdapterContext): Array<ItemStack?>
Link copied to clipboard
open override fun getComplexType(): Class<Array<ItemStack?>>
Link copied to clipboard
open override fun getPrimitiveType(): Class<Array<PersistentDataContainer>>
Link copied to clipboard
open override fun toPrimitive(complex: Array<ItemStack?>, context: PersistentDataAdapterContext): Array<PersistentDataContainer>