net.minecraftforge.fml.common.event.FMLPostInitializationEvent Java Examples
The following examples show how to use
net.minecraftforge.fml.common.event.FMLPostInitializationEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommonProxy.java From TFC2 with GNU General Public License v3.0 | 6 votes |
public void postInit(FMLPostInitializationEvent event) { Recipes.RegisterNormalRecipes(); Recipes.RegisterKnappingRecipes(); Recipes.RegisterKilnRecipes(); MinecraftForge.EVENT_BUS.register(new CreateSpawnHandler()); MinecraftForge.EVENT_BUS.register(new WorldLoadHandler()); MinecraftForge.EVENT_BUS.register(new EntityLivingHandler()); MinecraftForge.EVENT_BUS.register(new JoinWorldHandler()); MinecraftForge.EVENT_BUS.register(new ChunkLoadHandler()); MinecraftForge.EVENT_BUS.register(new ServerTickHandler()); MinecraftForge.EVENT_BUS.register(new DrinkWaterHandler()); MinecraftForge.EVENT_BUS.register(new BlockHarvestHandler()); MinecraftForge.EVENT_BUS.register(new TeleportHandler()); Global.EVENT_BUS.register(new HexUpdateHandler()); Global.EVENT_BUS.register(new IslandUpdateHandler()); registerAnimals(); registerFuel(); }
Example #2
Source File: ClientProxy.java From Valkyrien-Skies with Apache License 2.0 | 5 votes |
@Override public void postInit(FMLPostInitializationEvent e) { super.postInit(e); Minecraft.getMinecraft().getFramebuffer().enableStencil(); // Register physics infuser tile entity renderer. ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPhysicsInfuser.class, new TileEntityPhysicsInfuserRenderer()); }
Example #3
Source File: EnderZoo.java From EnderZoo with Creative Commons Zero v1.0 Universal | 5 votes |
@EventHandler public void postInit(FMLPostInitializationEvent event) { MobSpawns.instance.loadSpawnConfig(); if (Config.enderZooDifficultyModifierEnabled || Config.globalDifficultyModifierEnabled) { spawnEventHandler = new MobSpawnEventHandler(); spawnEventHandler.init(); } }
Example #4
Source File: MooFluids.java From Moo-Fluids with GNU General Public License v3.0 | 5 votes |
@Mod.EventHandler public static void postInit(FMLPostInitializationEvent event) { if (ModInformation.DEBUG_MODE) { LogHelper.info(String.format("Finished post-initialisation stage for %s", ModInformation.MOD_ID)); } }
Example #5
Source File: ClientProxy.java From TFC2 with GNU General Public License v3.0 | 5 votes |
@Override public void postInit(FMLPostInitializationEvent event) { super.postInit(event); MinecraftForge.EVENT_BUS.register(new ModelBakeHandler()); MinecraftForge.EVENT_BUS.register(new SmallVesselHighlightHandler()); }
Example #6
Source File: GTMod.java From GT-Classic with GNU Lesser General Public License v3.0 | 5 votes |
@Mod.EventHandler public void postInit(FMLPostInitializationEvent e) { proxy.postInit(e); GTMaterialGen.postInitProperities(); GTRecipeIterators.postInit(); GTTileMatterFabricator.postInit(); GTTileMultiFusionReactor.postInit(); GTRecipeMods.postInit(); GTTileDisassembler.init(); if (GTConfig.modcompat.compatTwilightForest && Loader.isModLoaded(GTValues.MOD_ID_TFOREST)) { GTTwilightForestHandler.initStalactites(); } }
Example #7
Source File: NovaMinecraft.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@Mod.EventHandler public void postInit(FMLPostInitializationEvent evt) { try { proxy.postInit(evt); nativeConverters.stream().forEachOrdered(forgeLoadable -> forgeLoadable.postInit(evt)); Game.recipes().init(); int size = novaModWrappers.size() + novaWrappers.size(); if (size > 0) { ProgressManager.ProgressBar progressBar = ProgressManager.push("Post-initializing NOVA wrappers", size); FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar); novaModWrappers.stream().forEachOrdered(wrapper -> { fmlProgressBar.step(wrapper.getClass()); wrapper.postInit(evt); }); novaWrappers.stream().forEachOrdered(wrapper -> { fmlProgressBar.step(wrapper.getClass()); wrapper.postInit(evt); }); fmlProgressBar.finish(); ProgressManager.pop(progressBar); } } catch (Exception e) { Game.logger().error("Error during postInit"); e.printStackTrace(); throw new InitializationException(e); } }
Example #8
Source File: TinkerToolLeveling.java From TinkersToolLeveling with MIT License | 5 votes |
@EventHandler public void postInit(FMLPostInitializationEvent event) { MinecraftForge.EVENT_BUS.register(slimeknights.toolleveling.EventHandler.INSTANCE); MinecraftForge.EVENT_BUS.register(EntityXpHandler.INSTANCE); if(event.getSide().isServer()) { MinecraftForge.EVENT_BUS.register(new ConfigSync()); } }
Example #9
Source File: Signals.java From Signals with GNU General Public License v3.0 | 5 votes |
@EventHandler public void postInit(FMLPostInitializationEvent event){ proxy.postInit(); RailManager.getInstance().initializeAPIImplementors(asmData); SignalsConfig.client.networkVisualization.initDefaults(); ConfigManager.sync(Constants.MOD_ID, Type.INSTANCE); }
Example #10
Source File: NovaMinecraft.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@Mod.EventHandler @Override @SuppressWarnings("deprecation") public void postInit(FMLPostInitializationEvent evt) { try { proxy.postInit(evt); nativeConverters.stream().forEachOrdered(forgeLoadable -> forgeLoadable.postInit(evt)); Game.recipes().init(); net.minecraftforge.fml.common.ProgressManager.ProgressBar progressBar = net.minecraftforge.fml.common.ProgressManager.push("Post-initializing NOVA wrappers", (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar); novaModWrappers.stream().forEachOrdered(wrapper -> { fmlProgressBar.step(wrapper.getClass()); wrapper.postInit(evt); }); novaWrappers.stream().forEachOrdered(wrapper -> { fmlProgressBar.step(wrapper.getClass()); wrapper.postInit(evt); }); fmlProgressBar.finish(); net.minecraftforge.fml.common.ProgressManager.pop(progressBar); } catch (Exception e) { Game.logger().error("Error during postInit", e); e.printStackTrace(); throw new InitializationException(e); } }
Example #11
Source File: ExNihiloAdscensio.java From ExNihiloAdscensio with MIT License | 5 votes |
@EventHandler public static void postInit(FMLPostInitializationEvent event) { if (Loader.isModLoaded("tconstruct") && Config.doTICCompat) { CompatTConstruct.postInit(); } if (Loader.isModLoaded("EnderIO") && Config.doEnderIOCompat) { CompatEIO.postInit(); } }
Example #12
Source File: SkyblockAddons.java From SkyblockAddons with MIT License | 5 votes |
@Mod.EventHandler public void postInit(FMLPostInitializationEvent e) { onlineData = new Gson().fromJson(new JsonReader(utils.getBufferedReader("data.json")), OnlineData.class); configValues.loadValues(); persistentValues.loadValues(); setKeyBindingDescriptions(); usingLabymod = utils.isModLoaded("labymod"); usingOofModv1 = utils.isModLoaded("refractionoof", "1.0"); utils.pullOnlineData(); scheduleMagmaBossCheck(); for (Feature feature : Feature.values()) { if (feature.isGuiFeature()) feature.getSettings().add(EnumUtils.FeatureSetting.GUI_SCALE); if (feature.isColorFeature()) feature.getSettings().add(EnumUtils.FeatureSetting.COLOR); } if (configValues.isEnabled(Feature.FANCY_WARP_MENU)) { // Load in these textures so they don't lag the user loading them in later... for (IslandWarpGui.Island island : IslandWarpGui.Island.values()) { Minecraft.getMinecraft().getTextureManager().bindTexture(island.getResourceLocation()); } } Minecraft.getMinecraft().getTextureManager().bindTexture(SkyblockAddonsGui.LOGO); Minecraft.getMinecraft().getTextureManager().bindTexture(SkyblockAddonsGui.LOGO_GLOW); }
Example #13
Source File: CustomMainMenu.java From Custom-Main-Menu with MIT License | 4 votes |
@EventHandler public void postInit(FMLPostInitializationEvent event) { }
Example #14
Source File: ModContainer.java From AdvancedRocketry with MIT License | 4 votes |
@SubscribeEvent public void postInit(FMLPostInitializationEvent event) {}
Example #15
Source File: Levels.java From Levels with GNU General Public License v2.0 | 4 votes |
@EventHandler public void postInit(FMLPostInitializationEvent event) {}
Example #16
Source File: TeleportMod.java From ModdingTutorials with GNU General Public License v2.0 | 4 votes |
@EventHandler public void postInit(FMLPostInitializationEvent event) { }
Example #17
Source File: TFC2Core.java From TFC2 with GNU General Public License v3.0 | 4 votes |
@EventHandler public void modsLoaded(FMLPostInitializationEvent evt) { }
Example #18
Source File: IProxy.java From AgriCraft with MIT License | 4 votes |
@Override default void postInitStart(FMLPostInitializationEvent event) { PluginHandler.postInit(); AgriOreDict.upgradeOreDict(); }
Example #19
Source File: BaseMetals.java From BaseMetals with GNU Lesser General Public License v2.1 | 4 votes |
@SideOnly(Side.SERVER) private void serverPostInit(FMLPostInitializationEvent event){ // server-only code }
Example #20
Source File: TeleportMod.java From ModdingTutorials with GNU General Public License v2.0 | 4 votes |
@EventHandler public void postInit(FMLPostInitializationEvent event) { }
Example #21
Source File: PyCode.java From pycode-minecraft with MIT License | 4 votes |
@EventHandler public void postinit(FMLPostInitializationEvent event) { proxy.postInit(); }
Example #22
Source File: LunatriusCore.java From LunatriusCore with MIT License | 4 votes |
@Mod.EventHandler public void postInit(final FMLPostInitializationEvent event) { proxy.postInit(event); }
Example #23
Source File: BetterChests.java From BetterChests with GNU Lesser General Public License v3.0 | 4 votes |
@EventHandler public void postInit(FMLPostInitializationEvent event) { PlantHarvestHelper.INSTANCE.finishLoading(); OreDictionary.registerOre("chest", BlocksItemsBetterChests.betterchest); OreDictionary.registerOre("drawerBasic", BlocksItemsBetterChests.betterbarrel); }
Example #24
Source File: OpenMods.java From OpenModsLib with MIT License | 4 votes |
@EventHandler public void postInit(FMLPostInitializationEvent evt) { Integration.loadModules(); proxy.postInit(); }
Example #25
Source File: LogisticsPipes2.java From Logistics-Pipes-2 with MIT License | 4 votes |
@Mod.EventHandler public void postInit(FMLPostInitializationEvent event){ proxy.postInit(event); }
Example #26
Source File: CommonProxy.java From Logistics-Pipes-2 with MIT License | 4 votes |
public void postInit(FMLPostInitializationEvent event){ if(config != null && config.hasChanged()){ config.save(); } }
Example #27
Source File: ValkyrienSkiesMod.java From Valkyrien-Skies with Apache License 2.0 | 4 votes |
@EventHandler public void postInit(FMLPostInitializationEvent event) { proxy.postInit(event); }
Example #28
Source File: CommonProxy.java From Valkyrien-Skies with Apache License 2.0 | 4 votes |
public void postInit(FMLPostInitializationEvent e) { }
Example #29
Source File: IGWMod.java From IGW-mod with GNU General Public License v2.0 | 4 votes |
@EventHandler public void postInit(FMLPostInitializationEvent event){ proxy.postInit(); }
Example #30
Source File: CommonProxy.java From LunatriusCore with MIT License | 4 votes |
public void postInit(final FMLPostInitializationEvent event) { if (VersionChecker.isAllowedToCheck("Global") && ConfigurationHandler.VersionCheck.checkForUpdates) { VersionChecker.startVersionCheck(); } }