From 967b2d2bb4ebadc060a0b8aa304e10a3a3e8c902 Mon Sep 17 00:00:00 2001 From: Griefed Date: Thu, 9 Nov 2023 09:36:59 +0100 Subject: [PATCH] Remove some debug logging --- common/src/main/java/de/griefed/addemall/CommonClass.java | 3 +-- .../main/java/de/griefed/addemall/mixin/MixinMinecraft.java | 2 -- fabric/src/main/java/de/griefed/addemall/AddEmAllFabric.java | 2 +- .../java/de/griefed/addemall/mixin/MixinTitleScreen.java | 2 -- forge/src/main/java/de/griefed/addemall/AddEmAllForge.java | 5 +++-- .../java/de/griefed/addemall/mixin/MixinTitleScreen.java | 2 -- 6 files changed, 5 insertions(+), 11 deletions(-) diff --git a/common/src/main/java/de/griefed/addemall/CommonClass.java b/common/src/main/java/de/griefed/addemall/CommonClass.java index 259771d..b11ae86 100644 --- a/common/src/main/java/de/griefed/addemall/CommonClass.java +++ b/common/src/main/java/de/griefed/addemall/CommonClass.java @@ -28,7 +28,6 @@ public class CommonClass { public static void init() { Constants.LOG.info("Hello from Common init on {}! we are currently in a {} environment!", Services.PLATFORM.getPlatformName(), Services.PLATFORM.getEnvironmentName()); - Constants.LOG.info("The ID for diamonds is {}", Registry.ITEM.getKey(Items.DIAMOND)); // It is common for all supported loaders to provide a similar feature that can not be used directly in the // common code. A popular way to get around this is using Java's built-in service loader feature to create @@ -36,7 +35,7 @@ public static void init() { // we have an interface in the common code and use a loader specific implementation to delegate our call to // the platform specific approach. if (Services.PLATFORM.isModLoaded("addemall")) { - Constants.LOG.info("Hello to addemall"); + Constants.LOG.info("Hello to AddEmAll"); } /*###GENERATED CODE - DO NOT EDIT - MANUALLY EDITED CODE WILL BE LOST###*/ diff --git a/common/src/main/java/de/griefed/addemall/mixin/MixinMinecraft.java b/common/src/main/java/de/griefed/addemall/mixin/MixinMinecraft.java index efa0265..9387148 100644 --- a/common/src/main/java/de/griefed/addemall/mixin/MixinMinecraft.java +++ b/common/src/main/java/de/griefed/addemall/mixin/MixinMinecraft.java @@ -12,8 +12,6 @@ public class MixinMinecraft { @Inject(at = @At("TAIL"), method = "") private void init(CallbackInfo info) { - - Constants.LOG.info("This line is printed by an example mod common mixin!"); Constants.LOG.info("MC Version: {}", Minecraft.getInstance().getVersionType()); } } \ No newline at end of file diff --git a/fabric/src/main/java/de/griefed/addemall/AddEmAllFabric.java b/fabric/src/main/java/de/griefed/addemall/AddEmAllFabric.java index bd52790..ef97c0a 100644 --- a/fabric/src/main/java/de/griefed/addemall/AddEmAllFabric.java +++ b/fabric/src/main/java/de/griefed/addemall/AddEmAllFabric.java @@ -23,7 +23,7 @@ public class AddEmAllFabric implements ModInitializer { @Override public void onInitialize() { Constants.LOG.info("Hello world!"); - LOGGER.info("Hello Fabric World!"); + LOGGER.info("Hello Fabric World! I'm gonna AddEmAll!"); CommonClass.init(); ItemTooltipCallback.EVENT.register(CommonClass::onItemTooltip); diff --git a/fabric/src/main/java/de/griefed/addemall/mixin/MixinTitleScreen.java b/fabric/src/main/java/de/griefed/addemall/mixin/MixinTitleScreen.java index dea9fce..af63cbb 100644 --- a/fabric/src/main/java/de/griefed/addemall/mixin/MixinTitleScreen.java +++ b/fabric/src/main/java/de/griefed/addemall/mixin/MixinTitleScreen.java @@ -13,8 +13,6 @@ public class MixinTitleScreen { @Inject(at = @At("HEAD"), method = "init()V") private void init(CallbackInfo info) { - - Constants.LOG.info("This line is printed by an example mod mixin from Fabric!"); Constants.LOG.info("MC Version: {}", Minecraft.getInstance().getVersionType()); } } \ No newline at end of file diff --git a/forge/src/main/java/de/griefed/addemall/AddEmAllForge.java b/forge/src/main/java/de/griefed/addemall/AddEmAllForge.java index 5685ef8..461370f 100644 --- a/forge/src/main/java/de/griefed/addemall/AddEmAllForge.java +++ b/forge/src/main/java/de/griefed/addemall/AddEmAllForge.java @@ -12,6 +12,7 @@ import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; +import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; // The value here should match an entry in the META-INF/mods.toml file @@ -22,7 +23,7 @@ public class AddEmAllForge { public static final CreativeModeTab TAB_ADDEMALL = new CreativeModeTab(Constants.MOD_ID + ".tab") { @Override - public ItemStack makeIcon() { + public @NotNull ItemStack makeIcon() { return new ItemStack(Items.DIAMOND); } }; @@ -31,7 +32,7 @@ public ItemStack makeIcon() { public AddEmAllForge() { // Use Forge to bootstrap the Common mod. Constants.LOG.info("Hello world!"); - LOGGER.info("Hello Forge World!"); + LOGGER.info("Hello Forge World! I'm gonna AddEmAll!"); CommonClass.init(); IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); diff --git a/forge/src/main/java/de/griefed/addemall/mixin/MixinTitleScreen.java b/forge/src/main/java/de/griefed/addemall/mixin/MixinTitleScreen.java index 7dc51d3..b9bef03 100644 --- a/forge/src/main/java/de/griefed/addemall/mixin/MixinTitleScreen.java +++ b/forge/src/main/java/de/griefed/addemall/mixin/MixinTitleScreen.java @@ -13,8 +13,6 @@ public class MixinTitleScreen { @Inject(at = @At("HEAD"), method = "init()V") private void init(CallbackInfo info) { - - Constants.LOG.info("This line is printed by an example mod mixin from Forge!"); Constants.LOG.info("MC Version: {}", Minecraft.getInstance().getVersionType()); } } \ No newline at end of file