Class UuidDataType
java.lang.Object
com.jeff_media.morepersistentdatatypes.datatypes.UuidDataType
- All Implemented Interfaces:
PersistentDataType<byte[],
UUID>
A
PersistentDataType
for UUID
s-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.persistence.PersistentDataType
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, TAG_CONTAINER_ARRAY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromPrimitive
(byte[] primitive, PersistentDataAdapterContext context) Class<byte[]>
byte[]
toPrimitive
(UUID complex, PersistentDataAdapterContext context)
-
Constructor Details
-
UuidDataType
public UuidDataType()
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveType
in interfacePersistentDataType<byte[],
UUID>
-
getComplexType
- Specified by:
getComplexType
in interfacePersistentDataType<byte[],
UUID>
-
toPrimitive
- Specified by:
toPrimitive
in interfacePersistentDataType<byte[],
UUID>
-
fromPrimitive
@NotNull public UUID fromPrimitive(@NotNull byte[] primitive, @NotNull PersistentDataAdapterContext context) - Specified by:
fromPrimitive
in interfacePersistentDataType<byte[],
UUID>
-