add a mod id const
This commit is contained in:
parent
334a960b14
commit
05277f8cc7
|
@ -11,6 +11,9 @@ public class ExampleMod implements ModInitializer {
|
||||||
// That way, it's clear which mod wrote info, warnings, and errors.
|
// That way, it's clear which mod wrote info, warnings, and errors.
|
||||||
public static final Logger LOGGER = LoggerFactory.getLogger("Example Mod");
|
public static final Logger LOGGER = LoggerFactory.getLogger("Example Mod");
|
||||||
|
|
||||||
|
// A central place to house your mod ID.
|
||||||
|
public static final String MOD_ID = "example_mod";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize(ModContainer mod) {
|
public void onInitialize(ModContainer mod) {
|
||||||
LOGGER.info("Hello Quilt world from {}!", mod.metadata().name());
|
LOGGER.info("Hello Quilt world from {}!", mod.metadata().name());
|
||||||
|
|
Loading…
Reference in New Issue