Class AbstractKeyManager

java.lang.Object
io.github.projectunified.minelib.util.key.AbstractKeyManager
All Implemented Interfaces:
KeyManager
Direct Known Subclasses:
MinecraftKeyManager, PluginKeyManager

public abstract class AbstractKeyManager extends Object implements KeyManager
The abstract key manager
  • Constructor Details

    • AbstractKeyManager

      public AbstractKeyManager()
  • Method Details

    • createKey

      public org.bukkit.NamespacedKey createKey(String key)
      Description copied from interface: KeyManager
      Create a new NamespacedKey. This should have a function to store the created NamespacedKey for later uses.
      Specified by:
      createKey in interface KeyManager
      Parameters:
      key - the key
      Returns:
      the NamespacedKey
    • newKey

      public abstract org.bukkit.NamespacedKey newKey(String key)
      Create a new key
      Parameters:
      key - the key
      Returns:
      the new key