示例#1
0
文件: Hats.java 项目: BoxCat/Hats
  @Mod.EventHandler
  public void load(FMLInitializationEvent event) {
    proxy.initMod();
    proxy.initTickHandlers();

    proxy.initRenderersAndTextures();

    EventHandler eventHandler = new EventHandler();

    FMLCommonHandler.instance().bus().register(eventHandler);
    MinecraftForge.EVENT_BUS.register(eventHandler);
  }
示例#2
0
文件: Hats.java 项目: BoxCat/Hats
  @Mod.EventHandler
  public void serverStarting(FMLServerAboutToStartEvent event) {
    Hats.config.resetSession();
    Hats.config.updateSession("serverHasMod", 1);
    Hats.config.updateSession("currentKing", "");

    //		SessionState.serverHasMod = true;
    //		SessionState.serverHatMode = playerHatsMode;
    //		SessionState.serverHat = lockedHat;

    proxy.initCommands(event.getServer());
  }