Package dev.sefiraat.sefilib.persistence
Class StringListDataType
java.lang.Object
dev.sefiraat.sefilib.persistence.StringListDataType
- All Implemented Interfaces:
PersistentDataType<PersistentDataContainer,List<String>>
public class StringListDataType
extends Object
implements PersistentDataType<PersistentDataContainer,List<String>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.persistence.PersistentDataType
PersistentDataType.PrimitivePersistentDataType<T extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PersistentDataType<PersistentDataContainer,List<String>> 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromPrimitive(PersistentDataContainer primitive, PersistentDataAdapterContext context) toPrimitive(List<String> complex, PersistentDataAdapterContext context)
-
Field Details
-
TYPE
-
-
Constructor Details
-
StringListDataType
public StringListDataType()
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein interfacePersistentDataType<PersistentDataContainer,List<String>>
-
getComplexType
- Specified by:
getComplexTypein interfacePersistentDataType<PersistentDataContainer,List<String>>
-
toPrimitive
@Nonnull public PersistentDataContainer toPrimitive(@Nonnull List<String> complex, @Nonnull PersistentDataAdapterContext context) - Specified by:
toPrimitivein interfacePersistentDataType<PersistentDataContainer,List<String>>
-
fromPrimitive
@Nonnull public List<String> fromPrimitive(@Nonnull PersistentDataContainer primitive, @Nonnull PersistentDataAdapterContext context) - Specified by:
fromPrimitivein interfacePersistentDataType<PersistentDataContainer,List<String>>
-