public final class TutorialBlocks { public static final Block EXAMPLE_BLOCK = register("example_block", new Block(Block.Settings.create().strength(4.0f))); private static T register(String path, T block) { Registry.register(Registries.BLOCK, Identifier.of("tutorial", path), block); Registry.register(Registries.ITEM, Identifier.of("tutorial", path), new BlockItem(block, new Item.Settings())); return block; } public static void initialize() { } }