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