quilt-template-mod/src/main/java/com/example/example_mod/ExampleMod.java

19 lines
673 B
Java
Raw Normal View History

2022-04-20 19:02:00 +00:00
package com.example.example_mod;
2022-04-20 17:09:40 +00:00
import org.quiltmc.loader.api.ModContainer;
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
2022-04-20 22:21:17 +00:00
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
2022-04-20 17:09:40 +00:00
public class ExampleMod implements ModInitializer {
2022-04-20 19:02:00 +00:00
// 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.
2022-04-20 19:02:00 +00:00
// That way, it's clear which mod wrote info, warnings, and errors.
2022-04-20 22:21:17 +00:00
public static final Logger LOGGER = LoggerFactory.getLogger("Example Mod");
2022-04-20 17:09:40 +00:00
@Override
public void onInitialize(ModContainer mod) {
LOGGER.info("Hello Quilt world from {}!", mod.metadata().name());
2022-04-20 17:09:40 +00:00
}
}