Class ShortArrayDataType
java.lang.Object
com.jeff_media.morepersistentdatatypes.datatypes.ShortArrayDataType
- All Implemented Interfaces:
PersistentDataType<byte[],
short[]>
A
PersistentDataType
for short
arrays.-
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 TypeMethodDescriptionshort[]
fromPrimitive
(byte[] bytes, PersistentDataAdapterContext itemTagAdapterContext) Class<short[]>
Class<byte[]>
byte[]
toPrimitive
(short[] shorts, PersistentDataAdapterContext itemTagAdapterContext)
-
Constructor Details
-
ShortArrayDataType
public ShortArrayDataType()
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveType
in interfacePersistentDataType<byte[],
short[]>
-
getComplexType
- Specified by:
getComplexType
in interfacePersistentDataType<byte[],
short[]>
-
toPrimitive
@NotNull public byte[] toPrimitive(short[] shorts, @NotNull PersistentDataAdapterContext itemTagAdapterContext) - Specified by:
toPrimitive
in interfacePersistentDataType<byte[],
short[]>
-
fromPrimitive
@NotNull public short[] fromPrimitive(@NotNull byte[] bytes, @NotNull PersistentDataAdapterContext itemTagAdapterContext) - Specified by:
fromPrimitive
in interfacePersistentDataType<byte[],
short[]>
-