Class BlockDataArrayDataType
java.lang.Object
com.jeff_media.morepersistentdatatypes.datatypes.BlockDataArrayDataType
- All Implemented Interfaces:
PersistentDataType<byte[],
BlockData[]>
public class BlockDataArrayDataType
extends Object
implements PersistentDataType<byte[],BlockData[]>
A
PersistentDataType
for BlockData
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 TypeMethodDescriptionfromPrimitive
(byte[] bytes, PersistentDataAdapterContext context) Class<byte[]>
byte[]
toPrimitive
(BlockData[] blockData, PersistentDataAdapterContext context)
-
Constructor Details
-
BlockDataArrayDataType
public BlockDataArrayDataType()
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveType
in interfacePersistentDataType<byte[],
BlockData[]>
-
getComplexType
- Specified by:
getComplexType
in interfacePersistentDataType<byte[],
BlockData[]>
-
toPrimitive
@NotNull public byte[] toPrimitive(@NotNull BlockData[] blockData, @NotNull PersistentDataAdapterContext context) - Specified by:
toPrimitive
in interfacePersistentDataType<byte[],
BlockData[]>
-
fromPrimitive
@NotNull public BlockData[] fromPrimitive(@NotNull byte[] bytes, @NotNull PersistentDataAdapterContext context) - Specified by:
fromPrimitive
in interfacePersistentDataType<byte[],
BlockData[]>
-