Skip to content

Proposal: native registry API #21

@drtheodor

Description

@drtheodor

The why

Instead of doing custom registries like modkit does right now, we could use MC's built-in registry system. This would give us a lot of benefits like stability and speed, as well as native support for all the registry shenanigans.

The how

Obviously, this means that the registry elements will lose GSON support, opting for Codecs instead.

First, we need to inject into RegistryLoader#DYNAMIC_REGISTRIES list field. Registry's element's codecs can be whatever, but referencing registry elements in other registry element codecs is better to do via RegistryElementCodec, as seen in DimensionType and DimensionOptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions