java.lang.Object
ua.mcchickenstudio.opencreative.coding.menus.layouts.ItemsDataType
All Implemented Interfaces:
org.bukkit.persistence.PersistentDataType<byte[],org.bukkit.inventory.ItemStack[]>

public class ItemsDataType 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.BooleanPersistentDataType, org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType<P>
  • Field Summary

    Fields inherited from interface org.bukkit.persistence.PersistentDataType

    BOOLEAN, BYTE, BYTE_ARRAY, DOUBLE, FLOAT, INTEGER, INTEGER_ARRAY, LIST, LONG, LONG_ARRAY, SHORT, STRING, TAG_CONTAINER, TAG_CONTAINER_ARRAY
  • 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 @NotNull [] items, @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

    • ItemsDataType

      public ItemsDataType()
  • 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 @NotNull [] items, @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[]>