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