Class ItemStackArrayDataType

java.lang.Object
me.fami6xx.rpuniverse.core.misc.persistentdatatypes.ItemStackArrayDataType
All Implemented Interfaces:
org.bukkit.persistence.PersistentDataType<byte[],​org.bukkit.inventory.ItemStack[]>

public class ItemStackArrayDataType extends Object implements org.bukkit.persistence.PersistentDataType<byte[],​org.bukkit.inventory.ItemStack[]>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.bukkit.persistence.PersistentDataType

    org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType<T extends Object>
  • Field Summary

    Fields inherited from interface org.bukkit.persistence.PersistentDataType

    BYTE, BYTE_ARRAY, DOUBLE, FLOAT, INTEGER, INTEGER_ARRAY, LONG, LONG_ARRAY, SHORT, STRING, TAG_CONTAINER
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.ItemStack @NotNull []
    fromPrimitive​(byte @NotNull [] primitive, @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
     
    @NotNull Class<org.bukkit.inventory.ItemStack[]>
     
    @NotNull Class<byte[]>
     
    byte @NotNull []
    toPrimitive​(org.bukkit.inventory.ItemStack[] complex, @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemStackArrayDataType

      public ItemStackArrayDataType()
  • Method Details

    • getPrimitiveType

      @NotNull public @NotNull Class<byte[]> getPrimitiveType()
      Specified by:
      getPrimitiveType in interface org.bukkit.persistence.PersistentDataType<byte[],​org.bukkit.inventory.ItemStack[]>
    • getComplexType

      @NotNull public @NotNull Class<org.bukkit.inventory.ItemStack[]> getComplexType()
      Specified by:
      getComplexType in interface org.bukkit.persistence.PersistentDataType<byte[],​org.bukkit.inventory.ItemStack[]>
    • toPrimitive

      public byte @NotNull [] toPrimitive(org.bukkit.inventory.ItemStack[] complex, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
      Specified by:
      toPrimitive in interface org.bukkit.persistence.PersistentDataType<byte[],​org.bukkit.inventory.ItemStack[]>
    • fromPrimitive

      public org.bukkit.inventory.ItemStack @NotNull [] fromPrimitive(byte @NotNull [] primitive, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
      Specified by:
      fromPrimitive in interface org.bukkit.persistence.PersistentDataType<byte[],​org.bukkit.inventory.ItemStack[]>