| Package | Description | 
|---|---|
| org.bukkit.persistence | Classes that allow attaching persistent data to various objects. | 
| 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. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static PersistentDataType<Byte,Byte> | PersistentDataType. BYTE | |
| static PersistentDataType<byte[],byte[]> | PersistentDataType. BYTE_ARRAY | |
| static PersistentDataType<Double,Double> | PersistentDataType. DOUBLE | |
| static PersistentDataType<Float,Float> | PersistentDataType. FLOAT | |
| static PersistentDataType<Integer,Integer> | PersistentDataType. INTEGER | |
| static PersistentDataType<int[],int[]> | PersistentDataType. INTEGER_ARRAY | |
| static PersistentDataType<Long,Long> | PersistentDataType. LONG | |
| static PersistentDataType<long[],long[]> | PersistentDataType. LONG_ARRAY | |
| static PersistentDataType<Short,Short> | PersistentDataType. SHORT | |
| static PersistentDataType<String,String> | PersistentDataType. STRING | |
| static PersistentDataType<PersistentDataContainer,PersistentDataContainer> | PersistentDataType. TAG_CONTAINER | |
| static PersistentDataType<PersistentDataContainer[],PersistentDataContainer[]> | PersistentDataType. TAG_CONTAINER_ARRAY | 
| Modifier and Type | Method | Description | 
|---|---|---|
| <T,Z> Z | PersistentDataContainer. get(NamespacedKey key,
   PersistentDataType<T,Z> type) | Returns the metadata value that is stored on the
  PersistentDataHolderinstance. | 
| <T,Z> Z | PersistentDataContainer. getOrDefault(NamespacedKey key,
            PersistentDataType<T,Z> type,
            Z defaultValue) | Returns the metadata value that is stored on the
  PersistentDataHolderinstance. | 
| <T,Z> boolean | PersistentDataContainer. has(NamespacedKey key,
   PersistentDataType<T,Z> type) | Returns if the persistent metadata provider has metadata registered
 matching the provided parameters. | 
| <T,Z> void | PersistentDataContainer. set(NamespacedKey key,
   PersistentDataType<T,Z> type,
   Z value) | Stores a metadata value on the  PersistentDataHolderinstance. | 
Copyright © 2020. All rights reserved.