コード例 #1
0
  @Mod.EventHandler
  public void postInit(FMLPostInitializationEvent event) {
    if (event.getSide().isClient()) {
      ClientProxy.initRenderer();
    }

    // config syncing
    MinecraftForge.EVENT_BUS.register(new ConfigSync());
  }
コード例 #2
0
  @Mod.EventHandler
  public void preInit(FMLPreInitializationEvent event) {
    Config.load(event);

    HarvestLevels.init();

    NetworkRegistry.INSTANCE.registerGuiHandler(instance, guiHandler);

    if (event.getSide().isClient()) {
      ClientProxy.initClient();
    }

    TinkerNetwork.instance.setup();
    CapabilityTinkerProjectile.register();
  }