Add MOD_ID variable
This commit is contained in:
parent
29b1a8d261
commit
79845492c6
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,9 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
public class ExampleMod implements ModInitializer {
|
public class ExampleMod implements ModInitializer {
|
||||||
|
|
||||||
|
public static final String MOD_ID = "example_mod";
|
||||||
|
|
||||||
// This logger is used to write text to the console and the log file.
|
// This logger is used to write text to the console and the log file.
|
||||||
// It is considered best practice to use your mod name as the logger's name.
|
// It is considered best practice to use your mod name as the logger's name.
|
||||||
// That way, it's clear which mod wrote info, warnings, and errors.
|
// That way, it's clear which mod wrote info, warnings, and errors.
|
||||||
|
@ -13,6 +16,6 @@ public class ExampleMod implements ModInitializer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize(ModContainer mod) {
|
public void onInitialize(ModContainer mod) {
|
||||||
LOGGER.info("Hello Quilt world from {}!", mod.metadata().name());
|
LOGGER.info("Howdy World from {}!", mod.metadata().name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue