add a mod id const

This commit is contained in:
ix0rai 2024-02-17 00:12:07 -06:00 committed by GitHub
parent 334a960b14
commit 05277f8cc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ public class ExampleMod implements ModInitializer {
// That way, it's clear which mod wrote info, warnings, and errors.
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
public void onInitialize(ModContainer mod) {
LOGGER.info("Hello Quilt world from {}!", mod.metadata().name());