Skip to content

Commit

Permalink
Remove some debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Griefed committed Nov 9, 2023
1 parent 0d2ef49 commit 967b2d2
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions common/src/main/java/de/griefed/addemall/CommonClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ 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
// your own abstraction layer. You can learn more about this in our provided services class. In this example
// 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###*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public class MixinMinecraft {

@Inject(at = @At("TAIL"), method = "<init>")
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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
5 changes: 3 additions & 2 deletions forge/src/main/java/de/griefed/addemall/AddEmAllForge.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
};
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 967b2d2

Please sign in to comment.