yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Top-level registry package

Open haykam821 opened this issue 3 years ago • 3 comments

Since tags are greatly tied to registries now, it would be ideal to restructure registries to have a more promenient top-level package, like tags already do.

Here's a potential structure:

  • net.minecraft.registry
    • The Registry class and its subclasses
    • .tag
    • .entry
  • net.minecraft.world
    • The DynamicRegistryManager class

haykam821 avatar Feb 10 '22 17:02 haykam821

imo dynamic registry manager would go to server.registry since it's loaded server-wide

liach avatar Feb 10 '22 17:02 liach

The dynamic registry manager exists on the client as a destination for synced registries. With this in mind, it could also go into net.minecraft.network.

haykam821 avatar Feb 10 '22 18:02 haykam821

hmm, then imo just putting it in the registry or its subpackages are fine. refer to where we place universal command stuff

liach avatar Feb 10 '22 18:02 liach