diff --git a/src/main/java/com/kikis/ptdyeplus/PtdyePlus.java b/src/main/java/com/kikis/ptdyeplus/PtdyePlus.java index 33169ec..fad068a 100644 --- a/src/main/java/com/kikis/ptdyeplus/PtdyePlus.java +++ b/src/main/java/com/kikis/ptdyeplus/PtdyePlus.java @@ -30,11 +30,12 @@ import org.slf4j.Logger; import java.util.*; +@Mod(PtdyePlus.ID) public class PtdyePlus { public static final String ID = "ptdyeplus"; public static final Logger LOGGER = LogUtils.getLogger(); - private static final Minecraft minecraft = Minecraft.getInstance(); + public PtdyePlus() { MinecraftForge.EVENT_BUS.register(this); @@ -59,6 +60,8 @@ public static void registerCommands(RegisterCommandsEvent event){ @Mod.EventBusSubscriber(modid = PtdyePlus.ID, value = Dist.CLIENT) public static class ClientForgeEvents { + private static final Minecraft minecraft = Minecraft.getInstance(); + @SubscribeEvent public static void onKeyInput(InputEvent.Key event) throws NoSuchElementException { if(PonderTooltipComponentProvider.KEY_TRY_PONDER.get().consumeClick()) { diff --git a/src/main/java/com/kikis/ptdyeplus/init/BlockEntityInit.java b/src/main/java/com/kikis/ptdyeplus/init/BlockEntityInit.java index 406263e..c38501b 100644 --- a/src/main/java/com/kikis/ptdyeplus/init/BlockEntityInit.java +++ b/src/main/java/com/kikis/ptdyeplus/init/BlockEntityInit.java @@ -19,6 +19,8 @@ public class BlockEntityInit { public static final RegistryObject> CRATE = register("crate", () -> BlockEntityType.Builder.of(CrateEntity::new, BlockInit.CRATE.get()).build(null)); public static RegistryObject register(String name, Supplier supplier) { + PtdyePlus.LOGGER.info("Registering block as block-entity: {}", name); + RegistryObject entityType = ENTITY_TYPES.register(name, supplier); return entityType; } diff --git a/src/main/java/com/kikis/ptdyeplus/init/BlockInit.java b/src/main/java/com/kikis/ptdyeplus/init/BlockInit.java index bc6e54c..e5c42f0 100644 --- a/src/main/java/com/kikis/ptdyeplus/init/BlockInit.java +++ b/src/main/java/com/kikis/ptdyeplus/init/BlockInit.java @@ -34,6 +34,8 @@ public class BlockInit{ ); public static RegistryObject register(String name, Supplier supplier, Item.Properties properties) { + PtdyePlus.LOGGER.info("Registering block and block-item: {}", name); + RegistryObject block = BLOCKS.register(name, supplier); ItemInit.ITEMS.register(name, ()-> new BlockItem(block.get(), properties)); return block;