2020-04-15 14:22:03 +02:00
|
|
|
package com.minelittlepony.unicopia;
|
2020-01-27 17:37:22 +01:00
|
|
|
|
|
|
|
import net.fabricmc.api.ModInitializer;
|
2020-05-28 18:09:53 +02:00
|
|
|
import net.fabricmc.fabric.api.event.world.WorldTickCallback;
|
2020-01-27 17:37:22 +01:00
|
|
|
import org.apache.logging.log4j.LogManager;
|
|
|
|
import org.apache.logging.log4j.Logger;
|
|
|
|
|
2020-04-15 14:22:03 +02:00
|
|
|
import com.minelittlepony.unicopia.command.Commands;
|
2020-04-23 23:44:31 +02:00
|
|
|
import com.minelittlepony.unicopia.network.Channel;
|
2020-06-26 11:44:47 +02:00
|
|
|
import com.minelittlepony.unicopia.world.UnicopiaWorld;
|
2020-01-27 17:37:22 +01:00
|
|
|
|
2020-04-16 00:44:58 +02:00
|
|
|
public class Unicopia implements ModInitializer {
|
2020-04-25 13:32:33 +02:00
|
|
|
|
2020-01-27 17:37:22 +01: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();
|
|
|
|
}
|
|
|
|
|
2020-01-27 17:37:22 +01:00
|
|
|
@Override
|
|
|
|
public void onInitialize() {
|
2020-04-23 23:44:31 +02:00
|
|
|
Channel.bootstrap();
|
2020-01-27 17:37:22 +01:00
|
|
|
UTags.bootstrap();
|
|
|
|
Commands.bootstrap();
|
2020-04-15 14:22:03 +02:00
|
|
|
|
2020-05-28 18:09:53 +02:00
|
|
|
WorldTickCallback.EVENT.register(AwaitTickQueue::tick);
|
2020-05-19 12:43:57 +02:00
|
|
|
|
2020-06-26 11:44:47 +02:00
|
|
|
UnicopiaWorld.bootstrap();
|
2020-01-27 17:37:22 +01:00
|
|
|
}
|
|
|
|
}
|