SHARE
TWEET

mod_mocreatures

bera Feb 28th, 2012 208 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 28/02/2012 23:53:43
  2. // Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!
  3. // Decompiler options: packimports(3)
  4. // Source File Name:   mod_mocreatures.java
  5.  
  6. import de.matthiasmann.twl.Button;
  7. import de.matthiasmann.twl.Widget;
  8. import de.matthiasmann.twl.model.SimpleButtonModel;
  9. import java.io.PrintStream;
  10. import java.util.HashMap;
  11. import java.util.Map;
  12. import net.minecraft.client.Minecraft;
  13. import org.lwjgl.opengl.GL11;
  14.  
  15. public class mod_mocreatures extends BaseMod
  16. {
  17.  
  18.     public mod_mocreatures()
  19.     {
  20.         ModLoader.SetInGameHook(this, true, false);
  21.         ModLoader.SetInGUIHook(this, true, false);
  22.         inst = this;
  23.         mocEntities = new HashMap();
  24.         myCustomSpawner = new CustomSpawner();
  25.         modName = "DrZhark's Mo'Creatures";
  26.         AddNames();
  27.         RegisterEntities();
  28.         AddRecipes();
  29.         AddAchievements();
  30.         GUIApiInit();
  31.         updateSettings();
  32.     }
  33.  
  34.     public String getVersion()
  35.     {
  36.         return "v3.2.2 (MC 1.1)";
  37.     }
  38.  
  39.     public void load()
  40.     {
  41.     }
  42.  
  43.     public boolean OnTickInGame(float f, Minecraft minecraft)
  44.     {
  45.         if(mc.f.C.f() % 200L == 0L)
  46.         {
  47.             int numSpawns = myCustomSpawner.doCustomSpawning(mc.f, mc.A.C > 0, mc.f.l());
  48.             System.out.println((new StringBuilder()).append("Mo'Creatures Spawned ").append(numSpawns).append(" Mo'Creatures").toString());
  49.             if(((Boolean)despawnVanilla.get()).booleanValue())
  50.             {
  51.                 int numDespawns = myCustomSpawner.despawnMob(mc.f);
  52.                 System.out.println((new StringBuilder()).append("Mo'Creatures DeSpawned ").append(numDespawns).append(" Vanilla Creatures").toString());
  53.             }
  54.         }
  55.         if(inMenu)
  56.         {
  57.             if(lastTickRun > 10L)
  58.             {
  59.                 updateSettings();
  60.                 inMenu = false;
  61.             }
  62.             lastTickRun++;
  63.         }
  64.         xb entityPlayer = minecraft.h;
  65.         if(poisoned)
  66.         {
  67.             poisoncounter++;
  68.             if(!entityPlayer.a(yg.u) || entityPlayer.G)
  69.             {
  70.                 poisoncounter = 0;
  71.                 poisoned = false;
  72.             }
  73.             renderHaze(0.2F, "/mocreatures/maskgreen.png");
  74.             MoCTools.disorientEntity(entityPlayer);
  75.             if(poisoncounter % 20 == 0)
  76.                 mc.f.a("slime", entityPlayer.o, entityPlayer.p + 0.5D, entityPlayer.q, 0.0D, 0.5D, 0.0D);
  77.         }
  78.         if(freezed)
  79.         {
  80.             freezedcounter++;
  81.             if(freezedcounter > 200 || entityPlayer.G)
  82.             {
  83.                 freezedcounter = 0;
  84.                 freezed = false;
  85.             }
  86.             renderHaze(0.2F, "/mocreatures/maskblue.png");
  87.             MoCTools.slowEntity(entityPlayer);
  88.             if(freezedcounter % 20 == 0)
  89.             {
  90.                 mc.f.a("bubble", entityPlayer.o, entityPlayer.p + 0.5D, entityPlayer.q, 0.0D, 0.5D, 0.0D);
  91.                 entityPlayer.a(ll.m, 1);
  92.             }
  93.         }
  94.         if(burned)
  95.         {
  96.             if(entityPlayer.G || !entityPlayer.V())
  97.                 burned = false;
  98.             renderHaze(0.2F, "/mocreatures/maskred.png");
  99.         }
  100.         return true;
  101.     }
  102.  
  103.     public static void updateSettings()
  104.     {
  105.         myCustomSpawner.setMaxMobs(Integer.valueOf(((Integer)maxMobsS.get()).intValue()).intValue());
  106.         myCustomSpawner.setMaxAnimals(Integer.valueOf(((Integer)maxAnimalsS.get()).intValue()).intValue());
  107.         myCustomSpawner.setMaxAquatic(Integer.valueOf(((Integer)maxWaterMobsS.get()).intValue()).intValue());
  108.         myCustomSpawner.clearLists();
  109.         PopulatemyCustomSpawner();
  110.         if(((Boolean)isOldWorld.get()).booleanValue())
  111.             PopulatemyCustomSpawnerOldWorlds();
  112.         if(((Boolean)modifyVanillaSpawns.get()).booleanValue())
  113.         {
  114.             ClearVanillaSpawnLists();
  115.             ClearVanillaMobSpawns();
  116.             PopulateVanillaSpawnLists();
  117.         }
  118.         System.out.println("Mo'Creatures is updating settings");
  119.     }
  120.  
  121.     public boolean OnTickInGUI(float f, Minecraft game, ug gui)
  122.     {
  123.         if(mc.h != null && (gui instanceof kk))
  124.         {
  125.             inMenu = true;
  126.             lastTickRun = 0L;
  127.         }
  128.         return true;
  129.     }
  130.  
  131.     public static void PopulatemyCustomSpawnerOldWorlds()
  132.     {
  133.         if(((Integer)horsefreq.get()).intValue() > 0)
  134.             myCustomSpawner.AddCustomSpawn(MoCEntityHorse, ((Integer)horsefreq.get()).intValue(), aah.b, new zp[] {
  135.                 zp.b
  136.             });
  137.         if(((Integer)boarfreq.get()).intValue() > 0)
  138.             myCustomSpawner.AddCustomSpawn(MoCEntityBoar, ((Integer)boarfreq.get()).intValue(), aah.b, new zp[] {
  139.                 zp.b
  140.             });
  141.         if(((Integer)bearfreq.get()).intValue() > 0)
  142.             myCustomSpawner.AddCustomSpawn(MoCEntityBear, ((Integer)bearfreq.get()).intValue(), aah.b, new zp[] {
  143.                 zp.b
  144.             });
  145.         if(((Integer)duckfreq.get()).intValue() > 0)
  146.             myCustomSpawner.AddCustomSpawn(MoCEntityDuck, ((Integer)duckfreq.get()).intValue(), aah.b, new zp[] {
  147.                 zp.b
  148.             });
  149.         if(((Integer)lionfreq.get()).intValue() > 0)
  150.             myCustomSpawner.AddCustomSpawn(MoCEntityBigCat, ((Integer)lionfreq.get()).intValue(), aah.b, new zp[] {
  151.                 zp.b
  152.             });
  153.         if(((Integer)pbearfreq.get()).intValue() > 0)
  154.             myCustomSpawner.AddCustomSpawn(MoCEntityPolarBear, ((Integer)pbearfreq.get()).intValue(), aah.b, new zp[] {
  155.                 zp.b
  156.             });
  157.         if(((Integer)bunnyfreq.get()).intValue() > 0)
  158.             myCustomSpawner.AddCustomSpawn(MoCEntityBunny, ((Integer)bunnyfreq.get()).intValue(), aah.b, new zp[] {
  159.                 zp.b
  160.             });
  161.         if(((Integer)birdfreq.get()).intValue() > 0)
  162.             myCustomSpawner.AddCustomSpawn(MoCEntityBird, ((Integer)birdfreq.get()).intValue(), aah.b, new zp[] {
  163.                 zp.b
  164.             });
  165.         if(((Integer)deerfreq.get()).intValue() > 0)
  166.             myCustomSpawner.AddCustomSpawn(MoCEntityDeer, ((Integer)deerfreq.get()).intValue(), aah.b, new zp[] {
  167.                 zp.b
  168.             });
  169.         if(((Integer)foxfreq.get()).intValue() > 0)
  170.             myCustomSpawner.AddCustomSpawn(MoCEntityFox, ((Integer)foxfreq.get()).intValue(), aah.b, new zp[] {
  171.                 zp.b
  172.             });
  173.         if(((Integer)kittyfreq.get()).intValue() > 0)
  174.             myCustomSpawner.AddCustomSpawn(MoCEntityKitty, ((Integer)kittyfreq.get()).intValue(), aah.b, new zp[] {
  175.                 zp.b
  176.             });
  177.         if(((Integer)micefreq.get()).intValue() > 0)
  178.             myCustomSpawner.AddCustomSpawn(MoCEntityMouse, ((Integer)micefreq.get()).intValue(), aah.b, new zp[] {
  179.                 zp.b
  180.             });
  181.         if(((Integer)turtlefreq.get()).intValue() > 0)
  182.             myCustomSpawner.AddCustomSpawn(MoCEntityTurtle, ((Integer)turtlefreq.get()).intValue(), aah.b, new zp[] {
  183.                 zp.b
  184.             });
  185.         if(((Integer)crocfreq.get()).intValue() > 0)
  186.             myCustomSpawner.AddCustomSpawn(MoCEntityCrocodile, ((Integer)crocfreq.get()).intValue(), aah.b, new zp[] {
  187.                 zp.b
  188.             });
  189.         if(((Integer)goatfreq.get()).intValue() > 0)
  190.             myCustomSpawner.AddCustomSpawn(MoCEntityGoat, ((Integer)goatfreq.get()).intValue(), aah.b, new zp[] {
  191.                 zp.b
  192.             });
  193.     }
  194.  
  195.     public static void PopulatemyCustomSpawner()
  196.     {
  197.         if(((Integer)horsefreq.get()).intValue() > 0)
  198.             myCustomSpawner.AddCustomSpawn(MoCEntityHorse, ((Integer)horsefreq.get()).intValue(), aah.b, new zp[] {
  199.                 zp.f, zp.c, zp.g, zp.greenHills, zp.meadow, zp.shrubland
  200.             });
  201.         if(((Integer)ogrefreq.get()).intValue() > 0)
  202.             myCustomSpawner.AddCustomSpawn(MoCEntityOgre, ((Integer)ogrefreq.get()).intValue(), aah.a);
  203.         if(((Integer)fogrefreq.get()).intValue() > 0)
  204.         {
  205.             myCustomSpawner.AddCustomSpawn(MoCEntityFireOgre, ((Integer)fogrefreq.get()).intValue(), aah.a, new zp[] {
  206.                 zp.j
  207.             });
  208.             myCustomSpawner.AddCustomSpawn(MoCEntityFireOgre, ((Integer)fogrefreq.get()).intValue(), aah.a);
  209.         }
  210.         if(((Integer)cogrefreq.get()).intValue() > 0)
  211.             myCustomSpawner.AddCustomSpawn(MoCEntityCaveOgre, ((Integer)cogrefreq.get()).intValue(), aah.a, new zp[] {
  212.                 zp.f, zp.c, zp.g
  213.             });
  214.         if(((Integer)boarfreq.get()).intValue() > 0)
  215.             myCustomSpawner.AddCustomSpawn(MoCEntityBoar, ((Integer)boarfreq.get()).intValue(), aah.b, new zp[] {
  216.                 zp.f, zp.c, zp.g, zp.woodlands, zp.rainForest, zp.autumnWoods, zp.birchFores, zp.forestedIsland, zp.forestedHills
  217.             });
  218.         if(((Integer)bearfreq.get()).intValue() > 0)
  219.             myCustomSpawner.AddCustomSpawn(MoCEntityBear, ((Integer)bearfreq.get()).intValue(), aah.b, new zp[] {
  220.                 zp.f, zp.c, zp.g, zp.woodlands, zp.rainForest, zp.autumnWoods, zp.birchFores, zp.forestedIsland, zp.forestedHills, zp.taigaMountain, zp.snowForest, zp.temperateRainforestSnow, zp.temperateRainforest
  221.             });
  222.         if(((Integer)duckfreq.get()).intValue() > 0)
  223.             myCustomSpawner.AddCustomSpawn(MoCEntityDuck, ((Integer)duckfreq.get()).intValue(), aah.b, new zp[] {
  224.                 zp.f, zp.e, zp.c, zp.h, zp.g, zp.woodlands, zp.rainForest, zp.autumnWoods, zp.birchFores, zp.forestedIsland, zp.forestedHills, zp.r
  225.             });
  226.         if(((Integer)lionfreq.get()).intValue() > 0)
  227.             myCustomSpawner.AddCustomSpawn(MoCEntityBigCat, ((Integer)lionfreq.get()).intValue(), aah.b, new zp[] {
  228.                 zp.f, zp.e, zp.c, zp.g, zp.o, zp.n,zp.greenHills, zp.meadow, zp.shrubland, zp.savanna, zp.miniJungle, zp.greenSwamp, zp.h, zp.i
  229.             });
  230.         if(((Integer)wwolffreq.get()).intValue() > 0)
  231.             myCustomSpawner.AddCustomSpawn(MoCEntityWWolf, ((Integer)wwolffreq.get()).intValue(), aah.a, new zp[] {
  232.                 zp.o, zp.n, zp.taigaMountain, zp.snowForest, zp.temperateRainforestSnow, zp.temperateRainforest, zp.alps
  233.             });
  234.         if(((Integer)pbearfreq.get()).intValue() > 0)
  235.             myCustomSpawner.AddCustomSpawn(MoCEntityPolarBear, ((Integer)pbearfreq.get()).intValue(), aah.b, new zp[] {
  236.                 zp.o, zp.n, zp.glacier
  237.             });
  238.         if(((Integer)wraithfreq.get()).intValue() > 0)
  239.             myCustomSpawner.AddCustomSpawn(MoCEntityWraith, ((Integer)wraithfreq.get()).intValue(), aah.a);
  240.         if(((Integer)fwraithfreq.get()).intValue() > 0)
  241.         {
  242.             myCustomSpawner.AddCustomSpawn(MoCEntityFlameWraith, ((Integer)fwraithfreq.get()).intValue(), aah.a, new zp[] {
  243.                 zp.j
  244.             });
  245.             myCustomSpawner.AddCustomSpawn(MoCEntityFlameWraith, ((Integer)fwraithfreq.get()).intValue(), aah.a);
  246.         }
  247.         if(((Integer)hellratfreq.get()).intValue() > 0)
  248.             myCustomSpawner.AddCustomSpawn(MoCEntityHellRat, ((Integer)hellratfreq.get()).intValue(), aah.a, new zp[] {
  249.                 zp.j
  250.             });
  251.         if(((Integer)bunnyfreq.get()).intValue() > 0)
  252.             myCustomSpawner.AddCustomSpawn(MoCEntityBunny, ((Integer)bunnyfreq.get()).intValue(), aah.b, new zp[] {
  253.                 zp.f, zp.e, zp.c, zp.g, zp.woodlands, zp.rainForest, zp.autumnWoods, zp.birchFores, zp.forestedIsland, zp.forestedHills
  254.             });
  255.         if(((Integer)birdfreq.get()).intValue() > 0)
  256.             myCustomSpawner.AddCustomSpawn(MoCEntityBird, ((Integer)birdfreq.get()).intValue(), aah.b, new zp[] {
  257.                 zp.f, zp.e, zp.c, zp.g, zp.woodlands, zp.rainForest, zp.autumnWoods, zp.birchFores, zp.forestedIsland, zp.forestedHills
  258.             });
  259.         if(((Integer)deerfreq.get()).intValue() > 0)
  260.             myCustomSpawner.AddCustomSpawn(MoCEntityDeer, ((Integer)deerfreq.get()).intValue(), aah.b, new zp[] {
  261.                 zp.f, zp.c, zp.g, zp.taigaMountain, zp.snowForest, zp.temperateRainforestSnow, zp.temperateRainforest, zp.alps
  262.             });
  263.         if(((Integer)foxfreq.get()).intValue() > 0)
  264.             myCustomSpawner.AddCustomSpawn(MoCEntityFox, ((Integer)foxfreq.get()).intValue(), aah.b, new zp[] {
  265.                 zp.f, zp.e, zp.c, zp.g, zp.taigaMountain, zp.snowForest, zp.temperateRainforestSnow, zp.temperateRainforest, zp.alps
  266.             });
  267.         if(((Integer)kittyfreq.get()).intValue() > 0)
  268.             myCustomSpawner.AddCustomSpawn(MoCEntityKitty, ((Integer)kittyfreq.get()).intValue(), aah.b, new zp[] {
  269.                 zp.f, zp.e, zp.c, zp.g, zp.woodlands, zp.rainForest, zp.autumnWoods, zp.birchFores, zp.forestedIsland, zp.forestedHills
  270.             });
  271.         if(((Integer)micefreq.get()).intValue() > 0)
  272.             myCustomSpawner.AddCustomSpawn(MoCEntityMouse, ((Integer)micefreq.get()).intValue(), aah.b, new zp[] {
  273.                 zp.f, zp.e, zp.c, zp.g, zp.greenHills, zp.meadow, zp.shrubland
  274.             });
  275.         if(((Integer)turtlefreq.get()).intValue() > 0)
  276.             myCustomSpawner.AddCustomSpawn(MoCEntityTurtle, ((Integer)turtlefreq.get()).intValue(), aah.b, new zp[] {
  277.                 zp.h, zp.i, zp.miniJungle, zp.greenSwamp, zp.h, zp.i, zp.r
  278.             });
  279.         if(((Integer)crocfreq.get()).intValue() > 0)
  280.             myCustomSpawner.AddCustomSpawn(MoCEntityCrocodile, ((Integer)crocfreq.get()).intValue(), aah.b, new zp[] {
  281.                 zp.h, zp.savanna,zp.miniJungle, zp.greenSwamp, zp.h, zp.i
  282.             });
  283.         if(((Integer)werewolffreq.get()).intValue() > 0)
  284.             myCustomSpawner.AddCustomSpawn(MoCEntityWerewolf, ((Integer)werewolffreq.get()).intValue(), aah.a);
  285.         if(((Integer)ratfreq.get()).intValue() > 0)
  286.             myCustomSpawner.AddCustomSpawn(MoCEntityRat, ((Integer)ratfreq.get()).intValue(), aah.a, new zp[] {
  287.                 zp.j
  288.             });
  289.         if(((Integer)scorpionfreq.get()).intValue() > 0)
  290.             myCustomSpawner.AddCustomSpawn(MoCEntityScorpion, ((Integer)scorpionfreq.get()).intValue(), aah.a, new zp[] {
  291.                 zp.j, zp.desertMountain, zp.mountainRidge, zp.wasteland
  292.             });
  293.         if(((Integer)sharkfreq.get()).intValue() > 0)
  294.             myCustomSpawner.AddCustomSpawn(MoCEntityShark, ((Integer)sharkfreq.get()).intValue(), aah.c, new zp[] {
  295.                 zp.b
  296.             });
  297.         if(((Integer)dolphinfreq.get()).intValue() > 0)
  298.             myCustomSpawner.AddCustomSpawn(MoCEntityDolphin, ((Integer)dolphinfreq.get()).intValue(), aah.c, new zp[] {
  299.                 zp.b
  300.             });
  301.         if(((Integer)fishfreq.get()).intValue() > 0)
  302.             myCustomSpawner.AddCustomSpawn(MoCEntityFishy, ((Integer)fishfreq.get()).intValue(), aah.c, new zp[] {
  303.                 zp.b, zp.i, zp.h
  304.             });
  305.         if(((Integer)rayfreq.get()).intValue() > 0)
  306.             myCustomSpawner.AddCustomSpawn(MoCEntityRay, ((Integer)rayfreq.get()).intValue(), aah.c, new zp[] {
  307.                 zp.b, zp.i, zp.h, zp.f, zp.g
  308.             });
  309.         if(((Integer)jellyfishfreq.get()).intValue() > 0)
  310.             myCustomSpawner.AddCustomSpawn(MoCEntityJellyFish, ((Integer)jellyfishfreq.get()).intValue(), aah.c, new zp[] {
  311.                 zp.b, zp.h, zp.f, zp.g
  312.             });
  313.         if(((Integer)goatfreq.get()).intValue() > 0)
  314.             myCustomSpawner.AddCustomSpawn(MoCEntityGoat, ((Integer)goatfreq.get()).intValue(), aah.b, new zp[] {
  315.                 zp.f, zp.e, zp.c, zp.alps, zp.autumnWoods, zp.forestedIsland, zp.forestedHills
  316.             });
  317.     }
  318.  
  319.     private void RegisterEntities()
  320.     {
  321.         ModLoader.RegisterEntityID(MoCEntityHorse, "Horse", ModLoader.getUniqueEntityId());
  322.         ModLoader.RegisterEntityID(MoCEntityOgre, "Ogre", ModLoader.getUniqueEntityId());
  323.         ModLoader.RegisterEntityID(MoCEntityFireOgre, "FireOgre", ModLoader.getUniqueEntityId());
  324.         ModLoader.RegisterEntityID(MoCEntityCaveOgre, "CaveOgre", ModLoader.getUniqueEntityId());
  325.         ModLoader.RegisterEntityID(MoCEntityBoar, "Boar", ModLoader.getUniqueEntityId());
  326.         ModLoader.RegisterEntityID(MoCEntityBear, "Bear", ModLoader.getUniqueEntityId());
  327.         ModLoader.RegisterEntityID(MoCEntityDuck, "Duck", ModLoader.getUniqueEntityId());
  328.         ModLoader.RegisterEntityID(MoCEntityBigCat, "BigCat", ModLoader.getUniqueEntityId());
  329.         ModLoader.RegisterEntityID(MoCEntityDeer, "Deer", ModLoader.getUniqueEntityId());
  330.         ModLoader.RegisterEntityID(MoCEntityWWolf, "WildWolf", ModLoader.getUniqueEntityId());
  331.         ModLoader.RegisterEntityID(MoCEntityPolarBear, "PolarBear", ModLoader.getUniqueEntityId());
  332.         ModLoader.RegisterEntityID(MoCEntityWraith, "Wraith", ModLoader.getUniqueEntityId());
  333.         ModLoader.RegisterEntityID(MoCEntityFlameWraith, "FlameWraith", ModLoader.getUniqueEntityId());
  334.         ModLoader.RegisterEntityID(MoCEntityBunny, "Bunny", ModLoader.getUniqueEntityId());
  335.         ModLoader.RegisterEntityID(MoCEntityBird, "Bird", ModLoader.getUniqueEntityId());
  336.         ModLoader.RegisterEntityID(MoCEntityFox, "Fox", ModLoader.getUniqueEntityId());
  337.         ModLoader.RegisterEntityID(MoCEntityWerewolf, "Werewolf", ModLoader.getUniqueEntityId());
  338.         ModLoader.RegisterEntityID(MoCEntityShark, "Shark", ModLoader.getUniqueEntityId());
  339.         ModLoader.RegisterEntityID(MoCEntitySharkEgg, "SharkEgg", ModLoader.getUniqueEntityId());
  340.         ModLoader.RegisterEntityID(MoCEntityDolphin, "Dolphin", ModLoader.getUniqueEntityId());
  341.         ModLoader.RegisterEntityID(MoCEntityFishyEgg, "FishyEgg", ModLoader.getUniqueEntityId());
  342.         ModLoader.RegisterEntityID(MoCEntityFishy, "Fishy", ModLoader.getUniqueEntityId());
  343.         ModLoader.RegisterEntityID(MoCEntityKitty, "Kitty", ModLoader.getUniqueEntityId());
  344.         ModLoader.RegisterEntityID(MoCEntityKittyBed, "KittyBed", ModLoader.getUniqueEntityId());
  345.         ModLoader.RegisterEntityID(MoCEntityLitterBox, "LitterBox", ModLoader.getUniqueEntityId());
  346.         ModLoader.RegisterEntityID(MoCEntityRat, "Rat", ModLoader.getUniqueEntityId());
  347.         ModLoader.RegisterEntityID(MoCEntityMouse, "Mouse", ModLoader.getUniqueEntityId());
  348.         ModLoader.RegisterEntityID(MoCEntityHellRat, "HellRat", ModLoader.getUniqueEntityId());
  349.         ModLoader.RegisterEntityID(MoCEntityScorpion, "Scorpion", ModLoader.getUniqueEntityId());
  350.         ModLoader.RegisterEntityID(MoCEntityTurtle, "Turtle", ModLoader.getUniqueEntityId());
  351.         ModLoader.RegisterEntityID(MoCEntityCrocodile, "Crocodile", ModLoader.getUniqueEntityId());
  352.         ModLoader.RegisterEntityID(MoCEntityRay, "Ray", ModLoader.getUniqueEntityId());
  353.         ModLoader.RegisterEntityID(MoCEntityJellyFish, "JellyFish", ModLoader.getUniqueEntityId());
  354.         ModLoader.RegisterEntityID(MoCEntityGoat, "Goat", ModLoader.getUniqueEntityId());
  355.     }
  356.  
  357.     private void AddNames()
  358.     {
  359.         ModLoader.AddName(horsesaddle, "Horse Saddle");
  360.         ModLoader.AddName(sharkteeth, "Shark Teeth");
  361.         ModLoader.AddName(sharkegg, "Shark Egg");
  362.         ModLoader.AddName(haystack, "Hay Stack");
  363.         ModLoader.AddName(sugarlump, "Sugar Lump");
  364.         ModLoader.AddName(fishyegg, "Fish Egg");
  365.         ModLoader.AddName(bigcatclaw, "BigCat Claw");
  366.         ModLoader.AddName(whip, "Whip");
  367.         ModLoader.AddName(medallion, "Medallion");
  368.         ModLoader.AddName(kittybed, "Kitty Bed");
  369.         ModLoader.AddName(litterbox, "Litter Box");
  370.         ModLoader.AddName(woolball, "Wool Ball");
  371.         ModLoader.AddName(petfood, "Pet Food");
  372.         ModLoader.AddName(rope, "Rope");
  373.         ModLoader.AddName(crochide, "Croc Hide");
  374.         ModLoader.AddName(plateCroc, "Croc Plate");
  375.         ModLoader.AddName(helmetCroc, "Croc Helmet");
  376.         ModLoader.AddName(bootsCroc, "Croc Boots");
  377.         ModLoader.AddName(legsCroc, "Croc Legs");
  378.     }
  379.  
  380.     private void AddRecipes()
  381.     {
  382.         ModLoader.AddRecipe(new yq(rope, 1), new Object[] {
  383.             "# #", " # ", "# #", Character.valueOf('#'), ww.K
  384.         });
  385.         ModLoader.AddShapelessRecipe(new yq(petfood, 4), new Object[] {
  386.             new yq(ww.aU, 1), new yq(ww.aq, 1)
  387.         });
  388.         ModLoader.AddRecipe(new yq(woolball, 1), new Object[] {
  389.             " # ", "# #", " # ", Character.valueOf('#'), ww.K
  390.         });
  391.         ModLoader.AddRecipe(new yq(litterbox, 1), new Object[] {
  392.             "###", "#X#", "###", Character.valueOf('#'), oe.z, Character.valueOf('X'), oe.G
  393.         });
  394.         ModLoader.AddRecipe(new yq(medallion, 1), new Object[] {
  395.             "# #", "XZX", " X ", Character.valueOf('#'), ww.aF, Character.valueOf('Z'), ww.n, Character.valueOf('X'), ww.p
  396.         });
  397.         ModLoader.AddRecipe(new yq(medallion, 1), new Object[] {
  398.             "# #", " X ", Character.valueOf('#'), ww.aF, Character.valueOf('X'), ww.p
  399.         });
  400.         ModLoader.AddRecipe(new yq(whip, 1), new Object[] {
  401.             "#X#", "X X", "# Z", Character.valueOf('#'), bigcatclaw, Character.valueOf('X'), ww.aF, Character.valueOf('Z'), ww.o
  402.         });
  403.         ModLoader.AddRecipe(new yq(horsesaddle, 1), new Object[] {
  404.             "XXX", "X#X", "# #", Character.valueOf('#'), ww.o, Character.valueOf('X'), ww.aF
  405.         });
  406.         ModLoader.AddRecipe(new yq(haystack, 1), new Object[] {
  407.             "XXX", "XXX", Character.valueOf('X'), ww.T
  408.         });
  409.         ModLoader.AddRecipe(new yq(ww.T, 6), new Object[] {
  410.             "X", Character.valueOf('X'), haystack
  411.         });
  412.         ModLoader.AddRecipe(new yq(sugarlump, 1), new Object[] {
  413.             "XX", "##", Character.valueOf('X'), ww.aY, Character.valueOf('#'), ww.aY
  414.         });
  415.         ModLoader.AddRecipe(new yq(horsesaddle, 1), new Object[] {
  416.             "X", "#", Character.valueOf('X'), ww.aA, Character.valueOf('#'), ww.o
  417.         });
  418.         ModLoader.AddRecipe(new yq(ww.aa, 1), new Object[] {
  419.             "X X", "XXX", "XXX", Character.valueOf('X'), sharkteeth
  420.         });
  421.         ModLoader.AddRecipe(new yq(ww.Z, 1), new Object[] {
  422.             "XXX", "X X", Character.valueOf('X'), sharkteeth
  423.         });
  424.         ModLoader.AddRecipe(new yq(ww.ab, 1), new Object[] {
  425.             "XXX", "X X", "X X", Character.valueOf('X'), sharkteeth
  426.         });
  427.         ModLoader.AddRecipe(new yq(ww.ac, 1), new Object[] {
  428.             "X X", "X X", Character.valueOf('X'), sharkteeth
  429.         });
  430.         ModLoader.AddRecipe(new yq(plateCroc, 1), new Object[] {
  431.             "X X", "XXX", "XXX", Character.valueOf('X'), crochide
  432.         });
  433.         ModLoader.AddRecipe(new yq(helmetCroc, 1), new Object[] {
  434.             "XXX", "X X", Character.valueOf('X'), crochide
  435.         });
  436.         ModLoader.AddRecipe(new yq(legsCroc, 1), new Object[] {
  437.             "XXX", "X X", "X X", Character.valueOf('X'), crochide
  438.         });
  439.         ModLoader.AddRecipe(new yq(bootsCroc, 1), new Object[] {
  440.             "X X", "X X", Character.valueOf('X'), crochide
  441.         });
  442.         for(int i = 0; i < 16; i++)
  443.         {
  444.             ModLoader.AddShapelessRecipe(new yq(kittybed, 1, i), new Object[] {
  445.                 new yq(ww.aW, 1, i), new yq(kittybed, 1)
  446.             });
  447.             ModLoader.AddRecipe(new yq(kittybed, 1, i), new Object[] {
  448.                 "###", "#X#", "Z  ", Character.valueOf('#'), oe.z, Character.valueOf('X'), new yq(ww.e[oe.ad.bO], 1, MoCTools.colorize(i)), Character.valueOf('Z'), ww.o
  449.             });
  450.             String s = gz.a[i];
  451.             s = (new StringBuilder()).append(s.substring(0, 1).toUpperCase()).append(s.substring(1)).toString();
  452.             ModLoader.AddName(new yq(kittybed, 1, i), (new StringBuilder()).append(s).append(" Kitty Bed").toString());
  453.         }
  454.  
  455.     }
  456.  
  457.     private void AddAchievements()
  458.     {
  459.         ModLoader.AddAchievementDesc(Indiana, "Indiana, Master of the BigCats", "Using a whip, command at least 7 tamed BigCats at once");
  460.         ModLoader.AddAchievementDesc(BunnyKilla, "Da Bunny Killa", "using the bunny-kill-o-matic, euthanize at least 69 promiscuous bunnies at once");
  461.     }
  462.  
  463.     public void AddRenderer(Map map)
  464.     {
  465.         map.put(MoCEntityHorse, new MoCRenderHorse(new MoCModelHorse2(), new MoCModelHorse1()));
  466.         map.put(MoCEntityFireOgre, new MoCRenderFireOgre(new MoCModelOgre2(), new MoCModelOgre1(), 1.5F));
  467.         map.put(MoCEntityCaveOgre, new MoCRenderCaveOgre(new MoCModelOgre2(), new MoCModelOgre1(), 1.5F));
  468.         map.put(MoCEntityOgre, new MoCRenderOgre(new MoCModelOgre2(), new MoCModelOgre1(), 1.5F));
  469.         map.put(MoCEntityBoar, new ij(new dg(), new dg(0.5F), 0.7F));
  470.         map.put(MoCEntityBear, new MoCRenderBear(new MoCModelBear2(), new MoCModelBear1(), 0.7F));
  471.         map.put(MoCEntityDuck, new gd(new afm(), 0.3F));
  472.         map.put(MoCEntityBigCat, new MoCRenderBigCat(new MoCModelBigCat2(), new MoCModelBigCat1(), 0.7F));
  473.         map.put(MoCEntityDeer, new MoCRenderDeer(new MoCModelDeer(), 0.5F));
  474.         map.put(MoCEntityWWolf, new MoCRenderWWolf(new MoCModelWolf2(), new MoCModelWolf1(), 0.7F));
  475.         map.put(MoCEntityPolarBear, new MoCRenderPolarBear(new MoCModelBear2(), new MoCModelBear1(), 0.7F));
  476.         map.put(MoCEntityWraith, new MoCRenderWraith(new MoCModelWraith(), 0.5F));
  477.         map.put(MoCEntityFlameWraith, new MoCRenderWraith(new MoCModelWraith(), 0.5F));
  478.         map.put(MoCEntityBunny, new MoCRenderBunny(new MoCModelBunny(), 0.3F));
  479.         map.put(MoCEntityBird, new MoCRenderBird(new MoCModelBird(), 0.3F));
  480.         map.put(MoCEntityFox, new MoCRenderFox(new MoCModelFox()));
  481.         map.put(MoCEntityWerewolf, new MoCRenderWerewolf(new MoCModelWereHuman(), new MoCModelWerewolf(), 0.7F));
  482.         map.put(MoCEntityShark, new MoCRenderShark(new MoCModelShark(), 0.6F));
  483.         map.put(MoCEntitySharkEgg, new MoCRenderSharkEgg(new MoCModelSharkEgg(), 0.1F));
  484.         map.put(MoCEntityDolphin, new MoCRenderDolphin(new MoCModelDolphin(), 0.6F));
  485.         map.put(MoCEntityFishy, new MoCRenderFishy(new MoCModelFishy(), 0.2F));
  486.         map.put(MoCEntityFishyEgg, new MoCRenderFishyEgg(new MoCModelSharkEgg(), 0.1F));
  487.         map.put(MoCEntityKitty, new MoCRenderKitty(new MoCModelKitty(0.0F, 15F), 0.4F));
  488.         map.put(MoCEntityKittyBed, new MoCRenderKittyBed(new MoCModelKittyBed(), new MoCModelKittyBed2(), 0.3F));
  489.         map.put(MoCEntityLitterBox, new MoCRenderLitterBox(new MoCModelLitterBox(), 0.3F));
  490.         map.put(MoCEntityRat, new MoCRenderRat(new MoCModelRat(), 0.2F));
  491.         map.put(MoCEntityMouse, new MoCRenderMouse(new MoCModelMouse(), 0.1F));
  492.         map.put(MoCEntityHellRat, new MoCRenderHellRat(new MoCModelRat(), 0.4F));
  493.         map.put(MoCEntityScorpion, new MoCRenderScorpion(new MoCModelScorpion(), 0.6F));
  494.         map.put(MoCEntityTurtle, new MoCRenderTurtle(new MoCModelTurtle(), 0.4F));
  495.         map.put(MoCEntityCrocodile, new MoCRenderCrocodile(new MoCModelCrocodile(), 0.5F));
  496.         map.put(MoCEntityRay, new MoCRenderRay(new MoCModelRay(), 0.4F));
  497.         map.put(MoCEntityJellyFish, new MoCRenderJellyFish(new MoCModelJellyFish(), 0.1F));
  498.         map.put(MoCEntityGoat, new MoCRenderGoat(new MoCModelGoat(), 0.3F));
  499.     }
  500.  
  501.     private void GUIApiInit()
  502.     {
  503.         MoCSettings = new ModSettings("mocreatures");
  504.         MoCScreen = new ModSettingScreen("DrZhark's Mo'Creatures");
  505.         SimpleButtonModel simplebuttonmodel = new SimpleButtonModel();
  506.         simplebuttonmodel.addActionCallback(new ModAction(this, "spawnlimits", new Class[0]));
  507.         Button button = new Button(simplebuttonmodel);
  508.         button.setText("Spawn Limits");
  509.         MoCScreen.append(button);
  510.         MoCSettings.append(maxMobsS = new SettingInt("MobsSpawnLimit", 60, 1, 1, 1000));
  511.         maxMobsW = new WidgetInt(maxMobsS, "Hostiles");
  512.         MoCSettings.append(maxAnimalsS = new SettingInt("AnimalsSpawnLimit", 50, 1, 1, 1000));
  513.         maxAnimalsW = new WidgetInt(maxAnimalsS, "Animals");
  514.         MoCSettings.append(maxWaterMobsS = new SettingInt("WaterMobSpawnLimit", 25, 1, 1, 1000));
  515.         maxWaterMobsW = new WidgetInt(maxWaterMobsS, "Water Mobs");
  516.         SimpleButtonModel simplebuttonmodel1 = new SimpleButtonModel();
  517.         simplebuttonmodel1.addActionCallback(new ModAction(this, "animalsettings", new Class[0]));
  518.         Button button1 = new Button(simplebuttonmodel1);
  519.         button1.setText("Animals");
  520.         MoCScreen.append(button1);
  521.         MoCSettings.append(horsefreq = new SettingInt("FreqHorse", 6, 0, 1, 10));
  522.         horsefreqW = new WidgetInt(horsefreq, "Horse Freq");
  523.         MoCSettings.append(easybreeding = new SettingBoolean("EasyHorseBreeding", Boolean.valueOf(false)));
  524.         easybreedingW = new WidgetBoolean(easybreeding, "Easy Horse Breed", "Yes", "No");
  525.         MoCSettings.append(pegasusChanceS = new SettingInt("PegasusSpawningP", 1, 1, 1, 3));
  526.         pegasusChanceW = new WidgetInt(pegasusChanceS, "Pegasus chance");
  527.         MoCSettings.append(birdfreq = new SettingInt("FreqBird", 5, 0, 1, 10));
  528.         birdfreqW = new WidgetInt(birdfreq, "Bird Freq");
  529.         MoCSettings.append(bunnyfreq = new SettingInt("FreqBunny", 6, 0, 1, 10));
  530.         bunnyfreqW = new WidgetInt(bunnyfreq, "Bunny Freq");
  531.         MoCSettings.append(duckfreq = new SettingInt("FreqDuck", 6, 0, 1, 10));
  532.         duckfreqW = new WidgetInt(duckfreq, "Duck Freq");
  533.         MoCSettings.append(deerfreq = new SettingInt("FreqDeer", 6, 0, 1, 10));
  534.         deerfreqW = new WidgetInt(deerfreq, "Deer Freq");
  535.         MoCSettings.append(kittyfreq = new SettingInt("FreqKitty", 4, 0, 1, 10));
  536.         kittyfreqW = new WidgetInt(kittyfreq, "Kitty Freq");
  537.         MoCSettings.append(micefreq = new SettingInt("FreqMice", 7, 0, 1, 10));
  538.         micefreqW = new WidgetInt(micefreq, "Mice Freq");
  539.         MoCSettings.append(turtlefreq = new SettingInt("FreqTurtle", 6, 0, 1, 10));
  540.         turtlefreqW = new WidgetInt(turtlefreq, "Turtle Freq");
  541.         MoCSettings.append(goatfreq = new SettingInt("FreqGoat", 5, 0, 1, 10));
  542.         goatfreqW = new WidgetInt(goatfreq, "Goat Freq");
  543.         SimpleButtonModel simplebuttonmodel2 = new SimpleButtonModel();
  544.         simplebuttonmodel2.addActionCallback(new ModAction(this, "huntersettings", new Class[0]));
  545.         Button button2 = new Button(simplebuttonmodel2);
  546.         button2.setText("Hunter Creatures");
  547.         MoCScreen.append(button2);
  548.         MoCSettings.append(attackhorses = new SettingBoolean("HuntersAttackHorses", Boolean.valueOf(false)));
  549.         attackhorsesW = new WidgetBoolean(attackhorses, "Target horses?", "Yes", "No");
  550.         MoCSettings.append(attackwolves = new SettingBoolean("HuntersAttackWolves", Boolean.valueOf(false)));
  551.         attackwolvesW = new WidgetBoolean(attackwolves, "Target dogs?", "Yes", "No");
  552.         MoCSettings.append(destroyitems = new SettingBoolean("HuntersDestroyDrops", Boolean.valueOf(true)));
  553.         destroyitemsW = new WidgetBoolean(destroyitems, "Destroy drops?", "Yes", "No");
  554.         MoCSettings.append(lionfreq = new SettingInt("FreqLion", 3, 0, 1, 10));
  555.         lionfreqW = new WidgetInt(lionfreq, "BigCat Freq");
  556.         MoCSettings.append(bearfreq = new SettingInt("FreqBear", 4, 0, 1, 10));
  557.         bearfreqW = new WidgetInt(bearfreq, "Bear Freq");
  558.         MoCSettings.append(pbearfreq = new SettingInt("FreqPBear", 3, 0, 1, 10));
  559.         pbearfreqW = new WidgetInt(pbearfreq, "PBear Freq");
  560.         MoCSettings.append(boarfreq = new SettingInt("FreqBoar", 4, 0, 1, 10));
  561.         boarfreqW = new WidgetInt(boarfreq, "Boar Freq");
  562.         MoCSettings.append(foxfreq = new SettingInt("FreqFox", 4, 0, 1, 10));
  563.         foxfreqW = new WidgetInt(foxfreq, "Fox Freq");
  564.         MoCSettings.append(crocfreq = new SettingInt("CrocFreq", 8, 0, 1, 10));
  565.         crocfreqW = new WidgetInt(crocfreq, "Crocodile Freq");
  566.         SimpleButtonModel simplebuttonmodel3 = new SimpleButtonModel();
  567.         simplebuttonmodel3.addActionCallback(new ModAction(this, "mobsettings", new Class[0]));
  568.         Button button3 = new Button(simplebuttonmodel3);
  569.         button3.setText("Hostile Mobs");
  570.         MoCScreen.append(button3);
  571.         MoCSettings.append(ogrefreq = new SettingInt("FreqOgre", 6, 0, 1, 10));
  572.         ogrefreqW = new WidgetInt(ogrefreq, "Ogre Freq");
  573.         MoCSettings.append(ogreSpawnDifficulty = new SettingMulti("ogreSpawnDifficulty", 1, new String[] {
  574.             "Easy", "Normal", "Hard"
  575.         }));
  576.         ogreSpawnDifficultyW = new WidgetMulti(ogreSpawnDifficulty, "Spawn Ogres in");
  577.         MoCSettings.append(ogreStrength = new SettingFloat("OgreStrength", 2.5F, 0.1F, 0.1F, 5F));
  578.         ogreStrengthW = new WidgetFloat(ogreStrength, "Ogre Strength");
  579.         MoCSettings.append(fogrefreq = new SettingInt("FreqFOgre", 2, 0, 1, 10));
  580.         fogrefreqW = new WidgetInt(fogrefreq, "F.Ogre Freq");
  581.         MoCSettings.append(fogreSpawnDifficulty = new SettingMulti("FireOgreSpawnDifficulty", 2, new String[] {
  582.             "Easy", "Normal", "Hard"
  583.         }));
  584.         fogreSpawnDifficultyW = new WidgetMulti(fogreSpawnDifficulty, "Spawn Fire O. in");
  585.         MoCSettings.append(fogreStrength = new SettingFloat("FireOgreStrength", 2.0F, 0.1F, 0.1F, 5F));
  586.         fogreStrengthW = new WidgetFloat(fogreStrength, "Fire O. Strength");
  587.         MoCSettings.append(cogrefreq = new SettingInt("FreqCOgre", 3, 0, 1, 10));
  588.         cogrefreqW = new WidgetInt(cogrefreq, "C.Ogre Freq");
  589.         MoCSettings.append(cogreSpawnDifficulty = new SettingMulti("CaveOgreSpawnDifficulty", 1, new String[] {
  590.             "Easy", "Normal", "Hard"
  591.         }));
  592.         cogreSpawnDifficultyW = new WidgetMulti(cogreSpawnDifficulty, "Spawn Cave O. in");
  593.         MoCSettings.append(cogreStrength = new SettingFloat("CaveOgreStrength", 3F, 0.1F, 0.1F, 5F));
  594.         cogreStrengthW = new WidgetFloat(cogreStrength, "Cave O. Strength");
  595.         MoCSettings.append(ogrerange = new SettingInt("OgreRange", 12, 1, 1, 24));
  596.         ogrerangeW = new WidgetInt(ogrerange, "Ogre Range");
  597.         MoCSettings.append(werewolffreq = new SettingInt("FreqWereWolf", 6, 0, 1, 10));
  598.         werewolffreqW = new WidgetInt(werewolffreq, "WereWolf Freq");
  599.         MoCSettings.append(wereSpawnDifficulty = new SettingMulti("wereSpawnDifficulty", 1, new String[] {
  600.             "Easy", "Normal", "Hard"
  601.         }));
  602.         wereSpawnDifficultyW = new WidgetMulti(wereSpawnDifficulty, "Spawn Werew. in");
  603.         MoCSettings.append(wraithfreq = new SettingInt("FreqWraith", 5, 0, 1, 10));
  604.         wraithfreqW = new WidgetInt(wraithfreq, "Wraith Freq");
  605.         MoCSettings.append(wraithSpawnDifficulty = new SettingMulti("wraithSpawnDifficulty", 1, new String[] {
  606.             "Easy", "Normal", "Hard"
  607.         }));
  608.         wraithSpawnDifficultyW = new WidgetMulti(wraithSpawnDifficulty, "Spawn Wraiths in");
  609.         MoCSettings.append(fwraithfreq = new SettingInt("FreqFWraith", 2, 0, 1, 10));
  610.         fwraithfreqW = new WidgetInt(fwraithfreq, "F.Wraith Freq");
  611.         MoCSettings.append(fwraithSpawnDifficulty = new SettingMulti("flameWraithSpawnDifficulty", 2, new String[] {
  612.             "Easy", "Normal", "Hard"
  613.         }));
  614.         fwraithSpawnDifficultyW = new WidgetMulti(fwraithSpawnDifficulty, "Spawn Flame W. in");
  615.         MoCSettings.append(wwolffreq = new SettingInt("FreqWildWolf", 6, 0, 1, 10));
  616.         wwolffreqW = new WidgetInt(wwolffreq, "WildWolf Freq");
  617.         MoCSettings.append(ratfreq = new SettingInt("FreqRat", 8, 0, 1, 10));
  618.         ratfreqW = new WidgetInt(ratfreq, "Rat Freq");
  619.         MoCSettings.append(hellratfreq = new SettingInt("FreqHellRat", 7, 0, 1, 10));
  620.         hellratfreqW = new WidgetInt(hellratfreq, "HellRat Freq");
  621.         MoCSettings.append(scorpionfreq = new SettingInt("ScorpionFreq", 6, 0, 1, 10));
  622.         scorpionfreqW = new WidgetInt(scorpionfreq, "Scorpion Freq");
  623.         SimpleButtonModel simplebuttonmodel4 = new SimpleButtonModel();
  624.         simplebuttonmodel4.addActionCallback(new ModAction(this, "watermobsettings", new Class[0]));
  625.         Button button4 = new Button(simplebuttonmodel4);
  626.         button4.setText("Water Mobs");
  627.         MoCScreen.append(button4);
  628.         MoCSettings.append(sharkfreq = new SettingInt("FreqShark", 2, 0, 1, 10));
  629.         sharkfreqW = new WidgetInt(sharkfreq, "Shark Freq");
  630.         MoCSettings.append(sharkSpawnDifficulty = new SettingMulti("sharkSpawnDifficulty", 0, new String[] {
  631.             "Easy", "Normal", "Hard"
  632.         }));
  633.         sharkSpawnDifficultyW = new WidgetMulti(sharkSpawnDifficulty, "Spawn Sharks");
  634.         MoCSettings.append(dolphinfreq = new SettingInt("FreqDolphin", 4, 0, 1, 10));
  635.         dolphinfreqW = new WidgetInt(dolphinfreq, "Dolphin Freq");
  636.         MoCSettings.append(attackdolphins = new SettingBoolean("DolphinsAttackSharks", Boolean.valueOf(true)));
  637.         attackdolphinsW = new WidgetBoolean(attackdolphins, "Aggresive Dolphins?", "Yes", "No");
  638.         MoCSettings.append(fishfreq = new SettingInt("FreqFishy", 15, 0, 1, 20));
  639.         fishfreqW = new WidgetInt(fishfreq, "Fishy Freq");
  640.         MoCSettings.append(spawnpiranha = new SettingBoolean("SpawnPiranhas", Boolean.valueOf(true)));
  641.         spawnpiranhaW = new WidgetBoolean(spawnpiranha, "Spawn Piranhas?", "Yes", "No");
  642.         MoCSettings.append(rayfreq = new SettingInt("FreqRays", 15, 0, 1, 20));
  643.         rayfreqW = new WidgetInt(rayfreq, "Rays Freq");
  644.         MoCSettings.append(jellyfishfreq = new SettingInt("FreqJellyFish", 15, 0, 1, 20));
  645.         jellyfishfreqW = new WidgetInt(jellyfishfreq, "JellyFish Freq");
  646.         SimpleButtonModel simplebuttonmodel6 = new SimpleButtonModel();
  647.         simplebuttonmodel6.addActionCallback(new ModAction(this, "displaytagsettings", new Class[0]));
  648.         Button button6 = new Button(simplebuttonmodel6);
  649.         button6.setText("Other Settings");
  650.         MoCScreen.append(button6);
  651.         MoCSettings.append(displayname = new SettingBoolean("DisplayPetNames", Boolean.valueOf(true)));
  652.         displaynameW = new WidgetBoolean(displayname, "Show Pet Name?", "Yes", "No");
  653.         MoCSettings.append(displayhealth = new SettingBoolean("DisplayPetHealth", Boolean.valueOf(true)));
  654.         displayhealthW = new WidgetBoolean(displayhealth, "Show Pet Health?", "Yes", "No");
  655.         MoCSettings.append(displayemo = new SettingBoolean("DisplayPetEmotions", Boolean.valueOf(true)));
  656.         displayemoW = new WidgetBoolean(displayemo, "Show Pet Icons?", "Yes", "No");
  657.         MoCSettings.append(staticbed = new SettingBoolean("StaticKBeds", Boolean.valueOf(true)));
  658.         staticbedW = new WidgetBoolean(staticbed, "Static K.Bed?", "Yes", "No");
  659.         MoCSettings.append(staticlitter = new SettingBoolean("StaticLitter", Boolean.valueOf(true)));
  660.         staticlitterW = new WidgetBoolean(staticlitter, "Static Litter?", "Yes", "No");
  661.         SimpleButtonModel simplebuttonmodel7 = new SimpleButtonModel();
  662.         simplebuttonmodel7.addActionCallback(new ModAction(this, "vanillamobs", new Class[0]));
  663.         Button button7 = new Button(simplebuttonmodel7);
  664.         button7.setText("Vanilla Mobs");
  665.         MoCScreen.append(button7);
  666.         MoCSettings.append(despawnVanilla = new SettingBoolean("DespawnVanilla", Boolean.valueOf(true)));
  667.         despawnVanillaW = new WidgetBoolean(despawnVanilla, "Despawn vanilla mobs?", "Yes", "No");
  668.         MoCSettings.append(modifyVanillaSpawns = new SettingBoolean("ChangeVanillaSpawns", Boolean.valueOf(false)));
  669.         modifyVanillaSpawnsW = new WidgetBoolean(modifyVanillaSpawns, "Change vanilla spawns?", "Yes", "No");
  670.         MoCSettings.append(isOldWorld = new SettingBoolean("isOldWorld", Boolean.valueOf(false)));
  671.         isOldWorldW = new WidgetBoolean(isOldWorld, "Old World?", "Yes", "No");
  672.         MoCSettings.append(cowfreq = new SettingInt("CowFreq", 3, 0, 1, 10));
  673.         cowfreqW = new WidgetInt(cowfreq, "Cow Freq");
  674.         MoCSettings.append(sheepfreq = new SettingInt("SheepFreq", 5, 0, 1, 10));
  675.         sheepfreqW = new WidgetInt(sheepfreq, "Sheep Freq");
  676.         MoCSettings.append(pigfreq = new SettingInt("PigFreq", 4, 0, 1, 10));
  677.         pigfreqW = new WidgetInt(pigfreq, "Pig Freq");
  678.         MoCSettings.append(chickenfreq = new SettingInt("ChickenFreq", 4, 0, 1, 10));
  679.         chickenfreqW = new WidgetInt(chickenfreq, "Chicken Freq");
  680.         MoCSettings.append(wolffreq = new SettingInt("WolfFreq", 5, 0, 1, 3));
  681.         wolffreqW = new WidgetInt(wolffreq, "Wolf Freq");
  682.         MoCSettings.append(squidfreq = new SettingInt("FreqSquid", 3, 0, 1, 3));
  683.         squidfreqW = new WidgetInt(squidfreq, "Squid Freq");
  684.         MoCSettings.append(zombiefreq = new SettingInt("ZombieFreq", 4, 0, 1, 10));
  685.         zombiefreqW = new WidgetInt(zombiefreq, "Zombie Freq");
  686.         MoCSettings.append(skeletonfreq = new SettingInt("SkeletonFreq", 4, 0, 1, 10));
  687.         skeletonfreqW = new WidgetInt(skeletonfreq, "Skeleton Freq");
  688.         MoCSettings.append(spiderfreq = new SettingInt("SpiderFreq", 4, 0, 1, 10));
  689.         spiderfreqW = new WidgetInt(spiderfreq, "Spider Freq");
  690.         MoCSettings.append(creeperfreq = new SettingInt("CreeperFreq", 4, 0, 1, 10));
  691.         creeperfreqW = new WidgetInt(creeperfreq, "Creeper Freq");
  692.         MoCSettings.append(enderfreq = new SettingInt("EnderFreq", 2, 0, 1, 10));
  693.         enderfreqW = new WidgetInt(enderfreq, "Ender Freq");
  694.         SimpleButtonModel simplebuttonmodel5 = new SimpleButtonModel();
  695.         simplebuttonmodel5.addActionCallback(new ModAction(MoCSettings, "resetAll", new Class[0]));
  696.         Button button5 = new Button(simplebuttonmodel5);
  697.         button5.setText("Reset to defaults");
  698.         MoCScreen.append(button5);
  699.         MoCSettings.load();
  700.     }
  701.  
  702.     public void spawnlimits()
  703.     {
  704.         if(spawnwindow == null)
  705.         {
  706.             WidgetClassicTwocolumn widgetclassictwocolumn = new WidgetClassicTwocolumn(new Widget[0]);
  707.             widgetclassictwocolumn.add(maxMobsW);
  708.             widgetclassictwocolumn.add(maxAnimalsW);
  709.             widgetclassictwocolumn.add(maxWaterMobsW);
  710.             widgetclassictwocolumn.add(isOldWorldW);
  711.             spawnwindow = new WidgetSimplewindow(widgetclassictwocolumn, "Spawn Settings");
  712.         }
  713.         GuiModScreen.show(spawnwindow);
  714.     }
  715.  
  716.     public void animalsettings()
  717.     {
  718.         if(animalwindow == null)
  719.         {
  720.             WidgetClassicTwocolumn widgetclassictwocolumn = new WidgetClassicTwocolumn(new Widget[0]);
  721.             widgetclassictwocolumn.add(birdfreqW);
  722.             widgetclassictwocolumn.add(bunnyfreqW);
  723.             widgetclassictwocolumn.add(duckfreqW);
  724.             widgetclassictwocolumn.add(horsefreqW);
  725.             widgetclassictwocolumn.add(easybreedingW);
  726.             widgetclassictwocolumn.add(pegasusChanceW);
  727.             widgetclassictwocolumn.add(deerfreqW);
  728.             widgetclassictwocolumn.add(kittyfreqW);
  729.             widgetclassictwocolumn.add(micefreqW);
  730.             widgetclassictwocolumn.add(turtlefreqW);
  731.             widgetclassictwocolumn.add(goatfreqW);
  732.             animalwindow = new WidgetSimplewindow(widgetclassictwocolumn, "Pacific Creatures Settings");
  733.         }
  734.         GuiModScreen.show(animalwindow);
  735.     }
  736.  
  737.     public void displaytagsettings()
  738.     {
  739.         if(displaytagwindow == null)
  740.         {
  741.             WidgetClassicTwocolumn widgetclassictwocolumn = new WidgetClassicTwocolumn(new Widget[0]);
  742.             widgetclassictwocolumn.add(displaynameW);
  743.             widgetclassictwocolumn.add(displayhealthW);
  744.             widgetclassictwocolumn.add(displayemoW);
  745.             widgetclassictwocolumn.add(staticbedW);
  746.             widgetclassictwocolumn.add(staticlitterW);
  747.             displaytagwindow = new WidgetSimplewindow(widgetclassictwocolumn, "Other Settings");
  748.         }
  749.         GuiModScreen.show(displaytagwindow);
  750.     }
  751.  
  752.     public void huntersettings()
  753.     {
  754.         if(hunterwindow == null)
  755.         {
  756.             WidgetClassicTwocolumn widgetclassictwocolumn = new WidgetClassicTwocolumn(new Widget[0]);
  757.             widgetclassictwocolumn.add(attackhorsesW);
  758.             widgetclassictwocolumn.add(attackwolvesW);
  759.             widgetclassictwocolumn.add(destroyitemsW);
  760.             widgetclassictwocolumn.add(lionfreqW);
  761.             widgetclassictwocolumn.add(bearfreqW);
  762.             widgetclassictwocolumn.add(pbearfreqW);
  763.             widgetclassictwocolumn.add(boarfreqW);
  764.             widgetclassictwocolumn.add(foxfreqW);
  765.             widgetclassictwocolumn.add(crocfreqW);
  766.             hunterwindow = new WidgetSimplewindow(widgetclassictwocolumn, "Hunter Creatures Settings");
  767.         }
  768.         GuiModScreen.show(hunterwindow);
  769.     }
  770.  
  771.     public void mobsettings()
  772.     {
  773.         if(mobwindow == null)
  774.         {
  775.             WidgetClassicTwocolumn widgetclassictwocolumn = new WidgetClassicTwocolumn(new Widget[0]);
  776.             widgetclassictwocolumn.add(ogrefreqW);
  777.             widgetclassictwocolumn.add(ogreSpawnDifficultyW);
  778.             widgetclassictwocolumn.add(ogreStrengthW);
  779.             widgetclassictwocolumn.add(fogrefreqW);
  780.             widgetclassictwocolumn.add(fogreSpawnDifficultyW);
  781.             widgetclassictwocolumn.add(fogreStrengthW);
  782.             widgetclassictwocolumn.add(cogrefreqW);
  783.             widgetclassictwocolumn.add(cogreSpawnDifficultyW);
  784.             widgetclassictwocolumn.add(cogreStrengthW);
  785.             widgetclassictwocolumn.add(ogrerangeW);
  786.             widgetclassictwocolumn.add(wwolffreqW);
  787.             widgetclassictwocolumn.add(wraithfreqW);
  788.             widgetclassictwocolumn.add(wraithSpawnDifficultyW);
  789.             widgetclassictwocolumn.add(fwraithfreqW);
  790.             widgetclassictwocolumn.add(fwraithSpawnDifficultyW);
  791.             widgetclassictwocolumn.add(werewolffreqW);
  792.             widgetclassictwocolumn.add(wereSpawnDifficultyW);
  793.             widgetclassictwocolumn.add(ratfreqW);
  794.             widgetclassictwocolumn.add(hellratfreqW);
  795.             widgetclassictwocolumn.add(scorpionfreqW);
  796.             mobwindow = new WidgetSimplewindow(widgetclassictwocolumn, "Hostile Mob Settings");
  797.         }
  798.         GuiModScreen.show(mobwindow);
  799.     }
  800.  
  801.     public void vanillamobs()
  802.     {
  803.         if(vanillamobwindow == null)
  804.         {
  805.             WidgetClassicTwocolumn widgetclassictwocolumn = new WidgetClassicTwocolumn(new Widget[0]);
  806.             widgetclassictwocolumn.add(despawnVanillaW);
  807.             widgetclassictwocolumn.add(modifyVanillaSpawnsW);
  808.             widgetclassictwocolumn.add(cowfreqW);
  809.             widgetclassictwocolumn.add(pigfreqW);
  810.             widgetclassictwocolumn.add(sheepfreqW);
  811.             widgetclassictwocolumn.add(chickenfreqW);
  812.             widgetclassictwocolumn.add(wolffreqW);
  813.             widgetclassictwocolumn.add(squidfreqW);
  814.             widgetclassictwocolumn.add(zombiefreqW);
  815.             widgetclassictwocolumn.add(skeletonfreqW);
  816.             widgetclassictwocolumn.add(spiderfreqW);
  817.             widgetclassictwocolumn.add(creeperfreqW);
  818.             widgetclassictwocolumn.add(enderfreqW);
  819.             vanillamobwindow = new WidgetSimplewindow(widgetclassictwocolumn, "Vanilla Mobs Settings");
  820.         }
  821.         GuiModScreen.show(vanillamobwindow);
  822.     }
  823.  
  824.     public void watermobsettings()
  825.     {
  826.         if(watermobwindow == null)
  827.         {
  828.             WidgetClassicTwocolumn widgetclassictwocolumn = new WidgetClassicTwocolumn(new Widget[0]);
  829.             widgetclassictwocolumn.add(sharkfreqW);
  830.             widgetclassictwocolumn.add(sharkSpawnDifficultyW);
  831.             widgetclassictwocolumn.add(dolphinfreqW);
  832.             widgetclassictwocolumn.add(attackdolphinsW);
  833.             widgetclassictwocolumn.add(fishfreqW);
  834.             widgetclassictwocolumn.add(spawnpiranhaW);
  835.             widgetclassictwocolumn.add(rayfreqW);
  836.             widgetclassictwocolumn.add(jellyfishfreqW);
  837.             watermobwindow = new WidgetSimplewindow(widgetclassictwocolumn, "Water Mobs Settings");
  838.         }
  839.         GuiModScreen.show(watermobwindow);
  840.     }
  841.  
  842.     public static void renderHaze(float f, String s)
  843.     {
  844.         aec scaledresolution = new aec(mc.A, mc.d, mc.e);
  845.         int i = scaledresolution.a();
  846.         int j = scaledresolution.b();
  847.         GL11.glEnable(3042);
  848.         GL11.glDisable(2929);
  849.         GL11.glDepthMask(false);
  850.         GL11.glBlendFunc(770, 771);
  851.         GL11.glColor4f(1.0F, 1.0F, 1.0F, f);
  852.         GL11.glDisable(3008);
  853.         GL11.glBindTexture(3553, mc.p.b(s));
  854.         aby tessellator = aby.a;
  855.         tessellator.b();
  856.         tessellator.a(0.0D, j, -90D, 0.0D, 1.0D);
  857.         tessellator.a(i, j, -90D, 1.0D, 1.0D);
  858.         tessellator.a(i, 0.0D, -90D, 1.0D, 0.0D);
  859.         tessellator.a(0.0D, 0.0D, -90D, 0.0D, 0.0D);
  860.         tessellator.a();
  861.         GL11.glDepthMask(true);
  862.         GL11.glEnable(2929);
  863.         GL11.glEnable(3008);
  864.         GL11.glColor4f(1.0F, 1.0F, 1.0F, f);
  865.     }
  866.  
  867.     public static void setName(MoCEntityAnimal mocanimal)
  868.     {
  869.         mocanimal.setDisplayName(true);
  870.         mc.a(new MoCGUI(mocanimal, mocanimal.getName()));
  871.     }
  872.  
  873.     public static void setName(MoCEntityDolphin entitydolphin)
  874.     {
  875.         entitydolphin.setDisplayName(true);
  876.         mc.a(new MoCGUI(entitydolphin, entitydolphin.getName()));
  877.     }
  878.  
  879.     public static void setName(MoCEntityShark entityshark)
  880.     {
  881.         entityshark.setDisplayName(true);
  882.         mc.a(new MoCGUI(entityshark, entityshark.getName()));
  883.     }
  884.  
  885.     public static void sendNameInfo(int i, String s)
  886.     {
  887.     }
  888.  
  889.     public static void ClearVanillaSpawnLists()
  890.     {
  891.         ModLoader.RemoveSpawn(tj, aah.b);
  892.         ModLoader.RemoveSpawn(pt, aah.b);
  893.         ModLoader.RemoveSpawn(cn, aah.b);
  894.         ModLoader.RemoveSpawn(qg, aah.b);
  895.         ModLoader.RemoveSpawn(wt, aah.b);
  896.         ModLoader.RemoveSpawn(aiz, aah.c);
  897.     }
  898.  
  899.     public static void ClearVanillaMobSpawns()
  900.     {
  901.         ModLoader.RemoveSpawn(wk, aah.a);
  902.         ModLoader.RemoveSpawn(wb, aah.a);
  903.         ModLoader.RemoveSpawn(agy, aah.a);
  904.         ModLoader.RemoveSpawn(bv, aah.a);
  905.         ModLoader.RemoveSpawn(is, aah.a);
  906.         ModLoader.RemoveSpawn(fg, aah.a);
  907.         ModLoader.RemoveSpawn(te, aah.a);
  908.         ModLoader.RemoveSpawn(ajf, aah.a);
  909.     }
  910.  
  911.     public static void PopulateVanillaSpawnLists()
  912.     {
  913.         if(((Integer)cowfreq.get()).intValue() > 0)
  914.             ModLoader.AddSpawn(tj, ((Integer)cowfreq.get()).intValue(), min, max, aah.b, new zp[] {
  915.                 zp.f, zp.e, zp.c, zp.g, zp.h, zp.n, zp.o, zp.b
  916.             });
  917.         if(((Integer)pigfreq.get()).intValue() > 0)
  918.             ModLoader.AddSpawn(pt, ((Integer)pigfreq.get()).intValue(), min, max, aah.b, new zp[] {
  919.                 zp.f, zp.e, zp.c, zp.g, zp.h, zp.n, zp.o, zp.b
  920.             });
  921.         if(((Integer)sheepfreq.get()).intValue() > 0)
  922.             ModLoader.AddSpawn(cn, ((Integer)sheepfreq.get()).intValue(), min, max, aah.b, new zp[] {
  923.                 zp.f, zp.e, zp.c, zp.g, zp.h, zp.n, zp.o, zp.b
  924.             });
  925.         if(((Integer)chickenfreq.get()).intValue() > 0)
  926.             ModLoader.AddSpawn(qg, ((Integer)chickenfreq.get()).intValue(), min, max, aah.b, new zp[] {
  927.                 zp.f, zp.e, zp.c, zp.g, zp.h, zp.n, zp.o, zp.b
  928.             });
  929.         if(((Integer)wolffreq.get()).intValue() > 0)
  930.             ModLoader.AddSpawn(wt, ((Integer)wolffreq.get()).intValue(), min, max, aah.b, new zp[] {
  931.                 zp.f, zp.g, zp.n, zp.o, zp.b
  932.             });
  933.         if(((Integer)zombiefreq.get()).intValue() > 0)
  934.             ModLoader.AddSpawn(agy, ((Integer)zombiefreq.get()).intValue(), min, max, aah.a);
  935.         if(((Integer)skeletonfreq.get()).intValue() > 0)
  936.             ModLoader.AddSpawn(wb, ((Integer)skeletonfreq.get()).intValue(), min, max, aah.a);
  937.         if(((Integer)spiderfreq.get()).intValue() > 0)
  938.             ModLoader.AddSpawn(bv, ((Integer)spiderfreq.get()).intValue(), min, max, aah.a);
  939.         if(((Integer)creeperfreq.get()).intValue() > 0)
  940.             ModLoader.AddSpawn(wk, ((Integer)creeperfreq.get()).intValue(), min, max, aah.a);
  941.         if(((Integer)enderfreq.get()).intValue() > 0)
  942.             ModLoader.AddSpawn(is, ((Integer)enderfreq.get()).intValue(), min, max, aah.a);
  943.         if(((Integer)squidfreq.get()).intValue() > 0)
  944.             ModLoader.AddSpawn(aiz, ((Integer)squidfreq.get()).intValue(), min, max, aah.c, new zp[] {
  945.                 zp.b, zp.i
  946.             });
  947.     }
  948.  
  949.     public static Minecraft mc = ModLoader.getMinecraftInstance();
  950.     static mod_mocreatures inst;
  951.     private static CustomSpawner myCustomSpawner;
  952.     private long sTime;
  953.     public static HashMap mocEntities;
  954.     public static int min = 4;
  955.     public static int max = 5;
  956.     public static long lastTickRun = 0L;
  957.     public static boolean inMenu = false;
  958.     public static ww horsesaddle = (new MoCItemHorseSaddle(3772)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/hsaddle.png")).a("HorseSaddle");
  959.     public static ww haystack = (new MoCItemHayStack(3775)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/haystack.png")).a("HayStack");
  960.     public static ww sugarlump = (new MoCItemSugarLump(3776)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/sugarlump.png")).a("SugarLump");
  961.     public static ww sharkteeth = (new ww(3774)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/sharkteeth.png")).a("sharkteeth");
  962.     public static ww sharkegg = (new MoCItemSharkEgg(3773)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/sharkegg.png")).a("sharkegg");
  963.     public static ww fishyegg = (new MoCItemFishyEgg(3777)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/fishyegg.png")).a("fishyegg");
  964.     public static ww bigcatclaw = (new ww(3778)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/bigcatclaw.png")).a("bigcatclaw");
  965.     public static ww whip;
  966.     public static ww medallion = (new ww(3783)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/medallion.png")).a("medallion");
  967.     public static ww kittybed = (new MoCItemKittyBed(3784, 0)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/bedkitty.png")).a("kittybed");
  968.     public static ww litterbox = (new MoCItemLitterBox(3785)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/boxlitter.png")).a("litterbox");
  969.     public static ww woolball = (new ww(3786)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/woolball.png")).a("woolball");
  970.     public static ww rope = (new ww(3787)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/rope.png")).a("rope");
  971.     public static ww petfood = (new ww(3788)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/petfood.png")).a("petfood");
  972.     public static ww crochide = (new ww(3790)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/crochide.png")).a("crochide");
  973.     public static ww plateCroc;
  974.     public static ww helmetCroc;
  975.     public static ww legsCroc;
  976.     public static ww bootsCroc;
  977.     public static aca Indiana;
  978.     public static aca BunnyKilla;
  979.     public static boolean poisoned = false;
  980.     public static boolean freezed = false;
  981.     public static boolean burned = false;
  982.     public static int poisoncounter = 0;
  983.     public static int freezedcounter = 0;
  984.     public static SettingInt maxMobsS;
  985.     public static WidgetInt maxMobsW;
  986.     public static SettingInt maxAnimalsS;
  987.     public static WidgetInt maxAnimalsW;
  988.     public static SettingInt maxWaterMobsS;
  989.     public static WidgetInt maxWaterMobsW;
  990.     public static SettingBoolean spawnpiranha;
  991.     public static SettingInt horsefreq;
  992.     public static SettingInt birdfreq;
  993.     public static SettingInt lionfreq;
  994.     public static SettingInt bearfreq;
  995.     public static SettingInt pbearfreq;
  996.     public static SettingInt wwolffreq;
  997.     public static SettingInt duckfreq;
  998.     public static SettingInt boarfreq;
  999.     public static SettingInt bunnyfreq;
  1000.     public static SettingInt wraithfreq;
  1001.     public static SettingInt fwraithfreq;
  1002.     public static SettingInt ogrefreq;
  1003.     public static SettingInt cogrefreq;
  1004.     public static SettingInt fogrefreq;
  1005.     public static SettingInt werewolffreq;
  1006.     public static SettingInt foxfreq;
  1007.     public static SettingInt sharkfreq;
  1008.     public static SettingInt squidfreq;
  1009.     public static SettingInt dolphinfreq;
  1010.     public static SettingInt fishfreq;
  1011.     public static SettingInt deerfreq;
  1012.     public static SettingInt kittyfreq;
  1013.     public static SettingInt micefreq;
  1014.     public static SettingInt ratfreq;
  1015.     public static SettingInt hellratfreq;
  1016.     public static SettingInt scorpionfreq;
  1017.     public static SettingInt turtlefreq;
  1018.     public static SettingInt crocfreq;
  1019.     public static SettingInt rayfreq;
  1020.     public static SettingInt jellyfishfreq;
  1021.     public static SettingInt snakefreq;
  1022.     public static SettingInt goatfreq;
  1023.     public static WidgetInt horsefreqW;
  1024.     public static WidgetInt birdfreqW;
  1025.     public static WidgetInt lionfreqW;
  1026.     public static WidgetInt bearfreqW;
  1027.     public static WidgetInt pbearfreqW;
  1028.     public static WidgetInt wwolffreqW;
  1029.     public static WidgetInt duckfreqW;
  1030.     public static WidgetInt boarfreqW;
  1031.     public static WidgetInt bunnyfreqW;
  1032.     public static WidgetInt wraithfreqW;
  1033.     public static WidgetInt fwraithfreqW;
  1034.     public static WidgetInt ogrefreqW;
  1035.     public static WidgetInt cogrefreqW;
  1036.     public static WidgetInt fogrefreqW;
  1037.     public static WidgetInt werewolffreqW;
  1038.     public static WidgetInt foxfreqW;
  1039.     public static WidgetInt sharkfreqW;
  1040.     public static WidgetInt squidfreqW;
  1041.     public static WidgetInt dolphinfreqW;
  1042.     public static WidgetInt fishfreqW;
  1043.     public static WidgetInt deerfreqW;
  1044.     public static WidgetInt kittyfreqW;
  1045.     public static WidgetInt micefreqW;
  1046.     public static WidgetInt ratfreqW;
  1047.     public static WidgetInt hellratfreqW;
  1048.     public static WidgetInt scorpionfreqW;
  1049.     public static WidgetInt turtlefreqW;
  1050.     public static WidgetInt crocfreqW;
  1051.     public static WidgetInt rayfreqW;
  1052.     public static WidgetInt jellyfishfreqW;
  1053.     public static WidgetInt snakefreqW;
  1054.     public static WidgetInt goatfreqW;
  1055.     public static SettingBoolean displayname;
  1056.     public static WidgetBoolean displaynameW;
  1057.     public static SettingBoolean displayhealth;
  1058.     public static WidgetBoolean displayhealthW;
  1059.     public static SettingBoolean displayemo;
  1060.     public static WidgetBoolean displayemoW;
  1061.     public static SettingBoolean staticbed;
  1062.     public static WidgetBoolean staticbedW;
  1063.     public static SettingBoolean staticlitter;
  1064.     public static WidgetBoolean staticlitterW;
  1065.     public static SettingBoolean attackdolphins;
  1066.     public static WidgetBoolean attackdolphinsW;
  1067.     public static SettingBoolean attackhorses;
  1068.     public static WidgetBoolean attackhorsesW;
  1069.     public static SettingBoolean attackwolves;
  1070.     public static WidgetBoolean attackwolvesW;
  1071.     public static SettingBoolean destroyitems;
  1072.     public static WidgetBoolean destroyitemsW;
  1073.     public static WidgetBoolean spawnpiranhaW;
  1074.     public static SettingInt pegasusChanceS;
  1075.     public static WidgetInt pegasusChanceW;
  1076.     public static SettingBoolean easybreeding;
  1077.     public static WidgetBoolean easybreedingW;
  1078.     public static SettingInt ogrerange;
  1079.     public static SettingFloat ogreStrength;
  1080.     public static SettingFloat fogreStrength;
  1081.     public static SettingFloat cogreStrength;
  1082.     public static WidgetFloat ogreStrengthW;
  1083.     public static WidgetFloat fogreStrengthW;
  1084.     public static WidgetFloat cogreStrengthW;
  1085.     public static WidgetInt ogrerangeW;
  1086.     public static SettingMulti ogreSpawnDifficulty;
  1087.     public static SettingMulti cogreSpawnDifficulty;
  1088.     public static SettingMulti fogreSpawnDifficulty;
  1089.     public static WidgetMulti ogreSpawnDifficultyW;
  1090.     public static WidgetMulti cogreSpawnDifficultyW;
  1091.     public static WidgetMulti fogreSpawnDifficultyW;
  1092.     public static SettingMulti wereSpawnDifficulty;
  1093.     public static SettingMulti wraithSpawnDifficulty;
  1094.     public static SettingMulti fwraithSpawnDifficulty;
  1095.     public static WidgetMulti wereSpawnDifficultyW;
  1096.     public static WidgetMulti wraithSpawnDifficultyW;
  1097.     public static WidgetMulti fwraithSpawnDifficultyW;
  1098.     public static SettingMulti sharkSpawnDifficulty;
  1099.     public static WidgetMulti sharkSpawnDifficultyW;
  1100.     public String modName;
  1101.     public ModSettings MoCSettings;
  1102.     public ModSettingScreen MoCScreen;
  1103.     public WidgetSimplewindow spawnwindow;
  1104.     public WidgetSimplewindow animalwindow;
  1105.     public WidgetSimplewindow hunterwindow;
  1106.     public WidgetSimplewindow mobwindow;
  1107.     public WidgetSimplewindow watermobwindow;
  1108.     public WidgetSimplewindow displaytagwindow;
  1109.     public WidgetSimplewindow vanillamobwindow;
  1110.     public static SettingBoolean despawnVanilla;
  1111.     public static WidgetBoolean despawnVanillaW;
  1112.     public static SettingBoolean modifyVanillaSpawns;
  1113.     public static WidgetBoolean modifyVanillaSpawnsW;
  1114.     public static SettingBoolean isOldWorld;
  1115.     public static WidgetBoolean isOldWorldW;
  1116.     public static SettingInt cowfreq;
  1117.     public static WidgetInt cowfreqW;
  1118.     public static SettingInt sheepfreq;
  1119.     public static WidgetInt sheepfreqW;
  1120.     public static SettingInt pigfreq;
  1121.     public static WidgetInt pigfreqW;
  1122.     public static SettingInt chickenfreq;
  1123.     public static WidgetInt chickenfreqW;
  1124.     public static SettingInt zombiefreq;
  1125.     public static WidgetInt zombiefreqW;
  1126.     public static SettingInt skeletonfreq;
  1127.     public static WidgetInt skeletonfreqW;
  1128.     public static SettingInt spiderfreq;
  1129.     public static WidgetInt spiderfreqW;
  1130.     public static SettingInt creeperfreq;
  1131.     public static WidgetInt creeperfreqW;
  1132.     public static SettingInt enderfreq;
  1133.     public static WidgetInt enderfreqW;
  1134.     public static SettingInt wolffreq;
  1135.     public static WidgetInt wolffreqW;
  1136.     public static WidgetInt basefreqW;
  1137.  
  1138.     static
  1139.     {
  1140.         whip = (new MoCItemWhip(3779)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/whip.png")).a("whip");
  1141.         plateCroc = (new po(3791, ca.a, ModLoader.AddArmor("croc"), 1)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/crocplate.png")).a("plateCroc");
  1142.         helmetCroc = (new po(3792, ca.a, ModLoader.AddArmor("croc"), 0)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/crochelmet.png")).a("helmetCroc");
  1143.         legsCroc = (new po(3793, ca.a, ModLoader.AddArmor("croc"), 2)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/croclegs.png")).a("legsCroc");
  1144.         bootsCroc = (new po(3794, ca.a, ModLoader.AddArmor("croc"), 3)).e(ModLoader.addOverride("/gui/items.png", "/mocreatures/crocboots.png")).a("bootsCroc");
  1145.         Indiana = (new aca(77, "indiana", -4, -4, whip, dk.f)).d();
  1146.         BunnyKilla = (new aca(78, "bunnykilla", -5, -5, whip, dk.f)).d();
  1147.     }
  1148. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top