Java 类net.minecraftforge.fml.common.event.FMLPreInitializationEvent 实例源码

项目:DebugServerInfo    文件:DebugServerInfo.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    logger = event.getModLog();

    config = new Configuration(event.getSuggestedConfigurationFile());
    doConfig();

    int id = 1; // Don't use 0, more easy debug.
    snw = NetworkRegistry.INSTANCE.newSimpleChannel(MOD_ID);

    snw.registerMessage(Request.Handler.class, Request.class, id++, Side.SERVER);
    snw.registerMessage(Data.Handler.class, Data.class, id++, Side.CLIENT);

    proxy.preInit();
}
项目:Wopper    文件:Wopper.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event){
    Configuration config = new Configuration(event.getSuggestedConfigurationFile());
    config.load();

    canBeDeactivated = config.getBoolean("canBeDeactivated", Configuration.CATEGORY_GENERAL, true, "If the wopper can be deactivated using redstone");
    wopperSpeed = config.getInt("speed", Configuration.CATEGORY_GENERAL, 10, 1, 1000, "The amount of ticks that have to pass before the wopper does a movement action again");

    if(config.hasChanged()){
        config.save();
    }

    blockWopper = new BlockWopper("wopper");
    GameRegistry.registerTileEntity(TileEntityWopper.class, MOD_ID+":wopper");

    proxy.preInit();
}
项目:BaseFoods    文件:ClientProxy.java   
@Override
    public void preInit(FMLPreInitializationEvent event) {
        super.preInit(event);
/*
        for (final String name : Fluids.getFluidBlockRegistry().keySet()) {
            final Block block = Fluids.getFluidBlockByName(name);
            final Item item = Item.getItemFromBlock(block);
            if (!item.getRegistryName().getResourceDomain().equals(BaseFoods.MODID))
                continue;
            final ModelResourceLocation fluidModelLocation = new ModelResourceLocation(item.getRegistryName().getResourceDomain() + ":" + name, "fluid");
            ModelBakery.registerItemVariants(item);
            ModelLoader.setCustomMeshDefinition(item, stack -> fluidModelLocation);
            ModelLoader.setCustomStateMapper(block, new StateMapperBase() {
                @Override
                protected ModelResourceLocation getModelResourceLocation(IBlockState state) {
                    return fluidModelLocation;
                }
            });
        }
*/
    }
项目:needtobreath    文件:CommonProxy.java   
public void preInit(FMLPreInitializationEvent e) {
        MinecraftForge.EVENT_BUS.register(new ForgeEventHandlers());
        McJtyLib.preInit(e);
        CommandHandler.registerCommands();

        GeneralConfig.preInit(e);

        File directory = e.getModConfigurationDirectory();
        mainConfig = new Configuration(new File(directory.getPath(), "needtobreathe.cfg"));
        Config.readConfig(mainConfig);

//        PacketHandler.registerMessages("meecreeps");
        SimpleNetworkWrapper network = PacketHandler.registerMessages(NeedToBreathe.MODID, "needtobreathe");
        NTBMessages.registerNetworkMessages(network);

        // Initialization of blocks and items typically goes here:
//        ModEntities.init();
        ModItems.init();
        ModBlocks.init();
    }
