Package org.bukkit.persistence
Class ListPersistentDataTypeProvider
java.lang.Object
org.bukkit.persistence.ListPersistentDataTypeProvider
A provider for list persistent data types that represent the known primitive
types exposed by
PersistentDataType
.-
Method Summary
Modifier and TypeMethodDescriptionbooleans()
Provides a sharedListPersistentDataType
that is capable of storing lists of booleans.@NotNull ListPersistentDataType
<byte[], byte[]> Provides a sharedListPersistentDataType
that is capable of storing lists of byte arrays.bytes()
Provides a sharedListPersistentDataType
that is capable of storing lists of bytes.Provides a sharedListPersistentDataType
that is capable of persistent data containers..doubles()
Provides a sharedListPersistentDataType
that is capable of storing lists of doubles.floats()
Provides a sharedListPersistentDataType
that is capable of storing lists of floats.@NotNull ListPersistentDataType
<int[], int[]> Provides a sharedListPersistentDataType
that is capable of storing lists of int arrays.integers()
Provides a sharedListPersistentDataType
that is capable of storing lists of integers.<P,
C> @NotNull ListPersistentDataType <P, C> listTypeFrom
(@NotNull PersistentDataType<P, C> elementType) Constructs a new list persistent data type given any persistent data type for its elements.@NotNull ListPersistentDataType
<long[], long[]> Provides a sharedListPersistentDataType
that is capable of storing lists of long arrays.longs()
Provides a sharedListPersistentDataType
that is capable of storing lists of longs.shorts()
Provides a sharedListPersistentDataType
that is capable of storing lists of shorts.strings()
Provides a sharedListPersistentDataType
that is capable of storing lists of strings.
-
Method Details
-
bytes
Provides a sharedListPersistentDataType
that is capable of storing lists of bytes.- Returns:
- the persistent data type.
-
shorts
Provides a sharedListPersistentDataType
that is capable of storing lists of shorts.- Returns:
- the persistent data type.
-
integers
Provides a sharedListPersistentDataType
that is capable of storing lists of integers.- Returns:
- the persistent data type.
-
longs
Provides a sharedListPersistentDataType
that is capable of storing lists of longs.- Returns:
- the persistent data type.
-
floats
Provides a sharedListPersistentDataType
that is capable of storing lists of floats.- Returns:
- the persistent data type.
-
doubles
Provides a sharedListPersistentDataType
that is capable of storing lists of doubles.- Returns:
- the persistent data type.
-
booleans
Provides a sharedListPersistentDataType
that is capable of storing lists of booleans.- Returns:
- the persistent data type.
-
strings
Provides a sharedListPersistentDataType
that is capable of storing lists of strings.- Returns:
- the persistent data type.
-
byteArrays
Provides a sharedListPersistentDataType
that is capable of storing lists of byte arrays.- Returns:
- the persistent data type.
-
integerArrays
Provides a sharedListPersistentDataType
that is capable of storing lists of int arrays.- Returns:
- the persistent data type.
-
longArrays
Provides a sharedListPersistentDataType
that is capable of storing lists of long arrays.- Returns:
- the persistent data type.
-
dataContainers
@NotNull public @NotNull ListPersistentDataType<PersistentDataContainer,PersistentDataContainer> dataContainers()Provides a sharedListPersistentDataType
that is capable of persistent data containers..- Returns:
- the persistent data type.
-
listTypeFrom
@NotNull public <P,C> @NotNull ListPersistentDataType<P,C> listTypeFrom(@NotNull @NotNull PersistentDataType<P, C> elementType) Constructs a new list persistent data type given any persistent data type for its elements.- Type Parameters:
P
- the generic type of the primitives stored in the list.C
- the generic type of the complex values yielded back by the persistent data types.- Parameters:
elementType
- the persistent data type that is capable of writing/reading the elements of the list.- Returns:
- the created list persistent data type.
-