Uses of Interface
io.papermc.paper.persistence.PersistentDataKey
Packages that use PersistentDataKey
Package
Description
Root package for the Paper API.
Classes that allow attaching persistent data to various objects.
-
Uses of PersistentDataKey in io.papermc.paper
Methods in io.papermc.paper that return PersistentDataKeyModifier and TypeMethodDescription<C> PersistentDataKey<C> InternalAPIBridge.createPersistentDataKey(Key key, PersistentDataType<?, C> type) -
Uses of PersistentDataKey in io.papermc.paper.persistence
Methods in io.papermc.paper.persistence that return PersistentDataKeyModifier and TypeMethodDescriptionstatic <C> PersistentDataKey<C> PersistentDataKey.of(Key key, PersistentDataType<?, C> type) Methods in io.papermc.paper.persistence with parameters of type PersistentDataKeyModifier and TypeMethodDescriptiondefault <C> @Nullable CPersistentDataContainerView.get(PersistentDataKey<C> dataKey) Returns the metadata value that is stored on thePersistentDataHolderinstance.default <C> CPersistentDataContainerView.getOrDefault(PersistentDataKey<C> dataKey, C defaultValue) Returns the metadata value that is stored on thePersistentDataHolderinstance.default booleanPersistentDataContainerView.has(PersistentDataKey<?> dataKey) Returns if the persistent metadata provider has metadata registered matching the provided parameters. -
Uses of PersistentDataKey in org.bukkit.persistence
Methods in org.bukkit.persistence with parameters of type PersistentDataKeyModifier and TypeMethodDescriptiondefault voidPersistentDataContainer.remove(@NotNull PersistentDataKey<?> dataKey) Removes a custom key from thePersistentDataHolderinstance.default <C> voidPersistentDataContainer.set(@NotNull PersistentDataKey<C> dataKey, C value) Stores a metadata value on thePersistentDataHolderinstance.