项目:BetterThanWeagles    文件:CommonProxy.java   
public void preInit(FMLPreInitializationEvent event)
{
    // Load configuration from file
    File configDir = event.getModConfigurationDirectory();
    config = new Configuration(new File(configDir.getPath(), "btweagles.cfg"));
    Config.readConfig();

    registerFluids();

    ModEntities.init();

    if (Loader.isModLoaded("thermalexpansion"))
    {
        IntegrationThermal.preInit();
    }
}
项目:Loot-Slash-Conquer    文件:ClientProxy.java   
@Override
public void preInit(FMLPreInitializationEvent event)
{
    MinecraftForge.EVENT_BUS.register(new ModItemModels());
    MinecraftForge.EVENT_BUS.register(new GuiMana());
    MinecraftForge.EVENT_BUS.register(new GuiHealth());
    MinecraftForge.EVENT_BUS.register(new EventRenderOverlayText());
}
项目:Melodium    文件:ClientProxy.java   
@Override
public void preInit(FMLPreInitializationEvent event){
    super.preInit(event);
    //ShaderUtil.init();
    //ModelManager.init();
    RegistryManager.registerRendering();
    RenderingRegistry.registerEntityRenderingHandler(EntityGhostHorse.class, RenderGhostHorse::new);

}
项目:Lector    文件:Lector.java   
/**
 * Run before anything else. Read your config, create blocks, items, etc, and
 * register them with the GameRegistry.
 */
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent e) {
    logger = e.getModLog();
    creativeTab = new CompatCreativeTabs("lector") {
        @Override
        protected Item getItem() {
            return ModItems.manual;
        }
    };
    this.proxy.preInit(e);
}
项目:ForgeHax    文件:ForgeHax.java   
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
    switch (event.getSide()) {
        case CLIENT: {
            //---- initialize mods ----//
            getModManager().loadClasses();
        }
        default:
            break;
    }
}
项目:DankNull    文件:CommonProxy.java   
public void preInit(FMLPreInitializationEvent e) {
    ModConfig.init();
    ModBlocks.init();
    ModItems.init();
    ModRecipes.init();
    ModIntegration.preInit();
    ModNetworking.init();
}
项目:uniquecrops    文件:UniqueCrops.java   
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {

    config = new UCConfig();
    config.loadConfig(event);

    proxy.preInit(event);
    proxy.initAllModels();
    proxy.checkResource();
    NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());
}
项目:MineCamera    文件:ItemLoader.java   
public ItemLoader(FMLPreInitializationEvent event) {
    register(itemCamera, "camera");
    register(itemTripod, "tripod");
    register(itemBattery, "battery");
    register(itemFilm, "film");
    register(itemPhotoPaper, "photo_paper");
    register(itemPictureBook, "picture_book");
    register(itemCntsTempLiquid, "cnts_temp_liquid");
    register(itemDevelopingAgent, "developing_agent");
    register(itemPicture, "picture");
    register(itemGlassesHelmet, "glasses_helmet");
}
项目:Elicitation    文件:Elicitation.java   
@EventHandler
  public void preInit(FMLPreInitializationEvent event)
  {

NetworkRegistry.INSTANCE.registerGuiHandler(Elicitation.instance, new GuiHandler());
Items.setup();
  }
项目:ExPetrum    文件:ExPCapabilityRegistry.java   
@Override
public void preInit(FMLPreInitializationEvent evt)
{
    super.preInit(evt);
    ExPPlayerCapability.register();
    ExPWorldCapability.register();
    ExPCropCapability.register();
    ExPFarmlandCapability.register();
    ExPSeedsCapability.register();
       ExPAnimalCapability.register();
}
项目:CreeperKiller    文件:CreeperKiller.java   
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent e) {
    LOG = e.getModLog();

    Map<Object, ModContainer> forgeListenerOwners = getForgeListenerOwners();
    // Remove CreeperHost ads.
    forgeListenerOwners.entrySet().stream()
            .filter(objectModContainerEntry -> objectModContainerEntry.getValue().getModId().equals("creeperhost"))
            .forEach(objectModContainerEntry -> {
                        LOG.info("CreeperKiller Removed {} handler from forge, CreeperHost ads will no longer be displayed", objectModContainerEntry.getKey().toString());
                        MinecraftForge.EVENT_BUS.unregister(objectModContainerEntry.getKey());
                    }
            );
}
项目:Simple-Chunks    文件:CommonProxy.java   
public void preInit(FMLPreInitializationEvent event)
{
    // Handle configuration
    File configDir = event.getModConfigurationDirectory();
    config = new Configuration(new File(configDir.getPath(), "simplechunks.cfg"));
    try
    {
        config.load();

        GeneralConfig.readConfig(config);
    }
    catch (Exception e)
    {
        SimpleChunks.logger.error("Error loading config file!", e);
    }
    finally
    {
        if (config.hasChanged())
        {
            config.save();
        }
    }

    // Integrate with other mods
    if (Loader.isModLoaded("theoneprobe"))
    {
        TOPCompat.register();
    }

    // Register chunkloading callback
    ForgeChunkManager.setForcedChunkLoadingCallback(SimpleChunks.instance, new ChunkLoadingHandler());
}
项目:PonySocks2    文件:PonySocks.java   
@EventHandler
  public void preInit(FMLPreInitializationEvent event) {
    MinecraftForge.EVENT_BUS.register(this);
    MinecraftForge.EVENT_BUS.register(proxy);

sock = new ItemSock();
sock.setRegistryName(new ResourceLocation(MODID, "sockitem"));

proxy.preInit();
  }
