Uses of Interface
org.bukkit.persistence.PersistentDataType
Packages that use PersistentDataType
Package
Description
Classes that allow attaching persistent data to various objects.
-
Uses of PersistentDataType in org.bukkit.persistence
Subinterfaces of PersistentDataType in org.bukkit.persistenceModifier and TypeInterfaceDescriptioninterfaceThe list persistent data represents a data type that is capable of storing a list of other data types in aPersistentDataContainer.Classes in org.bukkit.persistence that implement PersistentDataTypeModifier and TypeClassDescriptionstatic classA convenience implementation to convert between Byte and Boolean as there is no native implementation for booleans.static classA default implementation that simply exists to pass on the retrieved or inserted value to the next layer.Fields in org.bukkit.persistence declared as PersistentDataTypeModifier and TypeFieldDescriptionstatic final PersistentDataType<Byte, Boolean> PersistentDataType.BOOLEANA convenience implementation to convert between Byte and Boolean as there is no native implementation for booleans.static final PersistentDataType<Byte, Byte> PersistentDataType.BYTEstatic final PersistentDataType<byte[], byte[]> PersistentDataType.BYTE_ARRAYstatic final PersistentDataType<Double, Double> PersistentDataType.DOUBLEstatic final PersistentDataType<Float, Float> PersistentDataType.FLOATstatic final PersistentDataType<Integer, Integer> PersistentDataType.INTEGERstatic final PersistentDataType<int[], int[]> PersistentDataType.INTEGER_ARRAYstatic final PersistentDataType<Long, Long> PersistentDataType.LONGstatic final PersistentDataType<long[], long[]> PersistentDataType.LONG_ARRAYstatic final PersistentDataType<Short, Short> PersistentDataType.SHORTstatic final PersistentDataType<String, String> PersistentDataType.STRINGstatic final PersistentDataType<PersistentDataContainer, PersistentDataContainer> PersistentDataType.TAG_CONTAINERstatic final PersistentDataType<PersistentDataContainer[], PersistentDataContainer[]> PersistentDataType.TAG_CONTAINER_ARRAYDeprecated.Methods in org.bukkit.persistence that return PersistentDataTypeModifier and TypeMethodDescriptionListPersistentDataType.elementType()Provides the persistent data type of the elements found in the list.Methods in org.bukkit.persistence with parameters of type PersistentDataTypeModifier and TypeMethodDescription<P,C> C PersistentDataContainer.get(NamespacedKey key, PersistentDataType<P, C> type) Returns the metadata value that is stored on thePersistentDataHolderinstance.<P,C> C PersistentDataContainer.getOrDefault(NamespacedKey key, PersistentDataType<P, C> type, C defaultValue) Returns the metadata value that is stored on thePersistentDataHolderinstance.<P,C> boolean PersistentDataContainer.has(NamespacedKey key, PersistentDataType<P, C> type) Returns if the persistent metadata provider has metadata registered matching the provided parameters.<P,C> ListPersistentDataType <P, C> ListPersistentDataTypeProvider.listTypeFrom(PersistentDataType<P, C> elementType) Constructs a new list persistent data type given any persistent data type for its elements.<P,C> void PersistentDataContainer.set(NamespacedKey key, PersistentDataType<P, C> type, C value) Stores a metadata value on thePersistentDataHolderinstance.
LIST'sListPersistentDataTypeProvider.dataContainers()instead asListPersistentDataTypes offer full support for primitive types, such as thePersistentDataContainer.