Skip to content

Commit

Permalink
use MOD_ID more
Browse files Browse the repository at this point in the history
  • Loading branch information
jiink committed Apr 17, 2024
1 parent 3b83450 commit b60ab2d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/jiink/smeltinginapinch/SmeltingInAPinch.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,43 +27,43 @@ public class SmeltingInAPinch implements ModInitializer {
public static final String MOD_ID = "smeltinginapinch";
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
public static final Logger LOGGER = LoggerFactory.getLogger("modid");
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

public static final Block DEMO_BLOCK = Registry.register(
Registries.BLOCK,
new Identifier("smeltinginapinch", "demo_block"),
new Identifier(MOD_ID, "demo_block"),
new DemoBlock(FabricBlockSettings.create().strength(1.0f))
);
public static final Item DEMO_BLOCK_ITEM = Registry.register(
Registries.ITEM,
new Identifier("smeltinginapinch", "demo_block"),
new Identifier(MOD_ID, "demo_block"),
new BlockItem(DEMO_BLOCK, new Item.Settings())
);
public static final BlockEntityType<DemoBlockEntity> DEMO_BLOCK_ENTITY = Registry.register(
Registries.BLOCK_ENTITY_TYPE,
new Identifier("smeltinginapinch", "demo_block_entity"),
new Identifier(MOD_ID, "demo_block_entity"),
FabricBlockEntityTypeBuilder.create(DemoBlockEntity::new, DEMO_BLOCK).build()
);

public static final Block WOODEN_FURNACE_BLOCK = Registry.register(
Registries.BLOCK,
new Identifier("smeltinginapinch", "wooden_furnace"),
new Identifier(MOD_ID, "wooden_furnace"),
new WoodenFurnaceBlock(Block.Settings.create().strength(1.0f))
);
public static final Item WOODEN_FURANCE_BLOCK_ITEM = Registry.register(
Registries.ITEM,
new Identifier("smeltinginapinch", "wooden_furnace"),
new Identifier(MOD_ID, "wooden_furnace"),
new BlockItem(WOODEN_FURNACE_BLOCK, new Item.Settings())
);
public static final BlockEntityType<WoodenFurnaceBlockEntity> WOODEN_FURNACE_BLOCK_ENTITY = Registry.register(
Registries.BLOCK_ENTITY_TYPE,
new Identifier("smeltinginapinch", "wooden_furnace_block_entity"),
new Identifier(MOD_ID, "wooden_furnace_block_entity"),
FabricBlockEntityTypeBuilder.create(WoodenFurnaceBlockEntity::new, WOODEN_FURNACE_BLOCK).build()
);

public static final ScreenHandlerType<WoodenFurnaceScreenHandler> WOODEN_FURNACE_SCREEN_HANDLER = Registry.register(
Registries.SCREEN_HANDLER,
new Identifier("smeltinginapinch", "wooden_furnace_screen_handler"),
new Identifier(MOD_ID, "wooden_furnace_screen_handler"),
new ExtendedScreenHandlerType<>(WoodenFurnaceScreenHandler::new)
);
@Override
Expand Down

0 comments on commit b60ab2d

Please sign in to comment.