package com.minelittlepony.unicopia; import net.fabricmc.api.ModInitializer; import net.fabricmc.fabric.api.event.world.WorldTickCallback; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import com.minelittlepony.unicopia.command.Commands; import com.minelittlepony.unicopia.network.Channel; import com.minelittlepony.unicopia.world.UnicopiaWorld; 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(); WorldTickCallback.EVENT.register(AwaitTickQueue::tick); UnicopiaWorld.bootstrap(); } }