项目:Industrial-Foregoing    文件:CommonProxy.java   
public void preInit(FMLPreInitializationEvent event) {
    IFRegistries.poke();

    CraftingHelper.register(new ResourceLocation(Reference.MOD_ID, "configuration_value"), new ConfigurationConditionFactory());
    random = new Random();

    FluidsRegistry.registerFluids();
    BlockRegistry.poke();

    MinecraftForge.EVENT_BUS.register(new BlockRegistry());
    MinecraftForge.EVENT_BUS.register(new ItemRegistry());
    MinecraftForge.EVENT_BUS.register(new StrawRegistry());
    MinecraftForge.EVENT_BUS.register(new MeatFeederTickHandler());
    MinecraftForge.EVENT_BUS.register(new MobDeathHandler());
    MinecraftForge.EVENT_BUS.register(new WorldTickHandler());
    MinecraftForge.EVENT_BUS.register(new PlantRecollectableRegistryHandler());
    MinecraftForge.EVENT_BUS.register(new FakePlayerRideEntityHandler());
    MinecraftForge.EVENT_BUS.register(new PlantInteractorHarvestDropsHandler());

    NetworkRegistry.INSTANCE.registerGuiHandler(IndustrialForegoing.instance, new GuiHandler());

    CustomConfiguration.config = new Configuration(event.getSuggestedConfigurationFile());
    CustomConfiguration.config.load();
    CustomConfiguration.sync();
    CustomConfiguration.configValues = new HashMap<>();
    CustomConfiguration.configValues.put("useTEFrames", CustomConfiguration.config.getBoolean("useTEFrames", Configuration.CATEGORY_GENERAL, true, "Use Thermal Expansion Machine Frames instead of Tesla Core Lib"));

    if (Loader.isModLoaded("crafttweaker")) CraftTweakerHelper.register();

    EntityRegistry.registerModEntity(new ResourceLocation(Reference.MOD_ID, "pink_slime"), EntityPinkSlime.class, "pink_slime", 135135, IndustrialForegoing.instance, 32, 1, false, 10485860, 16777215);
    PINK_SLIME_LOOT = LootTableList.register(new ResourceLocation(Reference.MOD_ID, "entities/pink_slime"));
}
项目:statclock    文件:Statclock.java   
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
    TabStatclock = new CreativeTabSC(CreativeTabs.getNextID(), "tab_statclock");

    ModItems.preInit();
    ModBlocks.preInit();

    GameRegistry.registerWorldGenerator(new Generation(), 2);
    proxy.preInit(event);

}
项目:CustomWorldGen    文件:LoadController.java   
@Subscribe
public void propogateStateMessage(FMLEvent stateEvent)
{
    if (stateEvent instanceof FMLPreInitializationEvent)
    {
        modObjectList = buildModObjectList();
    }
    ProgressBar bar = ProgressManager.push(stateEvent.description(), activeModList.size(), true);
    for (ModContainer mc : activeModList)
    {
        bar.step(mc.getName());
        sendEventToModContainer(stateEvent, mc);
    }
    ProgressManager.pop(bar);
}
项目:ArcaneMagic    文件:ArcaneMagic.java   
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    LOGGER = event.getModLog();
    ModEntities.init();
    ArcaneMagicPacketHandler.registerMessages(ArcaneMagic.MODID);
    proxy.preInit(event);
    MinecraftForge.EVENT_BUS.register(new ModRegistry());
    MinecraftForge.EVENT_BUS.register(new AnimaSubscriber());
    ModRegistry.registerTiles();
    Capabilities.register();
}
项目:World-Border    文件:WorldBorder.java   
/**
 * Given WorldBorder's dependency on dedicated server classes and is designed for
 * use in multiplayer environments, we don't load anything on the client
 */
