コード例 #1
0
ファイル: mod_Aether.java プロジェクト: opssemnik/AetherSMP
 public mod_Aether() {
   cloudPara = false;
   rand = new Random();
   zLevel = -90F;
   // key_loreGain = new KeyBinding("key.loreGain", 48);
   dim = new DimensionAether();
   BiomeGenAether biomegenaether = new BiomeGenAether();
   try {
     ModLoader.setPrivateValue(
         net.minecraft.src.BiomeGenBase.class, biomegenaether, "w", Boolean.valueOf(false));
   } catch (Exception exception) {
     System.out.println("Forgot to update reflection. Trying MCP name for disabling rain.");
     try {
       ModLoader.setPrivateValue(
           net.minecraft.src.BiomeGenBase.class,
           biomegenaether,
           "enableRain",
           Boolean.valueOf(false));
     } catch (Exception exception1) {
     }
   }
   new AetherBlocks();
   new AetherItems();
   new AetherMobs();
   new AetherPoison();
   new AetherAchievements();
   new AetherRecipes();
   // ModLoader.RegisterKey(this, key_loreGain, false);
   ModLoader.SetInGameHook(this, true, false);
   //    SAPI.interceptAdd(this);
   PlayerAPI.RegisterPlayerBase(net.minecraft.src.PlayerBaseAether.class);
 }