Adding blocks can become very verbose when doing this in code.
Describing blocks in a file is easier and doesn’t require code changes to add or remove blocks.
Extend BlockRegistry to register blocks from a file.
Next to loading blocks from a file a BlockFactory might also help. Some blocks come in multiple variants (shape facing in different directions) but have the same parameters. All those different variants could be generated and registered.
Adding blocks can become very verbose when doing this in code.
Describing blocks in a file is easier and doesn’t require code changes to add or remove blocks.
Extend BlockRegistry to register blocks from a file.
Next to loading blocks from a file a BlockFactory might also help. Some blocks come in multiple variants (shape facing in different directions) but have the same parameters. All those different variants could be generated and registered.