@Mod.EventHandler
@SideOnly(Side.CLIENT)
public void clientPreInit(FMLPreInitializationEvent event)
{
    Log.error("This mod is intended only for use on servers");
    Log.error("Please consider removing this mod from your installation");
}
项目:MiningWells    文件:ModConfig.java   
public static final void commonPreinit(FMLPreInitializationEvent e) {
    Configuration config = new Configuration(new File(e.getModConfigurationDirectory(), "/miningwells/config.cfg"));
    config.load();

    displayMiningWellJoke = config.getBoolean("displayMiningWellJoke", "misc", true, "Displays the a pun on all Mining Well items. Yes, very necessary.");
    ticksBetweenMining = config.getInt("ticksBetweenMining", "miningwell", 0, 0, 35, "The minimum number of ticks per mining operation. 0 means that the next block will be broken in the next tick, if power supply is high enough.");
    energyPerOperation = config.getInt("energyPerOperation", "miningwell", 256, 20, 1200, "The number of energy units per operation (this is multiplied by the hardness of a block + 1). If this number is 20, stone will require 40 to mine. Subtract and extra 20 for exact calculations.");
    maxEnergy = config.getInt("maxEnergy", "miningwell", 16384, 100, 1000000, "The maximum number of energy units that can be stored inside the mining well.");
    silkRatio = config.getFloat("silkRation", "miningwell", 1.0f, 0.0f, 10.0f, "The required energy is multiplied by this number if a silk touch upgrade is present, and then added back to the required energy.");
    fortuneRatio = config.getFloat("fortuneRatio", "miningwell", 0.45f, 0.0f, 3.0f, "The level of fortune present is multiplied by this, then the required energy is multiplied by that, and then added back to the required energy.");

    config.save();
}
项目:Geolosys    文件:Geolosys.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    LOGGER = event.getModLog();
    MinecraftForge.EVENT_BUS.register(new Config(event.getSuggestedConfigurationFile()));
    configOres = getOresConfig(event.getModConfigurationDirectory());
    clientRegistry = new ClientRegistry();
    MinecraftForge.EVENT_BUS.register(clientRegistry);
    chunkOreGen = new ChunkData();
    userStates = new ArrayList<>();

    ORE = new BlockOre();
    ORE_VANILLA = new BlockOreVanilla();
    ORE_SAMPLE = new BlockSample();
    ORE_SAMPLE_VANILLA = new BlockSampleVanilla();
    CLUSTER = new ItemCluster();
    ALMANAC = new ItemFieldManual();
    if (Config.getInstance().enableIngots)
    {
        INGOT = new ItemIngot();
    }
    if (Config.getInstance().enableProPick)
    {
        PRO_PICK = new ItemProPick();
    }

    registerGeolosysOreGen();
    registerVanillaOreGen();
}
项目:CharcoalPit    文件:CommonProxy.java   
public void preInit(FMLPreInitializationEvent e){
    //read config
    File file=e.getModConfigurationDirectory();
    config=new Configuration(new File(file.getPath(),"charcoal_pit.cfg"));
    Config.readcfg();
    //register item/block registry
    MinecraftForge.EVENT_BUS.register(BlocksRegistry.class);
    MinecraftForge.EVENT_BUS.register(ItemsRegistry.class);

    ItemsRegistry.initStacks();

    FluidsRegistry.registerFluids();
}
项目:RunicArcana    文件:RunicArcana.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    creativeTabRunicArcana = new CreativeTabRunicArcana(CreativeTabs.getNextID(),"Runic Arcana");
    proxy.preInit(event);
    ModItems.preInit();
    ModBlocks.preInit();
    ModTileEntities.preInit();
    PacketHandler.registerMessages("chalkNBT");
    ModRecipesVanilla.registerRecipes();
    ModEnchantment.registerEnchantments();
    ModEvents.initCommon();

}
项目:WirelessRedstone    文件:WirelessRedstone.java   
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
    SaveManager.initConfig(new File(event.getModConfigurationDirectory(), "WirelessRedstone.cfg"));
    proxy.preInit();
    PartFactory.init();
    MinecraftForge.EVENT_BUS.register(new WREventHandler());
    damageBolt = new DamageSource("wrcbe:bolt");
}
项目:VoidApi    文件:VoidApi.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    instance = this;
    config = new CVCfg(event.getSuggestedConfigurationFile());
    VCLoggers.loggerMod.log(LogLevel.Fine, "%s created.", VCConsts.modname);
    Reflector.preloadClass("v0id.api.core.event.handler.VCEventHandler");
    VoidNetwork.networkManager = NetworkRegistry.INSTANCE.newSimpleChannel(VCConsts.modid + ".net");
    VoidNetwork.networkManager.registerMessage(VoidNetHandler.class, Packet.class, 0, Side.CLIENT);
    VoidNetwork.networkManager.registerMessage(VoidNetHandler.class, Packet.class, 0, Side.SERVER);
    if (config.dataHolder.recoveryMode)
    {
        VCLoggers.loggerMod.log(LogLevel.Warning, "Starting in recovery mode! No mod functionality will be available!");
    }
}
项目:LetsEncryptRoot    文件:LetsEncryptRoot.java   
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event){
    if (event.getSide() == Side.SERVER) {
        logger.info("Client side only mod - not doing anything on the server!");
        return;
    }
}
项目:KubidibotsStreamDownloaderFromYoutubeAndDisplayerThanksToAForgeMod    文件:Streamer.java   
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
    logger = event.getModLog();
}
项目:ToolBelt    文件:ToolBelt.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    logger = event.getModLog();

    channel = NetworkRegistry.INSTANCE.newSimpleChannel(CHANNEL);

    int messageNumber = 0;
    channel.registerMessage(SwapItems.Handler.class, SwapItems.class, messageNumber++, Side.SERVER);
    channel.registerMessage(BeltContentsChange.Handler.class, BeltContentsChange.class, messageNumber++, Side.CLIENT);
    logger.debug("Final message number: " + messageNumber);

    File configurationFile = event.getSuggestedConfigurationFile();
    Config.loadConfig(configurationFile);
}
项目:Torched    文件:Torched.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    proxy.preInitMod();

    channel = new PacketChannel(Torched.MOD_NAME, PacketKeyEvent.class);

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
项目:DankNull    文件:ClientProxy.java   
@Override
public void preInit(FMLPreInitializationEvent e) {
    super.preInit(e);
    TextureUtils.addIconRegister(new DankTextures());
    DankNullPanelRenderer.initialize();
    ModBlocks.preInitModels();
    ModItems.preInitModels();
    ModCreativeTab.init();
}
项目:RecipeManipulator    文件:RecipeManipulator.java   
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
    recipeDir = new File(event.getModConfigurationDirectory().getParent(), "recipes");
    if (!recipeDir.exists()) {
        recipeDir.mkdir();
    }
    removalFile = new File(recipeDir, "removal.json");
}
项目:ChatBomb    文件:CommonProxy.java   
public void preInit(FMLPreInitializationEvent event) {
    LogUtility.info("Performing common initialization.");
    // Add achievements.
    ModBlocks.initializeBlocks();
    ModEntities.initializeEntities();
    ModRecipes.initializeCraftingRecipes();
    ModAchivements.initializeAchievements();

    ModConfig.config = new Configuration(new File(event.getModConfigurationDirectory().getPath(), "chatbomb.cfg"));
    ModConfig.parseConfig();
}
项目:Mob-Option-Redux    文件:MobOptions.java   
@EventHandler
  public void preInit(FMLPreInitializationEvent event){

    configDir = new File(event.getModConfigurationDirectory(), "MobOptions");
    if(!configDir.exists())
    configDir.mkdirs();
JSONEquipmentReader.makeEquipmentJSON();

    ConfigHandler.createConfigs(event);

    CapabilityStats.register();

    MinecraftForge.EVENT_BUS.register(new MobOptionsEventHandler());
  }
