Interface KeyManager
- All Known Implementing Classes:
- AbstractKeyManager,- MinecraftKeyManager,- PluginKeyManager
public interface KeyManager
An interface for all 
NamespacedKey manager- 
Method SummaryModifier and TypeMethodDescriptionorg.bukkit.NamespacedKeyCreate a newNamespacedKey.default <Z> PluginKeyPair<Z>createKeyPair(String key, org.bukkit.persistence.PersistentDataType<?, Z> dataType) Create a new key pair with null default valuedefault <Z> PluginKeyPair<Z>createKeyPair(String key, org.bukkit.persistence.PersistentDataType<?, Z> dataType, Z defaultValue) Create a new key pair
- 
Method Details- 
createKeyCreate a newNamespacedKey. This should have a function to store the createdNamespacedKeyfor later uses.- Parameters:
- key- the key
- Returns:
- the NamespacedKey
 
- 
createKeyPairdefault <Z> PluginKeyPair<Z> createKeyPair(String key, org.bukkit.persistence.PersistentDataType<?, Z> dataType, Z defaultValue) Create a new key pair- Type Parameters:
- Z- the retrieved object type when applying this data type
- Parameters:
- key- the key
- dataType- the data type for the value
- defaultValue- the default value if not found
- Returns:
- the new key pair
 
- 
createKeyPairdefault <Z> PluginKeyPair<Z> createKeyPair(String key, org.bukkit.persistence.PersistentDataType<?, Z> dataType) Create a new key pair with null default value- Type Parameters:
- Z- the retrieved object type when applying this data type
- Parameters:
- key- the key
- dataType- the data type for the value
- Returns:
- the new key pair
 
 
-