Class NamespaceRegistry
java.lang.Object
com.zombienw.onyxlib.impl.registry.NamespaceRegistry
Global internal registry for managing all plugin namespaces.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Resets the registry.static Collection<OnyxNamespaceImpl> Retrieves all registered namespaces.static OnyxItemImplgetItem(NamespacedKey key) Retrieves an item across all namespaces using its full key.static OnyxNamespaceImplgetNamespace(String pluginName) Retrieves a namespace without creating it.static OnyxNamespacegetOrCreate(Plugin plugin) Retrieves an existing namespace for a plugin, or creates a new one.static voidlockAll()Locks all registered namespaces, preventing item registrations.
-
Method Details
-
getOrCreate
Retrieves an existing namespace for a plugin, or creates a new one. -
getNamespace
Retrieves a namespace without creating it. -
getAllNamespaces
Retrieves all registered namespaces. -
getItem
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.
-