chipmunkmod/src/main/java/net/fabricmc/example/ExampleMod.java

22 lines
728 B
Java
Raw Normal View History

2018-11-03 23:22:32 +01:00
package net.fabricmc.example;
import net.fabricmc.api.ModInitializer;
2022-01-19 22:54:09 +00:00
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
2018-11-03 23:22:32 +01:00
public class ExampleMod implements ModInitializer {
2021-09-22 13:25:04 +02:00
// 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.
// That way, it's clear which mod wrote info, warnings, and errors.
2022-01-19 22:54:09 +00:00
public static final Logger LOGGER = LoggerFactory.getLogger("modid");
2021-09-22 13:25:04 +02:00
2018-11-03 23:22:32 +01:00
@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized.
// Proceed with mild caution.
2021-09-22 13:25:04 +02:00
LOGGER.info("Hello Fabric world!");
2018-11-03 23:22:32 +01:00
}
}