Uses of Interface
org.bukkit.persistence.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 classPersistentDataType.PrimitivePersistentDataType<T>A default implementation that simply exists to pass on the retrieved or inserted value to the next layer.Methods in org.bukkit.persistence with parameters of type PersistentDataType Modifier and Type Method Description <T, Z> ZPersistentDataContainer. get(NamespacedKey key, PersistentDataType<T,Z> type)Returns the metadata value that is stored on thePersistentDataHolderinstance.<T, Z> ZPersistentDataContainer. getOrDefault(NamespacedKey key, PersistentDataType<T,Z> type, Z defaultValue)Returns the metadata value that is stored on thePersistentDataHolderinstance.<T, Z> booleanPersistentDataContainer. has(NamespacedKey key, PersistentDataType<T,Z> type)Returns if the persistent metadata provider has metadata registered matching the provided parameters.<T, Z> voidPersistentDataContainer. set(NamespacedKey key, PersistentDataType<T,Z> type, Z value)Stores a metadata value on thePersistentDataHolderinstance.