Skip to content

Resource Keys

Represents a key for a biome resource in the game. This interface extends Kyori’s Keyed interface, allowing it to be used as a key in various registries and maps.

  • of(String, String): Creates a new ResourceKey with the specified namespace and value.
  • fromString(String): Creates a new ResourceKey from a string in the format “namespace:value”.
  • namespace(): Returns the namespace of this ResourceKey.
  • path(): Returns the path of this ResourceKey.