mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 22:07:59 +01:00
39 lines
975 B
Java
39 lines
975 B
Java
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;
|
|
|
|
public class Unicopia implements ModInitializer {
|
|
|
|
public static final Logger LOGGER = LogManager.getLogger();
|
|
|
|
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);
|
|
|
|
UItems.bootstrap();
|
|
}
|
|
}
|