# Uses of Interface
org.bukkit.persistence.PersistentDataType

Packages that use PersistentDataType
Package
Description
org.bukkit.persistence
Classes that allow attaching persistent data to various objects.

## Uses of PersistentDataType in org.bukkit.persistence

Classes in org.bukkit.persistence that implement PersistentDataType
Modifier and Type
Class
Description
`static class`
`PersistentDataType.PrimitivePersistentDataType<T>`
A default implementation that simply exists to pass on the retrieved or inserted value to the next layer.
Fields in org.bukkit.persistence declared as PersistentDataType
Modifier and Type
Field
Description
`static final PersistentDataType<Byte,Byte>`
PersistentDataType.`BYTE`
`static final PersistentDataType<byte[],byte[]>`
PersistentDataType.`BYTE_ARRAY`
`static final PersistentDataType<Double,Double>`
PersistentDataType.`DOUBLE`
`static final PersistentDataType<Float,Float>`
PersistentDataType.`FLOAT`
`static final PersistentDataType<Integer,Integer>`
PersistentDataType.`INTEGER`
`static final PersistentDataType<int[],int[]>`
PersistentDataType.`INTEGER_ARRAY`
`static final PersistentDataType<Long,Long>`
PersistentDataType.`LONG`
`static final PersistentDataType<long[],long[]>`
PersistentDataType.`LONG_ARRAY`
`static final PersistentDataType<Short,Short>`
PersistentDataType.`SHORT`
`static final PersistentDataType<String,String>`
PersistentDataType.`STRING`
`static final PersistentDataType<PersistentDataContainer,PersistentDataContainer>`
PersistentDataType.`TAG_CONTAINER`
`static final PersistentDataType<PersistentDataContainer[],PersistentDataContainer[]>`
PersistentDataType.`TAG_CONTAINER_ARRAY`
Methods in org.bukkit.persistence with parameters of type PersistentDataType
Modifier and Type
Method
Description
`<T, Z> Z`
PersistentDataContainer.`get(@NotNull NamespacedKey key, @NotNull PersistentDataType<T,Z> type)`
Returns the metadata value that is stored on the `PersistentDataHolder` instance.
`<T, Z> Z`
PersistentDataContainer.`getOrDefault(@NotNull NamespacedKey key, @NotNull PersistentDataType<T,Z> type, Z defaultValue)`
Returns the metadata value that is stored on the `PersistentDataHolder` instance.
`<T, Z> boolean`
PersistentDataContainer.`has(@NotNull NamespacedKey key, @NotNull PersistentDataType<T,Z> type)`
Returns if the persistent metadata provider has metadata registered matching the provided parameters.
`<T, Z> void`
PersistentDataContainer.`set(@NotNull NamespacedKey key, @NotNull PersistentDataType<T,Z> type, Z value)`
Stores a metadata value on the `PersistentDataHolder` instance.