项目:Etheric    文件:Etheric.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    PacketHandler.registerMessages();

    File directory = event.getModConfigurationDirectory();
       config = new Configuration(new File(directory.getPath(), "etheric.cfg"));
       Config.readConfig();

       CapabilityManager.INSTANCE.register(IQuintessenceCapability.class, new QuintessenceCapabilityStorage(), DefaultQuintessenceCapability.class);

    proxy.preInit(event);

    GameRegistry.registerWorldGenerator(new EthericWorldGenerator(), 0);
}
项目:uniquecrops    文件:UCConfig.java   
public static void loadConfig(FMLPreInitializationEvent event) {

    Configuration config = new Configuration(event.getSuggestedConfigurationFile());
    config.load();

    dropRate = config.get("misc", "startingSeedDropRate", 5, "Drop weight for the mod's starting seed. The higher the number, the more often it'll drop.").getInt();

    cropNormal = config.get("plants", "canPlantNormieSeeds", true).getBoolean();
    cropPrecision = config.get("plants", "canPlantPrecisionSeeds", true).getBoolean();
    cropDirigible = config.get("plants", "canPlantDirigibleSeeds", true).getBoolean();
    cropWeepingbells = config.get("plants", "canPlantWeepingbellSeeds", true).getBoolean();
    cropKnowledge = config.get("plants", "canPlantKnowledgeSeeds", true).getBoolean();
    cropEnderlily = config.get("plants", "canPlantEnderlilySeeds", true).getBoolean();
    cropMillennium = config.get("plants", "canPlantMillenniumSeeds", true).getBoolean();
    cropMerlinia = config.get("plants", "canPlantMerliniaSeeds", true).getBoolean();
    cropInvisibilia = config.get("plants", "canPlantInvisibiliaSeeds", true).getBoolean();
    cropMusica = config.get("plants", "canPlantMusicaSeeds", true).getBoolean();
    cropFeroxia = config.get("plants", "canPlantFeroxiaSeeds", true).getBoolean();
    cropCinderbella = config.get("plants", "canPlantCinderbellaSeeds", true).getBoolean();
    cropCollis = config.get("plants", "canPlantCollisSeeds", true).getBoolean();
    cropMaryjane = config.get("plants", "canPlantMaryjaneSeeds", true).getBoolean();
    cropEula = config.get("plants", "canPlantEulaSeeds", true).getBoolean();
    cropDyeius = config.get("plants", "canPlantDyeiusSeeds", true).getBoolean();
    cropCobblonia = config.get("plants", "canPlantCobbloniaSeeds", true).getBoolean();
    cropAbstract = config.get("plants", "canPlantAbstractSeeds", true).getBoolean();
    cropWafflonia = config.get("plants", "canPlantCliqiaSeeds", true).getBoolean();
    cropDevilsnare = config.get("plants", "canPlantDevilSnare", true).getBoolean();
    cropPixelsius = config.get("plants", "canPlantPixelsius", true).getBoolean();
    cropArtisia = config.get("plants", "canPlantArtisia", true).getBoolean();
    cropMalleatoris = config.get("plants", "canPlantMalleatoris", true).getBoolean();
    cropPetramia = config.get("plants", "canPlantPetramia", true).getBoolean();

    config.save();
}
项目:EmergentVillages    文件:CommonProxy.java   
@Override
public void preInit(FMLPreInitializationEvent event) {
    // Load config stuff
    ConfigHandler.handleConfig(new Configuration(event.getSuggestedConfigurationFile()));
}
项目:NemesisSystem    文件:CommonProxy.java   
public void preInit(FMLPreInitializationEvent e) {
    checkToroTraitsVersion();
    initConfig(e.getSuggestedConfigurationFile());
    MinecraftForge.EVENT_BUS.register(new NemesisHandler());
    Entities.init();
}