Annotation Interface RegistryRef


@Retention(RUNTIME) @Target(TYPE_USE) public @interface RegistryRef
Used to tell codec resolvers what registry something belongs to.

See TagKeyCodecResolver for an example.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Used to specify the name of the registry.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Used to specify the id of the mod which added the registry.
  • Element Details

    • value

      String value
      Used to specify the name of the registry.
      Returns:
      The name of the registry.
    • namespace

      String namespace
      Used to specify the id of the mod which added the registry.
      Returns:
      The id of the mod which added the registry.
      Default:
      "minecraft"