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.
|
2022-04-20 19:23:53 +00:00
|
|
|
// 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) {
|
2022-04-20 20:11:34 +00:00
|
|
|
LOGGER.info("Hello Quilt world from {} v{}!", mod.metadata().name(), mod.metadata().version().raw());
|
2022-04-20 17:09:40 +00:00
|
|
|
}
|
|
|
|
}
|