Class NamespaceRegistry

java.lang.Object
com.zombienw.onyxlib.impl.registry.NamespaceRegistry

public final class NamespaceRegistry extends Object
Global internal registry for managing all plugin namespaces.
  • Method Details

    • getOrCreate

      public static OnyxNamespace getOrCreate(Plugin plugin)
      Retrieves an existing namespace for a plugin, or creates a new one.
    • getNamespace

      public static OnyxNamespaceImpl getNamespace(String pluginName)
      Retrieves a namespace without creating it.
    • getAllNamespaces

      public static Collection<OnyxNamespaceImpl> getAllNamespaces()
      Retrieves all registered namespaces.
    • getItem

      public static OnyxItemImpl getItem(NamespacedKey key)
      Retrieves an item across all namespaces using its full key.
    • lockAll

      public static void lockAll()
      Locks all registered namespaces, preventing item registrations.
    • clear

      public static void clear()
      Resets the registry. Used during server reloads.