Class LocaleComponentDataType

  • All Implemented Interfaces:
    org.bukkit.persistence.PersistentDataType<byte[],​ILocaleComponent>

    public class LocaleComponentDataType
    extends java.lang.Object
    implements org.bukkit.persistence.PersistentDataType<byte[],​ILocaleComponent>
    • Nested Class Summary

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

        org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType<T extends java.lang.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 Detail

      • LocaleComponentDataType

        public LocaleComponentDataType()
    • Method Detail

      • getPrimitiveType

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

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

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

        @NotNull
        public @NotNull ILocaleComponent fromPrimitive​(byte @NotNull [] bytes,
                                                       @NotNull
                                                       @NotNull org.bukkit.persistence.PersistentDataAdapterContext itemTagAdapterContext)
        Specified by:
        fromPrimitive in interface org.bukkit.persistence.PersistentDataType<byte[],​ILocaleComponent>