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