Class PersistentUUIDDataType
java.lang.Object
io.github.bakedlibs.dough.data.persistent.PersistentUUIDDataType
- All Implemented Interfaces:
PersistentDataType<int[],UUID>
- Author:
- Sfiguz7, Walshy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.persistence.PersistentDataType
PersistentDataType.PrimitivePersistentDataType<T extends Object> -
Field Summary
FieldsFields inherited from interface org.bukkit.persistence.PersistentDataType
BYTE, BYTE_ARRAY, DOUBLE, FLOAT, INTEGER, INTEGER_ARRAY, LONG, LONG_ARRAY, SHORT, STRING, TAG_CONTAINER -
Method Summary
Modifier and TypeMethodDescriptionstatic UUIDfromIntArray(int[] ints) fromPrimitive(int[] primitive, PersistentDataAdapterContext context) Class<int[]>static int[]toIntArray(UUID uuid) int[]toPrimitive(UUID complex, PersistentDataAdapterContext context)
-
Field Details
-
TYPE
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein interfacePersistentDataType<int[],UUID>
-
getComplexType
- Specified by:
getComplexTypein interfacePersistentDataType<int[],UUID>
-
toPrimitive
@Nonnull public int[] toPrimitive(@Nonnull UUID complex, @Nonnull PersistentDataAdapterContext context) - Specified by:
toPrimitivein interfacePersistentDataType<int[],UUID>
-
fromPrimitive
@Nonnull public UUID fromPrimitive(@Nonnull int[] primitive, @Nonnull PersistentDataAdapterContext context) - Specified by:
fromPrimitivein interfacePersistentDataType<int[],UUID>
-
fromIntArray
-
toIntArray
-