Interface OnyxNamespace

All Known Implementing Classes:
OnyxNamespaceImpl

public interface OnyxNamespace
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the key associated with this namespace.
    Retrieves an existing OnyxItem or creates a new one if it doesn't exist.
  • Method Details

    • getKey

      NamespacedKey getKey()
      Gets the key associated with this namespace.
      Returns:
      The underlying Bukkit NamespacedKey.
    • item

      OnyxItem item(String id)
      Retrieves an existing OnyxItem or creates a new one if it doesn't exist.
      Parameters:
      id - The unique identifier for the item (e.g., "strawberry").
      Returns:
      The OnyxItem configuration and creation wrapper.