You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
579 B
Java
20 lines
579 B
Java
package net.fabricmc.example;
|
|
|
|
import net.fabricmc.api.ModInitializer;
|
|
import org.apache.logging.log4j.Level;
|
|
import org.apache.logging.log4j.LogManager;
|
|
import org.apache.logging.log4j.Logger;
|
|
|
|
public class ExampleMod implements ModInitializer {
|
|
public static final Logger LOGGER = LogManager.getLogger();
|
|
|
|
@Override
|
|
public void onInitialize() {
|
|
// This code runs as soon as Minecraft is in a mod-load-ready state.
|
|
// However, some things (like resources) may still be uninitialized.
|
|
// Proceed with mild caution.
|
|
|
|
LOGGER.log(Level.INFO, "Hello Fabric world!");
|
|
}
|
|
}
|