22 lines
768 B
Java
22 lines
768 B
Java
package com.example.example_mod;
|
|
|
|
import org.quiltmc.loader.api.ModContainer;
|
|
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
public class ExampleMod implements ModInitializer {
|
|
// 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.
|
|
// 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());
|
|
}
|
|
}
|