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-04-15 14:22:03 +02:00
|
|
|
import net.fabricmc.fabric.api.resource.ResourceManagerHelper;
|
|
|
|
import net.minecraft.resource.ResourceType;
|
|
|
|
|
2020-01-27 17:37:22 +01:00
|
|
|
import org.apache.logging.log4j.LogManager;
|
|
|
|
import org.apache.logging.log4j.Logger;
|
|
|
|
|
|
|
|
import com.minelittlepony.common.util.GamePaths;
|
2020-04-15 17:22:29 +02:00
|
|
|
import com.minelittlepony.unicopia.ability.Abilities;
|
2020-04-22 20:23:54 +02:00
|
|
|
import com.minelittlepony.unicopia.advancement.BOHDeathCriterion;
|
2020-04-15 19:06:45 +02:00
|
|
|
import com.minelittlepony.unicopia.block.UBlocks;
|
2020-04-15 14:22:03 +02:00
|
|
|
import com.minelittlepony.unicopia.command.Commands;
|
2020-04-15 19:06:45 +02:00
|
|
|
import com.minelittlepony.unicopia.container.UContainers;
|
2020-04-15 14:22:03 +02:00
|
|
|
import com.minelittlepony.unicopia.enchanting.Pages;
|
|
|
|
import com.minelittlepony.unicopia.enchanting.recipe.AffineIngredients;
|
2020-04-23 23:44:31 +02:00
|
|
|
import com.minelittlepony.unicopia.enchanting.recipe.URecipes;
|
2020-04-15 14:22:03 +02:00
|
|
|
import com.minelittlepony.unicopia.item.UItems;
|
2020-04-22 20:23:54 +02:00
|
|
|
import com.minelittlepony.unicopia.mixin.CriterionsRegistry;
|
2020-04-23 23:44:31 +02:00
|
|
|
import com.minelittlepony.unicopia.network.Channel;
|
2020-04-15 14:22:03 +02:00
|
|
|
import com.minelittlepony.unicopia.structure.UStructures;
|
2020-01-27 17:37:22 +01:00
|
|
|
|
2020-04-16 00:44:58 +02:00
|
|
|
public class Unicopia implements ModInitializer {
|
2020-01-27 17:37:22 +01:00
|
|
|
public static final String MODID = "unicopia";
|
|
|
|
public static final Logger LOGGER = LogManager.getLogger();
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onInitialize() {
|
|
|
|
Config.init(GamePaths.getConfigDirectory());
|
|
|
|
|
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
|
|
|
UBlocks.bootstrap();
|
|
|
|
UItems.bootstrap();
|
|
|
|
UContainers.bootstrap();
|
|
|
|
UStructures.bootstrap();
|
2020-04-23 23:44:31 +02:00
|
|
|
URecipes.bootstrap();
|
2020-04-15 17:22:29 +02:00
|
|
|
Abilities.getInstance().init();
|
2020-04-15 14:22:03 +02:00
|
|
|
|
2020-04-22 20:23:54 +02:00
|
|
|
CriterionsRegistry.register(BOHDeathCriterion.INSTANCE);
|
2020-04-15 14:22:03 +02:00
|
|
|
ResourceManagerHelper.get(ResourceType.SERVER_DATA).registerReloadListener(Pages.instance());
|
2020-04-15 18:36:59 +02:00
|
|
|
ResourceManagerHelper.get(ResourceType.CLIENT_RESOURCES).registerReloadListener(AffineIngredients.instance());
|
2020-01-27 17:37:22 +01:00
|
|
|
}
|
|
|
|
}
|