Skip to content

Block Registry

The block registry contains all registered block types.

You can get the BlockRegistry using the previously retrieved Nova instance.

val blockRegistry = Nova.blockRegistry
BlockRegistry blockRegistry = Nova.getNova().getBlockRegistry();

After that, you can retrieve a block type by its id:

val block = blockRegistry.getBlock("machines:pulverizer")
NovaBlock block = blockRegistry.getBlock("machines:pulverizer");