コード例 #1
0
 @Override
 public void init(FMLInitializationEvent event) {
   super.init(event);
   LegacyBlocks.Render();
   LegacyItems.Render();
   LegacyTools.Render();
 }
コード例 #2
0
  @EventHandler
  public void init(FMLInitializationEvent event) {
    PacketDispatcher.registerPackets();
    proxy.init(event);

    GameRegistry.addShapelessRecipe(new ItemStack(itemEmptyAtlas), Items.book, Items.compass);

    RecipeSorter.register(
        "antiqueatlas:atlascloning",
        RecipeAtlasCloning.class,
        SHAPELESS,
        "after:minecraft:shapeless");
    GameRegistry.addRecipe(new RecipeAtlasCloning());

    RecipeSorter.register(
        "antiqueatlas:atlascombining",
        RecipeAtlasCombining.class,
        SHAPELESS,
        "after:minecraft:shapeless");
    RecipeAtlasCombining recipeCombining = new RecipeAtlasCombining();
    GameRegistry.addRecipe(recipeCombining);
    FMLCommonHandler.instance().bus().register(recipeCombining);

    MinecraftForge.EVENT_BUS.register(extBiomeData);
    FMLCommonHandler.instance().bus().register(extBiomeData);

    MinecraftForge.EVENT_BUS.register(globalMarkersData);
    FMLCommonHandler.instance().bus().register(globalMarkersData);

    MinecraftForge.EVENT_BUS.register(new DeathWatcher());

    MinecraftForge.EVENT_BUS.register(new VillageWatcher());
    MinecraftForge.EVENT_BUS.register(new NetherFortressWatcher());
    MinecraftForge.EVENT_BUS.register(new NetherPortalWatcher());
  }
コード例 #3
0
 @Override
 public void init() {
   super.init();
   BHH_Blocks.registerRenderBlocks();
   BHH_Items.registerRenderItems();
   RenderingRegistry.registerEntityRenderingHandler(
       EntityNPC.class, new RenderNPC(new ModelNPC(), 0.5F));
 }
コード例 #4
0
ファイル: Main.java プロジェクト: XDRosenheim/Forge-mod
 @EventHandler
 public void init(FMLInitializationEvent e) {
   // The init Handler is called after the preInit Handler.
   // In this method we can build up data structures, add Crafting Recipes and register new
   // handler.
   System.out.println("Called method: FMLInitializationEvent");
   proxy.init(e);
 }
コード例 #5
0
  @Override
  public void init(FMLInitializationEvent event) {
    super.init(event);
    weaponHandler.registerWeapon(MatterOverdriveItems.phaserRifle);
    weaponHandler.registerWeapon(MatterOverdriveItems.phaser);
    weaponHandler.registerWeapon(MatterOverdriveItems.omniTool);

    MatterOverdriveGuides.registerGuideElements(event);
  }
コード例 #6
0
  @EventHandler
  public void init(FMLInitializationEvent event) throws Exception {
    packetPipeline.registerMessage(
        AnvilTechniquePacket.Handler.class, AnvilTechniquePacket.class, 0, Side.SERVER);
    packetPipeline.registerMessage(
        ChunkPutNbtPacket.Handler.class, ChunkPutNbtPacket.class, 1, Side.CLIENT);
    packetPipeline.registerMessage(
        ChunkRemoveNbtPacket.Handler.class, ChunkRemoveNbtPacket.class, 2, Side.CLIENT);
    packetPipeline.registerMessage(
        SoundEffectToServerPacket.Handler.class, SoundEffectToServerPacket.class, 3, Side.SERVER);
    packetPipeline.registerMessage(
        MechanicalNetworkNBTPacket.ClientHandler.class,
        MechanicalNetworkNBTPacket.class,
        4,
        Side.CLIENT);
    packetPipeline.registerMessage(
        StartMeteorShowerPacket.ClientHandler.class, StartMeteorShowerPacket.class, 5, Side.CLIENT);
    packetPipeline.registerMessage(
        WorldDataPacket.ClientHandler.class, WorldDataPacket.class, 6, Side.CLIENT);
    packetPipeline.registerMessage(
        CarpentryTechniquePacket.Handler.class, CarpentryTechniquePacket.class, 7, Side.SERVER);

    BlocksVC.init();
    ItemsVC.init();
    AchievementsVC.init();

    FMLCommonHandler.instance().bus().register(this);
    MinecraftForge.EVENT_BUS.register(this);

    proxy.registerTileEntities();

    NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy);

    System.out.println("vcraft has init.");

    GameRegistry.registerWorldGenerator(new WorldGenDeposits(), 4);

    WorldType.DEFAULT = WorldTypeVC.DEFAULT;
    WorldType.FLAT = WorldTypeVC.FLAT;

    // DimensionManager.unregisterDimension(-1);
    DimensionManager.unregisterDimension(0);
    DimensionManager.unregisterDimension(1);

    // DimensionManager.unregisterProviderType(-1);
    DimensionManager.unregisterProviderType(0);
    DimensionManager.unregisterProviderType(1);
    DimensionManager.registerProviderType(0, WorldProviderVC.class, true);
    DimensionManager.registerProviderType(1, WorldProviderVC.class, false);

    // DimensionManager.registerDimension(-1, -1);
    DimensionManager.registerDimension(0, 0);
    DimensionManager.registerDimension(1, 1);

    proxy.init(event);
  }
コード例 #7
0
 @EventHandler
 public void init(FMLInitializationEvent evt) {
   // Load Languages
   ResonantInduction.LOGGER.fine(
       "Languages Loaded:"
           + LanguageUtility.loadLanguages(Reference.LANGUAGE_DIRECTORY, Reference.LANGUAGES));
   // Set Mod Metadata
   Settings.setModMetadata(metadata, ID, NAME);
   proxy.init();
 }
コード例 #8
0
ファイル: ServerProxy.java プロジェクト: Conraad/Schematica
  @Override
  public void init(FMLInitializationEvent event) {
    super.init(event);

    FMLCommonHandler.instance().bus().register(PlayerHandler.INSTANCE);
  }
コード例 #9
0
ファイル: Vocation.java プロジェクト: Team-AbCiv/Vocation
 @EventHandler
 public void init(FMLInitializationEvent event) {
   proxy.init(event);
 }
コード例 #10
0
ファイル: ClientProxy.java プロジェクト: romelo333/starflux
 @Override
 public void init(FMLInitializationEvent e) {
   super.init(e);
   //        ModRenderers.init();
   MinecraftForge.EVENT_BUS.register(this);
 }
コード例 #11
0
ファイル: ClientProxy.java プロジェクト: tterrag1098/FFS
 public void init() {
   if (Loader.isModLoaded("Waila")) {
     WailaPluginTank.init();
   }
   super.init();
 }