Unicopia/src/main/java/com/minelittlepony/unicopia/Unicopia.java
2020-09-28 20:18:10 +02:00

41 lines
1 KiB
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.entity.effect.UPotions;
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();
UPotions.bootstrap();
}
}