Unicopia/src/main/java/com/minelittlepony/unicopia/Unicopia.java

40 lines
975 B
Java
Raw Normal View History

package com.minelittlepony.unicopia;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.minelittlepony.unicopia.command.Commands;
import com.minelittlepony.unicopia.item.UItems;
import com.minelittlepony.unicopia.network.Channel;
2020-04-16 00:44:58 +02:00
public class Unicopia implements ModInitializer {
2020-04-25 13:32:33 +02:00
public static final Logger LOGGER = LogManager.getLogger();
2020-04-25 13:32:33 +02:00
private static Config CONFIG;
public static Config getConfig() {
if (CONFIG == null) {
CONFIG = new Config();
}
return CONFIG;
}
public Unicopia() {
getConfig();
}
@Override
public void onInitialize() {
Channel.bootstrap();
UTags.bootstrap();
Commands.bootstrap();
ServerTickEvents.END_WORLD_TICK.register(AwaitTickQueue::tick);
2020-05-19 12:43:57 +02:00
UItems.bootstrap();
}
}