├── README.md ├── libraries └── damt │ └── damt │ └── 0.1 │ └── damt-0.1.jar └── versions └── b1.7.3 ├── Booster-client ├── EntityMinecart.java └── yl.class ├── Booster-server ├── EntityMinecart.java └── pr.class ├── Bypass-block-activation-client ├── PlayerController.java └── ob.class ├── Custom-sound-fix-client ├── ThreadDownloadResources.java └── cz.class ├── Debug-chest-client ├── World.java └── fd.class ├── Enderman-client ├── BiomeGenBase.java ├── BlockGrass.java ├── EntityEnderman.class ├── EntityEnderman.java ├── EntityList.java ├── ModelEnderman.class ├── ModelEnderman.java ├── RenderBlocks.java ├── RenderEnderman.class ├── RenderEnderman.java ├── RenderManager.java ├── Vec3D.java ├── bt.class ├── cv.class ├── jc.class ├── kd.class ├── mob │ ├── enderman.png │ └── enderman_eyes.png ├── th.class └── wp.class ├── Fence-jump-fix-client ├── Pathfinder.java └── fw.class ├── Fence-jump-fix-server ├── Pathfinder.java └── dz.class ├── Fire-spread-client ├── BlockFire.java └── yq.class ├── Fire-spread-server ├── BlockFire.java └── pt.class ├── Food-stacks-client ├── ItemFood.java └── yw.class ├── Food-stacks-server ├── ItemFood.java └── px.class ├── Login-fix-client ├── NetClientHandler.java └── nb.class ├── Login-fix-server ├── ThreadLoginVerifier.java └── cv.class ├── No-blockhitdelay-client ├── PlayerControllerMP.java └── xk.class ├── No-container-labels-client ├── GuiContainer.java └── id.class ├── No-tallgrass-client ├── BlockDeadBush.java ├── BlockTallGrass.java ├── ItemHoe.java ├── jb.class ├── la.class └── ru.class ├── No-tallgrass-server ├── BlockDeadBush.java ├── BlockTallGrass.java ├── ItemHoe.java ├── fz.class ├── gz.class └── kz.class ├── Ravines-client ├── ChunkProviderGenerate.java ├── MapGenRavine.class ├── MapGenRavine.java └── yf.class ├── Ravines-server ├── ChunkProviderGenerate.java ├── MapGenRavine.class ├── MapGenRavine.java └── pk.class ├── Skin-fix-client ├── EntityOtherPlayerMP.java ├── EntityPlayerSP.java ├── dc.class └── xz.class ├── Spring-propagation-fix-client ├── BlockFlowing.java └── om.class ├── Spring-propagation-fix-server ├── BlockFlowing.java └── jc.class ├── Tool-fix-client ├── ItemAxe.java ├── ItemPickaxe.java ├── au.class └── ta.class ├── Water-lift-client ├── EntityBoat.java └── fz.class ├── Water-lift-server ├── EntityBoat.java └── eb.class ├── Winter-mode-client ├── World.java ├── WorldChunkManager.java ├── fd.class └── xv.class ├── Winter-mode-server ├── World.java ├── WorldChunkManager.java ├── dj.class └── ph.class └── b1.7.3m.json /README.md: -------------------------------------------------------------------------------- 1 | # Minecraft mods 2 | A collection of mods for old versions of Minecraft. 3 | 4 | Some mods by me, some by various authors. Credits to them and Mojang. I don't own Minecraft. I'm not responsible if your world saves become corrupted, blah blah. I won't support you and neither will Mojang. Don't sue me. 5 | 6 | You need to purchase Minecraft to use these mods. If you don't have a copy of the game, this repo isn't for you. 7 | 8 | ## Installation 9 | 10 | Take a look at the [wiki](http://github.com/SnowshoeIceboot/mcmods/wiki). 11 | -------------------------------------------------------------------------------- /libraries/damt/damt/0.1/damt-0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/libraries/damt/damt/0.1/damt-0.1.jar -------------------------------------------------------------------------------- /versions/b1.7.3/Booster-client/yl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Booster-client/yl.class -------------------------------------------------------------------------------- /versions/b1.7.3/Booster-server/pr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Booster-server/pr.class -------------------------------------------------------------------------------- /versions/b1.7.3/Bypass-block-activation-client/PlayerController.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import net.minecraft.client.Minecraft; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // World, Block, ItemStack, EntityPlayer, 11 | // InventoryPlayer, EntityPlayerSP, WorldProvider, Container, 12 | // Entity 13 | 14 | public class PlayerController 15 | { 16 | 17 | public PlayerController(Minecraft minecraft) 18 | { 19 | field_1064_b = false; 20 | mc = minecraft; 21 | } 22 | 23 | public void func_717_a(World world) 24 | { 25 | } 26 | 27 | public void clickBlock(int i, int j, int k, int l) 28 | { 29 | mc.theWorld.onBlockHit(mc.thePlayer, i, j, k, l); 30 | sendBlockRemoved(i, j, k, l); 31 | } 32 | 33 | public boolean sendBlockRemoved(int i, int j, int k, int l) 34 | { 35 | World world = mc.theWorld; 36 | Block block = Block.blocksList[world.getBlockId(i, j, k)]; 37 | world.func_28106_e(2001, i, j, k, block.blockID + world.getBlockMetadata(i, j, k) * 256); 38 | int i1 = world.getBlockMetadata(i, j, k); 39 | boolean flag = world.setBlockWithNotify(i, j, k, 0); 40 | if(block != null && flag) 41 | { 42 | block.onBlockDestroyedByPlayer(world, i, j, k, i1); 43 | } 44 | return flag; 45 | } 46 | 47 | public void sendBlockRemoving(int i, int j, int k, int l) 48 | { 49 | } 50 | 51 | public void resetBlockRemoving() 52 | { 53 | } 54 | 55 | public void setPartialTime(float f) 56 | { 57 | } 58 | 59 | public float getBlockReachDistance() 60 | { 61 | return 5F; 62 | } 63 | 64 | public boolean sendUseItem(EntityPlayer entityplayer, World world, ItemStack itemstack) 65 | { 66 | int i = itemstack.stackSize; 67 | ItemStack itemstack1 = itemstack.useItemRightClick(world, entityplayer); 68 | if(itemstack1 != itemstack || itemstack1 != null && itemstack1.stackSize != i) 69 | { 70 | entityplayer.inventory.mainInventory[entityplayer.inventory.currentItem] = itemstack1; 71 | if(itemstack1.stackSize == 0) 72 | { 73 | entityplayer.inventory.mainInventory[entityplayer.inventory.currentItem] = null; 74 | } 75 | return true; 76 | } else 77 | { 78 | return false; 79 | } 80 | } 81 | 82 | public void flipPlayer(EntityPlayer entityplayer) 83 | { 84 | } 85 | 86 | public void updateController() 87 | { 88 | } 89 | 90 | public boolean shouldDrawHUD() 91 | { 92 | return true; 93 | } 94 | 95 | public void func_6473_b(EntityPlayer entityplayer) 96 | { 97 | } 98 | 99 | public boolean sendPlaceBlock(EntityPlayer entityplayer, World world, ItemStack itemstack, int i, int j, int k, int l) 100 | { 101 | int i1 = world.getBlockId(i, j, k); 102 | if(i1 > 0 && !entityplayer.isSneaking() && Block.blocksList[i1].blockActivated(world, i, j, k, entityplayer)) 103 | { 104 | return true; 105 | } 106 | if(itemstack == null) 107 | { 108 | return false; 109 | } else 110 | { 111 | return itemstack.useItem(entityplayer, world, i, j, k, l); 112 | } 113 | } 114 | 115 | public EntityPlayer createPlayer(World world) 116 | { 117 | return new EntityPlayerSP(mc, world, mc.session, world.worldProvider.worldType); 118 | } 119 | 120 | public void interactWithEntity(EntityPlayer entityplayer, Entity entity) 121 | { 122 | entityplayer.useCurrentItemOnEntity(entity); 123 | } 124 | 125 | public void attackEntity(EntityPlayer entityplayer, Entity entity) 126 | { 127 | entityplayer.attackTargetEntityWithCurrentItem(entity); 128 | } 129 | 130 | public ItemStack func_27174_a(int i, int j, int k, boolean flag, EntityPlayer entityplayer) 131 | { 132 | return entityplayer.craftingInventory.func_27280_a(j, k, flag, entityplayer); 133 | } 134 | 135 | public void func_20086_a(int i, EntityPlayer entityplayer) 136 | { 137 | entityplayer.craftingInventory.onCraftGuiClosed(entityplayer); 138 | entityplayer.craftingInventory = entityplayer.inventorySlots; 139 | } 140 | 141 | protected final Minecraft mc; 142 | public boolean field_1064_b; 143 | } 144 | -------------------------------------------------------------------------------- /versions/b1.7.3/Bypass-block-activation-client/ob.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Bypass-block-activation-client/ob.class -------------------------------------------------------------------------------- /versions/b1.7.3/Custom-sound-fix-client/ThreadDownloadResources.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.io.*; 8 | import java.net.URL; 9 | import javax.xml.parsers.DocumentBuilder; 10 | import javax.xml.parsers.DocumentBuilderFactory; 11 | import net.minecraft.client.Minecraft; 12 | import org.w3c.dom.*; 13 | 14 | public class ThreadDownloadResources extends Thread 15 | { 16 | 17 | public ThreadDownloadResources(File file, Minecraft minecraft) 18 | { 19 | closing = false; 20 | mc = minecraft; 21 | setName("Resource download thread"); 22 | setDaemon(true); 23 | resourcesFolder = new File(file, "resources/"); 24 | if(!resourcesFolder.exists() && !resourcesFolder.mkdirs()) 25 | { 26 | throw new RuntimeException((new StringBuilder()).append("The working directory could not be created: ").append(resourcesFolder).toString()); 27 | } else 28 | { 29 | return; 30 | } 31 | } 32 | 33 | public void run() 34 | { 35 | try 36 | { 37 | URL url = new URL("http://s3.amazonaws.com/MinecraftResources/"); 38 | DocumentBuilderFactory documentbuilderfactory = DocumentBuilderFactory.newInstance(); 39 | DocumentBuilder documentbuilder = documentbuilderfactory.newDocumentBuilder(); 40 | Document document = documentbuilder.parse(url.openStream()); 41 | NodeList nodelist = document.getElementsByTagName("Contents"); 42 | for(int i = 0; i < 2; i++) 43 | { 44 | for(int j = 0; j < nodelist.getLength(); j++) 45 | { 46 | Node node = nodelist.item(j); 47 | if(node.getNodeType() != 1) 48 | { 49 | continue; 50 | } 51 | Element element = (Element)node; 52 | String s = ((Element)element.getElementsByTagName("Key").item(0)).getChildNodes().item(0).getNodeValue(); 53 | long l = Long.parseLong(((Element)element.getElementsByTagName("Size").item(0)).getChildNodes().item(0).getNodeValue()); 54 | if(l <= 0L) 55 | { 56 | continue; 57 | } 58 | downloadAndInstallResource(url, s, l, i); 59 | if(closing) 60 | { 61 | return; 62 | } 63 | } 64 | 65 | } 66 | 67 | } 68 | catch(Exception exception) 69 | { 70 | loadResource(resourcesFolder, ""); 71 | exception.printStackTrace(); 72 | } 73 | } 74 | 75 | public void reloadResources() 76 | { 77 | loadResource(resourcesFolder, ""); 78 | } 79 | 80 | private void loadResource(File file, String s) 81 | { 82 | File afile[] = file.listFiles(); 83 | for(int i = 0; i < afile.length; i++) 84 | { 85 | if(afile[i].isDirectory()) 86 | { 87 | loadResource(afile[i], (new StringBuilder()).append(s).append(afile[i].getName()).append("/").toString()); 88 | continue; 89 | } 90 | try 91 | { 92 | mc.installResource((new StringBuilder()).append(s).append(afile[i].getName()).toString(), afile[i]); 93 | } 94 | catch(Exception exception) 95 | { 96 | System.out.println((new StringBuilder()).append("Failed to add ").append(s).append(afile[i].getName()).toString()); 97 | } 98 | } 99 | 100 | } 101 | 102 | private void downloadAndInstallResource(URL url, String s, long l, int i) 103 | { 104 | try 105 | { 106 | int j = s.indexOf("/"); 107 | String s1 = s.substring(0, j); 108 | if(s1.equals("sound") || s1.equals("newsound")) 109 | { 110 | if(i != 0) 111 | { 112 | return; 113 | } 114 | } else 115 | if(i != 1) 116 | { 117 | return; 118 | } 119 | File file = new File(resourcesFolder, s); 120 | if(!file.exists() || file.length() != l) 121 | { 122 | file.getParentFile().mkdirs(); 123 | String s2 = s.replaceAll(" ", "%20"); 124 | //downloadResource(new URL(url, s2), file, l); 125 | if(closing) 126 | { 127 | return; 128 | } 129 | } 130 | mc.installResource(s, file); 131 | } 132 | catch(Exception exception) 133 | { 134 | exception.printStackTrace(); 135 | } 136 | } 137 | 138 | private void downloadResource(URL url, File file, long l) 139 | throws IOException 140 | { 141 | byte abyte0[] = new byte[4096]; 142 | DataInputStream datainputstream = new DataInputStream(url.openStream()); 143 | DataOutputStream dataoutputstream = new DataOutputStream(new FileOutputStream(file)); 144 | for(int i = 0; (i = datainputstream.read(abyte0)) >= 0;) 145 | { 146 | dataoutputstream.write(abyte0, 0, i); 147 | if(closing) 148 | { 149 | return; 150 | } 151 | } 152 | 153 | datainputstream.close(); 154 | dataoutputstream.close(); 155 | } 156 | 157 | public void closeMinecraft() 158 | { 159 | closing = true; 160 | } 161 | 162 | public File resourcesFolder; 163 | private Minecraft mc; 164 | private boolean closing; 165 | } 166 | -------------------------------------------------------------------------------- /versions/b1.7.3/Custom-sound-fix-client/cz.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Custom-sound-fix-client/cz.class -------------------------------------------------------------------------------- /versions/b1.7.3/Debug-chest-client/fd.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Debug-chest-client/fd.class -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/BiomeGenBase.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | import java.util.Random; 10 | 11 | // Referenced classes of package net.minecraft.src: 12 | // Block, BlockGrass, SpawnListEntry, EntitySpider, 13 | // EntityZombie, EntitySkeleton, EntityCreeper, EntitySlime, 14 | // EntitySheep, EntityPig, EntityChicken, EntityCow, 15 | // EntitySquid, WorldGenBigTree, WorldGenTrees, EnumCreatureType, 16 | // BiomeGenRainforest, BiomeGenSwamp, BiomeGenForest, BiomeGenDesert, 17 | // BiomeGenTaiga, BiomeGenHell, BiomeGenSky, WorldGenerator 18 | 19 | public class BiomeGenBase 20 | { 21 | 22 | protected BiomeGenBase() 23 | { 24 | topBlock = (byte)Block.grass.blockID; 25 | fillerBlock = (byte)Block.dirt.blockID; 26 | field_6502_q = 0x4ee031; 27 | spawnableMonsterList = new ArrayList(); 28 | spawnableCreatureList = new ArrayList(); 29 | spawnableWaterCreatureList = new ArrayList(); 30 | enableRain = true; 31 | spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntitySpider.class, 10)); 32 | spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntityZombie.class, 10)); 33 | spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntitySkeleton.class, 10)); 34 | spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntityCreeper.class, 10)); 35 | spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntitySlime.class, 10)); 36 | spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntityEnderman.class, 2)); 37 | spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntitySheep.class, 12)); 38 | spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntityPig.class, 10)); 39 | spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntityChicken.class, 10)); 40 | spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntityCow.class, 8)); 41 | spawnableWaterCreatureList.add(new SpawnListEntry(net.minecraft.src.EntitySquid.class, 10)); 42 | } 43 | 44 | private BiomeGenBase setDisableRain() 45 | { 46 | enableRain = false; 47 | return this; 48 | } 49 | 50 | public static void generateBiomeLookup() 51 | { 52 | for(int i = 0; i < 64; i++) 53 | { 54 | for(int j = 0; j < 64; j++) 55 | { 56 | biomeLookupTable[i + j * 64] = getBiome((float)i / 63F, (float)j / 63F); 57 | } 58 | 59 | } 60 | 61 | desert.topBlock = desert.fillerBlock = (byte)Block.sand.blockID; 62 | iceDesert.topBlock = iceDesert.fillerBlock = (byte)Block.sand.blockID; 63 | } 64 | 65 | public WorldGenerator getRandomWorldGenForTrees(Random random) 66 | { 67 | if(random.nextInt(10) == 0) 68 | { 69 | return new WorldGenBigTree(); 70 | } else 71 | { 72 | return new WorldGenTrees(); 73 | } 74 | } 75 | 76 | protected BiomeGenBase setEnableSnow() 77 | { 78 | enableSnow = true; 79 | return this; 80 | } 81 | 82 | protected BiomeGenBase setBiomeName(String s) 83 | { 84 | biomeName = s; 85 | return this; 86 | } 87 | 88 | protected BiomeGenBase func_4124_a(int i) 89 | { 90 | field_6502_q = i; 91 | return this; 92 | } 93 | 94 | protected BiomeGenBase setColor(int i) 95 | { 96 | color = i; 97 | return this; 98 | } 99 | 100 | public static BiomeGenBase getBiomeFromLookup(double d, double d1) 101 | { 102 | int i = (int)(d * 63D); 103 | int j = (int)(d1 * 63D); 104 | return biomeLookupTable[i + j * 64]; 105 | } 106 | 107 | public static BiomeGenBase getBiome(float f, float f1) 108 | { 109 | f1 *= f; 110 | if(f < 0.1F) 111 | { 112 | return tundra; 113 | } 114 | if(f1 < 0.2F) 115 | { 116 | if(f < 0.5F) 117 | { 118 | return tundra; 119 | } 120 | if(f < 0.95F) 121 | { 122 | return savanna; 123 | } else 124 | { 125 | return desert; 126 | } 127 | } 128 | if(f1 > 0.5F && f < 0.7F) 129 | { 130 | return swampland; 131 | } 132 | if(f < 0.5F) 133 | { 134 | return taiga; 135 | } 136 | if(f < 0.97F) 137 | { 138 | if(f1 < 0.35F) 139 | { 140 | return shrubland; 141 | } else 142 | { 143 | return forest; 144 | } 145 | } 146 | if(f1 < 0.45F) 147 | { 148 | return plains; 149 | } 150 | if(f1 < 0.9F) 151 | { 152 | return seasonalForest; 153 | } else 154 | { 155 | return rainforest; 156 | } 157 | } 158 | 159 | public int getSkyColorByTemp(float f) 160 | { 161 | f /= 3F; 162 | if(f < -1F) 163 | { 164 | f = -1F; 165 | } 166 | if(f > 1.0F) 167 | { 168 | f = 1.0F; 169 | } 170 | return java.awt.Color.getHSBColor(0.6222222F - f * 0.05F, 0.5F + f * 0.1F, 1.0F).getRGB(); 171 | } 172 | 173 | public List getSpawnableList(EnumCreatureType enumcreaturetype) 174 | { 175 | if(enumcreaturetype == EnumCreatureType.monster) 176 | { 177 | return spawnableMonsterList; 178 | } 179 | if(enumcreaturetype == EnumCreatureType.creature) 180 | { 181 | return spawnableCreatureList; 182 | } 183 | if(enumcreaturetype == EnumCreatureType.waterCreature) 184 | { 185 | return spawnableWaterCreatureList; 186 | } else 187 | { 188 | return null; 189 | } 190 | } 191 | 192 | public boolean getEnableSnow() 193 | { 194 | return enableSnow; 195 | } 196 | 197 | public boolean canSpawnLightningBolt() 198 | { 199 | if(enableSnow) 200 | { 201 | return false; 202 | } else 203 | { 204 | return enableRain; 205 | } 206 | } 207 | 208 | public static final BiomeGenBase rainforest = (new BiomeGenRainforest()).setColor(0x8fa36).setBiomeName("Rainforest").func_4124_a(0x1ff458); 209 | public static final BiomeGenBase swampland = (new BiomeGenSwamp()).setColor(0x7f9b2).setBiomeName("Swampland").func_4124_a(0x8baf48); 210 | public static final BiomeGenBase seasonalForest = (new BiomeGenBase()).setColor(0x9be023).setBiomeName("Seasonal Forest"); 211 | public static final BiomeGenBase forest = (new BiomeGenForest()).setColor(0x56621).setBiomeName("Forest").func_4124_a(0x4eba31); 212 | public static final BiomeGenBase savanna = (new BiomeGenDesert()).setColor(0xd9e023).setBiomeName("Savanna"); 213 | public static final BiomeGenBase shrubland = (new BiomeGenBase()).setColor(0xa1ad20).setBiomeName("Shrubland"); 214 | public static final BiomeGenBase taiga = (new BiomeGenTaiga()).setColor(0x2eb153).setBiomeName("Taiga").setEnableSnow().func_4124_a(0x7bb731); 215 | public static final BiomeGenBase desert = (new BiomeGenDesert()).setColor(0xfa9418).setBiomeName("Desert").setDisableRain(); 216 | public static final BiomeGenBase plains = (new BiomeGenDesert()).setColor(0xffd910).setBiomeName("Plains"); 217 | public static final BiomeGenBase iceDesert = (new BiomeGenDesert()).setColor(0xffed93).setBiomeName("Ice Desert").setEnableSnow().setDisableRain().func_4124_a(0xc4d339); 218 | public static final BiomeGenBase tundra = (new BiomeGenBase()).setColor(0x57ebf9).setBiomeName("Tundra").setEnableSnow().func_4124_a(0xc4d339); 219 | public static final BiomeGenBase hell = (new BiomeGenHell()).setColor(0xff0000).setBiomeName("Hell").setDisableRain(); 220 | public static final BiomeGenBase sky = (new BiomeGenSky()).setColor(0x8080ff).setBiomeName("Sky").setDisableRain(); 221 | public String biomeName; 222 | public int color; 223 | public byte topBlock; 224 | public byte fillerBlock; 225 | public int field_6502_q; 226 | protected List spawnableMonsterList; 227 | protected List spawnableCreatureList; 228 | protected List spawnableWaterCreatureList; 229 | private boolean enableSnow; 230 | private boolean enableRain; 231 | private static BiomeGenBase biomeLookupTable[] = new BiomeGenBase[4096]; 232 | 233 | static 234 | { 235 | generateBiomeLookup(); 236 | } 237 | } 238 | -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/BlockGrass.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // Block, Material, IBlockAccess, WorldChunkManager, 11 | // ColorizerGrass, World 12 | 13 | public class BlockGrass extends Block 14 | { 15 | 16 | protected BlockGrass(int i) 17 | { 18 | super(i, Material.grassMaterial); 19 | blockIndexInTexture = 3; 20 | setTickOnLoad(true); 21 | } 22 | 23 | public int getBlockTextureFromSideAndMetadata(int i, int j) 24 | { 25 | if(i == 1) 26 | { 27 | return 0; 28 | } 29 | return i != 0 ? 3 : 2; 30 | } 31 | 32 | public int getBlockTexture(IBlockAccess iblockaccess, int i, int j, int k, int l) 33 | { 34 | if(l == 1) 35 | { 36 | return 0; 37 | } 38 | if(l == 0) 39 | { 40 | return 2; 41 | } 42 | Material material = iblockaccess.getBlockMaterial(i, j + 1, k); 43 | return material != Material.snow && material != Material.builtSnow ? 3 : 68; 44 | } 45 | 46 | public int func_35274_i() 47 | { 48 | double d = 0.5D; 49 | double d1 = 1.0D; 50 | return ColorizerGrass.getGrassColor(d, d1); 51 | } 52 | 53 | public int getRenderColor(int i) 54 | { 55 | return func_35274_i(); 56 | } 57 | 58 | public int colorMultiplier(IBlockAccess iblockaccess, int i, int j, int k) 59 | { 60 | iblockaccess.getWorldChunkManager().func_4069_a(i, k, 1, 1); 61 | double d = iblockaccess.getWorldChunkManager().temperature[0]; 62 | double d1 = iblockaccess.getWorldChunkManager().humidity[0]; 63 | return ColorizerGrass.getGrassColor(d, d1); 64 | } 65 | 66 | public void updateTick(World world, int i, int j, int k, Random random) 67 | { 68 | if(world.multiplayerWorld) 69 | { 70 | return; 71 | } 72 | if(world.getBlockLightValue(i, j + 1, k) < 4 && Block.lightOpacity[world.getBlockId(i, j + 1, k)] > 2) 73 | { 74 | if(random.nextInt(4) != 0) 75 | { 76 | return; 77 | } 78 | world.setBlockWithNotify(i, j, k, Block.dirt.blockID); 79 | } else 80 | if(world.getBlockLightValue(i, j + 1, k) >= 9) 81 | { 82 | int l = (i + random.nextInt(3)) - 1; 83 | int i1 = (j + random.nextInt(5)) - 3; 84 | int j1 = (k + random.nextInt(3)) - 1; 85 | int k1 = world.getBlockId(l, i1 + 1, j1); 86 | if(world.getBlockId(l, i1, j1) == Block.dirt.blockID && world.getBlockLightValue(l, i1 + 1, j1) >= 4 && Block.lightOpacity[k1] <= 2) 87 | { 88 | world.setBlockWithNotify(l, i1, j1, Block.grass.blockID); 89 | } 90 | } 91 | } 92 | 93 | public int idDropped(int i, Random random) 94 | { 95 | return Block.dirt.idDropped(0, random); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/EntityEnderman.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/EntityEnderman.class -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/EntityList.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.io.PrintStream; 8 | import java.lang.reflect.Constructor; 9 | import java.util.HashMap; 10 | import java.util.Map; 11 | 12 | // Referenced classes of package net.minecraft.src: 13 | // World, Entity, NBTTagCompound, EntityArrow, 14 | // EntitySnowball, EntityItem, EntityPainting, EntityLiving, 15 | // EntityMob, EntityCreeper, EntitySkeleton, EntitySpider, 16 | // EntityGiantZombie, EntityZombie, EntitySlime, EntityGhast, 17 | // EntityPigZombie, EntityPig, EntitySheep, EntityCow, 18 | // EntityChicken, EntitySquid, EntityWolf, EntityTNTPrimed, 19 | // EntityFallingSand, EntityMinecart, EntityBoat 20 | 21 | public class EntityList 22 | { 23 | 24 | public EntityList() 25 | { 26 | } 27 | 28 | private static void addMapping(Class class1, String s, int i) 29 | { 30 | stringToClassMapping.put(s, class1); 31 | classToStringMapping.put(class1, s); 32 | IDtoClassMapping.put(Integer.valueOf(i), class1); 33 | classToIDMapping.put(class1, Integer.valueOf(i)); 34 | } 35 | 36 | public static Entity createEntityInWorld(String s, World world) 37 | { 38 | Entity entity = null; 39 | try 40 | { 41 | Class class1 = (Class)stringToClassMapping.get(s); 42 | if(class1 != null) 43 | { 44 | entity = (Entity)class1.getConstructor(new Class[] { 45 | net.minecraft.src.World.class 46 | }).newInstance(new Object[] { 47 | world 48 | }); 49 | } 50 | } 51 | catch(Exception exception) 52 | { 53 | exception.printStackTrace(); 54 | } 55 | return entity; 56 | } 57 | 58 | public static Entity createEntityFromNBT(NBTTagCompound nbttagcompound, World world) 59 | { 60 | Entity entity = null; 61 | try 62 | { 63 | Class class1 = (Class)stringToClassMapping.get(nbttagcompound.getString("id")); 64 | if(class1 != null) 65 | { 66 | entity = (Entity)class1.getConstructor(new Class[] { 67 | net.minecraft.src.World.class 68 | }).newInstance(new Object[] { 69 | world 70 | }); 71 | } 72 | } 73 | catch(Exception exception) 74 | { 75 | exception.printStackTrace(); 76 | } 77 | if(entity != null) 78 | { 79 | entity.readFromNBT(nbttagcompound); 80 | } else 81 | { 82 | System.out.println((new StringBuilder()).append("Skipping Entity with id ").append(nbttagcompound.getString("id")).toString()); 83 | } 84 | return entity; 85 | } 86 | 87 | public static Entity createEntity(int i, World world) 88 | { 89 | Entity entity = null; 90 | try 91 | { 92 | Class class1 = (Class)IDtoClassMapping.get(Integer.valueOf(i)); 93 | if(class1 != null) 94 | { 95 | entity = (Entity)class1.getConstructor(new Class[] { 96 | net.minecraft.src.World.class 97 | }).newInstance(new Object[] { 98 | world 99 | }); 100 | } 101 | } 102 | catch(Exception exception) 103 | { 104 | exception.printStackTrace(); 105 | } 106 | if(entity == null) 107 | { 108 | System.out.println((new StringBuilder()).append("Skipping Entity with id ").append(i).toString()); 109 | } 110 | return entity; 111 | } 112 | 113 | public static int getEntityID(Entity entity) 114 | { 115 | return ((Integer)classToIDMapping.get(entity.getClass())).intValue(); 116 | } 117 | 118 | public static String getEntityString(Entity entity) 119 | { 120 | return (String)classToStringMapping.get(entity.getClass()); 121 | } 122 | 123 | private static Map stringToClassMapping = new HashMap(); 124 | private static Map classToStringMapping = new HashMap(); 125 | private static Map IDtoClassMapping = new HashMap(); 126 | private static Map classToIDMapping = new HashMap(); 127 | 128 | static 129 | { 130 | addMapping(net.minecraft.src.EntityArrow.class, "Arrow", 10); 131 | addMapping(net.minecraft.src.EntitySnowball.class, "Snowball", 11); 132 | addMapping(net.minecraft.src.EntityItem.class, "Item", 1); 133 | addMapping(net.minecraft.src.EntityPainting.class, "Painting", 9); 134 | addMapping(net.minecraft.src.EntityLiving.class, "Mob", 48); 135 | addMapping(net.minecraft.src.EntityMob.class, "Monster", 49); 136 | addMapping(net.minecraft.src.EntityCreeper.class, "Creeper", 50); 137 | addMapping(net.minecraft.src.EntitySkeleton.class, "Skeleton", 51); 138 | addMapping(net.minecraft.src.EntitySpider.class, "Spider", 52); 139 | addMapping(net.minecraft.src.EntityGiantZombie.class, "Giant", 53); 140 | addMapping(net.minecraft.src.EntityZombie.class, "Zombie", 54); 141 | addMapping(net.minecraft.src.EntitySlime.class, "Slime", 55); 142 | addMapping(net.minecraft.src.EntityGhast.class, "Ghast", 56); 143 | addMapping(net.minecraft.src.EntityPigZombie.class, "PigZombie", 57); 144 | addMapping(net.minecraft.src.EntityEnderman.class, "Enderman", 58); 145 | addMapping(net.minecraft.src.EntityPig.class, "Pig", 90); 146 | addMapping(net.minecraft.src.EntitySheep.class, "Sheep", 91); 147 | addMapping(net.minecraft.src.EntityCow.class, "Cow", 92); 148 | addMapping(net.minecraft.src.EntityChicken.class, "Chicken", 93); 149 | addMapping(net.minecraft.src.EntitySquid.class, "Squid", 94); 150 | addMapping(net.minecraft.src.EntityWolf.class, "Wolf", 95); 151 | addMapping(net.minecraft.src.EntityTNTPrimed.class, "PrimedTnt", 20); 152 | addMapping(net.minecraft.src.EntityFallingSand.class, "FallingSand", 21); 153 | addMapping(net.minecraft.src.EntityMinecart.class, "Minecart", 40); 154 | addMapping(net.minecraft.src.EntityBoat.class, "Boat", 41); 155 | } 156 | } 157 | -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/ModelEnderman.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/ModelEnderman.class -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/ModelEnderman.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode fieldsfirst 4 | 5 | package net.minecraft.src; 6 | 7 | 8 | // Referenced classes of package net.minecraft.src: 9 | // ModelBiped, ModelRenderer 10 | 11 | public class ModelEnderman extends ModelBiped 12 | { 13 | 14 | public boolean isCarrying; 15 | public boolean isAttacking; 16 | 17 | public ModelEnderman() 18 | { 19 | super(0.0F, -14F); 20 | isCarrying = false; 21 | isAttacking = false; 22 | float f = -14F; 23 | float f1 = 0.0F; 24 | bipedHeadwear = new ModelRenderer(0, 16); 25 | bipedHeadwear.addBox(-4F, -8F, -4F, 8, 8, 8, f1 - 0.5F); 26 | bipedHeadwear.setRotationPoint(0.0F, 0.0F + f, 0.0F); 27 | bipedBody = new ModelRenderer(32, 16); 28 | bipedBody.addBox(-4F, 0.0F, -2F, 8, 12, 4, f1); 29 | bipedBody.setRotationPoint(0.0F, 0.0F + f, 0.0F); 30 | bipedRightArm = new ModelRenderer(56, 0); 31 | bipedRightArm.addBox(-1F, -2F, -1F, 2, 30, 2, f1); 32 | bipedRightArm.setRotationPoint(-3F, 2.0F + f, 0.0F); 33 | bipedLeftArm = new ModelRenderer(56, 0); 34 | bipedLeftArm.mirror = true; 35 | bipedLeftArm.addBox(-1F, -2F, -1F, 2, 30, 2, f1); 36 | bipedLeftArm.setRotationPoint(5F, 2.0F + f, 0.0F); 37 | bipedRightLeg = new ModelRenderer(56, 0); 38 | bipedRightLeg.addBox(-1F, 0.0F, -1F, 2, 30, 2, f1); 39 | bipedRightLeg.setRotationPoint(-2F, 12F + f, 0.0F); 40 | bipedLeftLeg = new ModelRenderer(56, 0); 41 | bipedLeftLeg.mirror = true; 42 | bipedLeftLeg.addBox(-1F, 0.0F, -1F, 2, 30, 2, f1); 43 | bipedLeftLeg.setRotationPoint(2.0F, 12F + f, 0.0F); 44 | } 45 | 46 | public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) 47 | { 48 | super.setRotationAngles(f, f1, f2, f3, f4, f5); 49 | bipedHead.showModel = true; 50 | float f6 = -14F; 51 | bipedBody.rotateAngleX = 0.0F; 52 | bipedBody.rotationPointY = f6; 53 | bipedBody.rotationPointZ = -0F; 54 | bipedRightLeg.rotateAngleX -= 0.0F; 55 | bipedLeftLeg.rotateAngleX -= 0.0F; 56 | bipedRightArm.rotateAngleX *= 0.5D; 57 | bipedLeftArm.rotateAngleX *= 0.5D; 58 | bipedRightLeg.rotateAngleX *= 0.5D; 59 | bipedLeftLeg.rotateAngleX *= 0.5D; 60 | float f7 = 0.4F; 61 | if(bipedRightArm.rotateAngleX > f7) 62 | { 63 | bipedRightArm.rotateAngleX = f7; 64 | } 65 | if(bipedLeftArm.rotateAngleX > f7) 66 | { 67 | bipedLeftArm.rotateAngleX = f7; 68 | } 69 | if(bipedRightArm.rotateAngleX < -f7) 70 | { 71 | bipedRightArm.rotateAngleX = -f7; 72 | } 73 | if(bipedLeftArm.rotateAngleX < -f7) 74 | { 75 | bipedLeftArm.rotateAngleX = -f7; 76 | } 77 | if(bipedRightLeg.rotateAngleX > f7) 78 | { 79 | bipedRightLeg.rotateAngleX = f7; 80 | } 81 | if(bipedLeftLeg.rotateAngleX > f7) 82 | { 83 | bipedLeftLeg.rotateAngleX = f7; 84 | } 85 | if(bipedRightLeg.rotateAngleX < -f7) 86 | { 87 | bipedRightLeg.rotateAngleX = -f7; 88 | } 89 | if(bipedLeftLeg.rotateAngleX < -f7) 90 | { 91 | bipedLeftLeg.rotateAngleX = -f7; 92 | } 93 | if(isCarrying) 94 | { 95 | bipedRightArm.rotateAngleX = -0.5F; 96 | bipedLeftArm.rotateAngleX = -0.5F; 97 | bipedRightArm.rotateAngleZ = 0.05F; 98 | bipedLeftArm.rotateAngleZ = -0.05F; 99 | } 100 | bipedRightArm.rotationPointZ = 0.0F; 101 | bipedLeftArm.rotationPointZ = 0.0F; 102 | bipedRightLeg.rotationPointZ = 0.0F; 103 | bipedLeftLeg.rotationPointZ = 0.0F; 104 | bipedRightLeg.rotationPointY = 9F + f6; 105 | bipedLeftLeg.rotationPointY = 9F + f6; 106 | bipedHead.rotationPointZ = -0F; 107 | bipedHead.rotationPointY = f6 + 1.0F; 108 | bipedHeadwear.rotationPointX = bipedHead.rotationPointX; 109 | bipedHeadwear.rotationPointY = bipedHead.rotationPointY; 110 | bipedHeadwear.rotationPointZ = bipedHead.rotationPointZ; 111 | bipedHeadwear.rotateAngleX = bipedHead.rotateAngleX; 112 | bipedHeadwear.rotateAngleY = bipedHead.rotateAngleY; 113 | bipedHeadwear.rotateAngleZ = bipedHead.rotateAngleZ; 114 | if(isAttacking) 115 | { 116 | float f8 = 1.0F; 117 | bipedHead.rotationPointY -= f8 * 5F; 118 | } 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/RenderEnderman.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/RenderEnderman.class -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/RenderEnderman.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode fieldsfirst 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | import org.lwjgl.opengl.GL11; 9 | 10 | // Referenced classes of package net.minecraft.src: 11 | // RenderLiving, ModelEnderman, EntityEnderman, OpenGlHelper, 12 | // Block, RenderBlocks, EntityLiving, Entity 13 | 14 | public class RenderEnderman extends RenderLiving 15 | { 16 | 17 | private ModelEnderman endermanModel; 18 | private Random rnd; 19 | 20 | public RenderEnderman() 21 | { 22 | super(new ModelEnderman(), 0.5F); 23 | rnd = new Random(); 24 | endermanModel = (ModelEnderman)super.mainModel; 25 | setRenderPassModel(endermanModel); 26 | } 27 | 28 | public void renderEnderman(EntityEnderman entityenderman, double d, double d1, double d2, 29 | float f, float f1) 30 | { 31 | endermanModel.isCarrying = entityenderman.getCarried() > 0; 32 | endermanModel.isAttacking = entityenderman.isAttacking; 33 | if(entityenderman.isAttacking) 34 | { 35 | double d3 = 0.02D; 36 | d += rnd.nextGaussian() * d3; 37 | d2 += rnd.nextGaussian() * d3; 38 | } 39 | super.doRenderLiving(entityenderman, d, d1, d2, f, f1); 40 | } 41 | 42 | protected void renderCarrying(EntityEnderman entityenderman, float f) 43 | { 44 | super.renderEquippedItems(entityenderman, f); 45 | if(entityenderman.getCarried() > 0) 46 | { 47 | GL11.glEnable(32826 /*GL_RESCALE_NORMAL_EXT*/); 48 | GL11.glPushMatrix(); 49 | float f1 = 0.5F; 50 | GL11.glTranslatef(0.0F, 0.6875F, -0.75F); 51 | f1 *= 1.0F; 52 | GL11.glRotatef(20F, 1.0F, 0.0F, 0.0F); 53 | GL11.glRotatef(45F, 0.0F, 1.0F, 0.0F); 54 | GL11.glScalef(f1, -f1, f1); 55 | loadTexture("/terrain.png"); 56 | (new RenderBlocks()).renderBlockOnInventory(Block.blocksList[entityenderman.getCarried()], entityenderman.getCarryingData(), entityenderman.getEntityBrightness(f)); 57 | GL11.glPopMatrix(); 58 | GL11.glDisable(32826 /*GL_RESCALE_NORMAL_EXT*/); 59 | } 60 | } 61 | 62 | protected boolean renderEyes(EntityEnderman entityenderman, int i, float f) 63 | { 64 | if(i != 0) 65 | { 66 | return false; 67 | } else 68 | { 69 | loadTexture("/mob/enderman_eyes.png"); 70 | GL11.glEnable(3042 /*GL_BLEND*/); 71 | GL11.glDisable(3008 /*GL_ALPHA_TEST*/); 72 | GL11.glBlendFunc(770, 771); 73 | GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); 74 | return true; 75 | } 76 | } 77 | 78 | protected boolean shouldRenderPass(EntityLiving entityliving, int i, float f) 79 | { 80 | return renderEyes((EntityEnderman)entityliving, i, f); 81 | } 82 | 83 | protected void renderEquippedItems(EntityLiving entityliving, float f) 84 | { 85 | renderCarrying((EntityEnderman)entityliving, f); 86 | } 87 | 88 | public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2, 89 | float f, float f1) 90 | { 91 | renderEnderman((EntityEnderman)entityliving, d, d1, d2, f, f1); 92 | } 93 | 94 | public void doRender(Entity entity, double d, double d1, double d2, 95 | float f, float f1) 96 | { 97 | renderEnderman((EntityEnderman)entity, d, d1, d2, f, f1); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/RenderManager.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.*; 8 | import org.lwjgl.opengl.GL11; 9 | 10 | // Referenced classes of package net.minecraft.src: 11 | // EntitySpider, RenderSpider, EntityPig, RenderPig, 12 | // ModelPig, EntitySheep, RenderSheep, ModelSheep2, 13 | // ModelSheep1, EntityCow, RenderCow, ModelCow, 14 | // EntityWolf, RenderWolf, ModelWolf, EntityChicken, 15 | // RenderChicken, ModelChicken, EntityCreeper, RenderCreeper, 16 | // EntitySkeleton, RenderBiped, ModelSkeleton, EntityZombie, 17 | // ModelZombie, EntitySlime, RenderSlime, ModelSlime, 18 | // EntityPlayer, RenderPlayer, EntityGiantZombie, RenderGiantZombie, 19 | // EntityGhast, RenderGhast, EntitySquid, RenderSquid, 20 | // ModelSquid, EntityLiving, RenderLiving, ModelBiped, 21 | // Entity, RenderEntity, EntityPainting, RenderPainting, 22 | // EntityArrow, RenderArrow, EntitySnowball, RenderSnowball, 23 | // Item, EntityEgg, EntityFireball, RenderFireball, 24 | // EntityItem, RenderItem, EntityTNTPrimed, RenderTNTPrimed, 25 | // EntityFallingSand, RenderFallingSand, EntityMinecart, RenderMinecart, 26 | // EntityBoat, RenderBoat, EntityFish, RenderFish, 27 | // EntityLightningBolt, RenderLightningBolt, Render, MathHelper, 28 | // World, Block, FontRenderer, RenderEngine, 29 | // ItemRenderer, GameSettings 30 | 31 | public class RenderManager 32 | { 33 | 34 | private RenderManager() 35 | { 36 | entityRenderMap = new HashMap(); 37 | entityRenderMap.put(net.minecraft.src.EntitySpider.class, new RenderSpider()); 38 | entityRenderMap.put(net.minecraft.src.EntityPig.class, new RenderPig(new ModelPig(), new ModelPig(0.5F), 0.7F)); 39 | entityRenderMap.put(net.minecraft.src.EntitySheep.class, new RenderSheep(new ModelSheep2(), new ModelSheep1(), 0.7F)); 40 | entityRenderMap.put(net.minecraft.src.EntityCow.class, new RenderCow(new ModelCow(), 0.7F)); 41 | entityRenderMap.put(net.minecraft.src.EntityWolf.class, new RenderWolf(new ModelWolf(), 0.5F)); 42 | entityRenderMap.put(net.minecraft.src.EntityChicken.class, new RenderChicken(new ModelChicken(), 0.3F)); 43 | entityRenderMap.put(net.minecraft.src.EntityCreeper.class, new RenderCreeper()); 44 | entityRenderMap.put(net.minecraft.src.EntityEnderman.class, new RenderEnderman()); 45 | entityRenderMap.put(net.minecraft.src.EntitySkeleton.class, new RenderBiped(new ModelSkeleton(), 0.5F)); 46 | entityRenderMap.put(net.minecraft.src.EntityZombie.class, new RenderBiped(new ModelZombie(), 0.5F)); 47 | entityRenderMap.put(net.minecraft.src.EntitySlime.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F)); 48 | entityRenderMap.put(net.minecraft.src.EntityPlayer.class, new RenderPlayer()); 49 | entityRenderMap.put(net.minecraft.src.EntityGiantZombie.class, new RenderGiantZombie(new ModelZombie(), 0.5F, 6F)); 50 | entityRenderMap.put(net.minecraft.src.EntityGhast.class, new RenderGhast()); 51 | entityRenderMap.put(net.minecraft.src.EntitySquid.class, new RenderSquid(new ModelSquid(), 0.7F)); 52 | entityRenderMap.put(net.minecraft.src.EntityLiving.class, new RenderLiving(new ModelBiped(), 0.5F)); 53 | entityRenderMap.put(net.minecraft.src.Entity.class, new RenderEntity()); 54 | entityRenderMap.put(net.minecraft.src.EntityPainting.class, new RenderPainting()); 55 | entityRenderMap.put(net.minecraft.src.EntityArrow.class, new RenderArrow()); 56 | entityRenderMap.put(net.minecraft.src.EntitySnowball.class, new RenderSnowball(Item.snowball.getIconFromDamage(0))); 57 | entityRenderMap.put(net.minecraft.src.EntityEgg.class, new RenderSnowball(Item.egg.getIconFromDamage(0))); 58 | entityRenderMap.put(net.minecraft.src.EntityFireball.class, new RenderFireball()); 59 | entityRenderMap.put(net.minecraft.src.EntityItem.class, new RenderItem()); 60 | entityRenderMap.put(net.minecraft.src.EntityTNTPrimed.class, new RenderTNTPrimed()); 61 | entityRenderMap.put(net.minecraft.src.EntityFallingSand.class, new RenderFallingSand()); 62 | entityRenderMap.put(net.minecraft.src.EntityMinecart.class, new RenderMinecart()); 63 | entityRenderMap.put(net.minecraft.src.EntityBoat.class, new RenderBoat()); 64 | entityRenderMap.put(net.minecraft.src.EntityFish.class, new RenderFish()); 65 | entityRenderMap.put(net.minecraft.src.EntityLightningBolt.class, new RenderLightningBolt()); 66 | Render render; 67 | for(Iterator iterator = entityRenderMap.values().iterator(); iterator.hasNext(); render.setRenderManager(this)) 68 | { 69 | render = (Render)iterator.next(); 70 | } 71 | 72 | } 73 | 74 | public Render getEntityClassRenderObject(Class class1) 75 | { 76 | Render render = (Render)entityRenderMap.get(class1); 77 | if(render == null && class1 != (net.minecraft.src.Entity.class)) 78 | { 79 | render = getEntityClassRenderObject(class1.getSuperclass()); 80 | entityRenderMap.put(class1, render); 81 | } 82 | return render; 83 | } 84 | 85 | public Render getEntityRenderObject(Entity entity) 86 | { 87 | return getEntityClassRenderObject(entity.getClass()); 88 | } 89 | 90 | public void cacheActiveRenderInfo(World world, RenderEngine renderengine, FontRenderer fontrenderer, EntityLiving entityliving, GameSettings gamesettings, float f) 91 | { 92 | worldObj = world; 93 | renderEngine = renderengine; 94 | options = gamesettings; 95 | livingPlayer = entityliving; 96 | fontRenderer = fontrenderer; 97 | if(entityliving.isPlayerSleeping()) 98 | { 99 | int i = world.getBlockId(MathHelper.floor_double(entityliving.posX), MathHelper.floor_double(entityliving.posY), MathHelper.floor_double(entityliving.posZ)); 100 | if(i == Block.blockBed.blockID) 101 | { 102 | int j = world.getBlockMetadata(MathHelper.floor_double(entityliving.posX), MathHelper.floor_double(entityliving.posY), MathHelper.floor_double(entityliving.posZ)); 103 | int k = j & 3; 104 | playerViewY = k * 90 + 180; 105 | playerViewX = 0.0F; 106 | } 107 | } else 108 | { 109 | playerViewY = entityliving.prevRotationYaw + (entityliving.rotationYaw - entityliving.prevRotationYaw) * f; 110 | playerViewX = entityliving.prevRotationPitch + (entityliving.rotationPitch - entityliving.prevRotationPitch) * f; 111 | } 112 | field_1222_l = entityliving.lastTickPosX + (entityliving.posX - entityliving.lastTickPosX) * (double)f; 113 | field_1221_m = entityliving.lastTickPosY + (entityliving.posY - entityliving.lastTickPosY) * (double)f; 114 | field_1220_n = entityliving.lastTickPosZ + (entityliving.posZ - entityliving.lastTickPosZ) * (double)f; 115 | } 116 | 117 | public void renderEntity(Entity entity, float f) 118 | { 119 | double d = entity.lastTickPosX + (entity.posX - entity.lastTickPosX) * (double)f; 120 | double d1 = entity.lastTickPosY + (entity.posY - entity.lastTickPosY) * (double)f; 121 | double d2 = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ) * (double)f; 122 | float f1 = entity.prevRotationYaw + (entity.rotationYaw - entity.prevRotationYaw) * f; 123 | float f2 = entity.getEntityBrightness(f); 124 | GL11.glColor3f(f2, f2, f2); 125 | renderEntityWithPosYaw(entity, d - renderPosX, d1 - renderPosY, d2 - renderPosZ, f1, f); 126 | } 127 | 128 | public void renderEntityWithPosYaw(Entity entity, double d, double d1, double d2, 129 | float f, float f1) 130 | { 131 | Render render = getEntityRenderObject(entity); 132 | if(render != null) 133 | { 134 | render.doRender(entity, d, d1, d2, f, f1); 135 | render.doRenderShadowAndFire(entity, d, d1, d2, f, f1); 136 | } 137 | } 138 | 139 | public void func_852_a(World world) 140 | { 141 | worldObj = world; 142 | } 143 | 144 | public double func_851_a(double d, double d1, double d2) 145 | { 146 | double d3 = d - field_1222_l; 147 | double d4 = d1 - field_1221_m; 148 | double d5 = d2 - field_1220_n; 149 | return d3 * d3 + d4 * d4 + d5 * d5; 150 | } 151 | 152 | public FontRenderer getFontRenderer() 153 | { 154 | return fontRenderer; 155 | } 156 | 157 | private Map entityRenderMap; 158 | public static RenderManager instance = new RenderManager(); 159 | private FontRenderer fontRenderer; 160 | public static double renderPosX; 161 | public static double renderPosY; 162 | public static double renderPosZ; 163 | public RenderEngine renderEngine; 164 | public ItemRenderer itemRenderer; 165 | public World worldObj; 166 | public EntityLiving livingPlayer; 167 | public float playerViewY; 168 | public float playerViewX; 169 | public GameSettings options; 170 | public double field_1222_l; 171 | public double field_1221_m; 172 | public double field_1220_n; 173 | 174 | } 175 | -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/Vec3D.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | // Referenced classes of package net.minecraft.src: 11 | // MathHelper 12 | 13 | public class Vec3D 14 | { 15 | 16 | public static Vec3D createVectorHelper(double d, double d1, double d2) 17 | { 18 | return new Vec3D(d, d1, d2); 19 | } 20 | 21 | public static void func_28215_a() 22 | { 23 | vectorList.clear(); 24 | nextVector = 0; 25 | } 26 | 27 | public static void initialize() 28 | { 29 | nextVector = 0; 30 | } 31 | 32 | public static Vec3D createVector(double d, double d1, double d2) 33 | { 34 | if(nextVector >= vectorList.size()) 35 | { 36 | vectorList.add(createVectorHelper(0.0D, 0.0D, 0.0D)); 37 | } 38 | return ((Vec3D)vectorList.get(nextVector++)).setComponents(d, d1, d2); 39 | } 40 | 41 | private Vec3D(double d, double d1, double d2) 42 | { 43 | if(d == -0D) 44 | { 45 | d = 0.0D; 46 | } 47 | if(d1 == -0D) 48 | { 49 | d1 = 0.0D; 50 | } 51 | if(d2 == -0D) 52 | { 53 | d2 = 0.0D; 54 | } 55 | xCoord = d; 56 | yCoord = d1; 57 | zCoord = d2; 58 | } 59 | 60 | private Vec3D setComponents(double d, double d1, double d2) 61 | { 62 | xCoord = d; 63 | yCoord = d1; 64 | zCoord = d2; 65 | return this; 66 | } 67 | 68 | public Vec3D subtract(Vec3D vec3d) 69 | { 70 | return createVector(vec3d.xCoord - xCoord, vec3d.yCoord - yCoord, vec3d.zCoord - zCoord); 71 | } 72 | 73 | public Vec3D normalize() 74 | { 75 | double d = MathHelper.sqrt_double(xCoord * xCoord + yCoord * yCoord + zCoord * zCoord); 76 | if(d < 0.0001D) 77 | { 78 | return createVector(0.0D, 0.0D, 0.0D); 79 | } else 80 | { 81 | return createVector(xCoord / d, yCoord / d, zCoord / d); 82 | } 83 | } 84 | 85 | public double dotProduct(Vec3D vec3d) 86 | { 87 | return xCoord * vec3d.xCoord + yCoord * vec3d.yCoord + zCoord * vec3d.zCoord; 88 | } 89 | 90 | public Vec3D crossProduct(Vec3D vec3d) 91 | { 92 | return createVector(yCoord * vec3d.zCoord - zCoord * vec3d.yCoord, zCoord * vec3d.xCoord - xCoord * vec3d.zCoord, xCoord * vec3d.yCoord - yCoord * vec3d.xCoord); 93 | } 94 | 95 | public Vec3D addVector(double d, double d1, double d2) 96 | { 97 | return createVector(xCoord + d, yCoord + d1, zCoord + d2); 98 | } 99 | 100 | public double distanceTo(Vec3D vec3d) 101 | { 102 | double d = vec3d.xCoord - xCoord; 103 | double d1 = vec3d.yCoord - yCoord; 104 | double d2 = vec3d.zCoord - zCoord; 105 | return (double)MathHelper.sqrt_double(d * d + d1 * d1 + d2 * d2); 106 | } 107 | 108 | public double squareDistanceTo(Vec3D vec3d) 109 | { 110 | double d = vec3d.xCoord - xCoord; 111 | double d1 = vec3d.yCoord - yCoord; 112 | double d2 = vec3d.zCoord - zCoord; 113 | return d * d + d1 * d1 + d2 * d2; 114 | } 115 | 116 | public double squareDistanceTo(double d, double d1, double d2) 117 | { 118 | double d3 = d - xCoord; 119 | double d4 = d1 - yCoord; 120 | double d5 = d2 - zCoord; 121 | return d3 * d3 + d4 * d4 + d5 * d5; 122 | } 123 | 124 | public double lengthVector() 125 | { 126 | return (double)MathHelper.sqrt_double(xCoord * xCoord + yCoord * yCoord + zCoord * zCoord); 127 | } 128 | 129 | public Vec3D getIntermediateWithXValue(Vec3D vec3d, double d) 130 | { 131 | double d1 = vec3d.xCoord - xCoord; 132 | double d2 = vec3d.yCoord - yCoord; 133 | double d3 = vec3d.zCoord - zCoord; 134 | if(d1 * d1 < 1.0000000116860974E-007D) 135 | { 136 | return null; 137 | } 138 | double d4 = (d - xCoord) / d1; 139 | if(d4 < 0.0D || d4 > 1.0D) 140 | { 141 | return null; 142 | } else 143 | { 144 | return createVector(xCoord + d1 * d4, yCoord + d2 * d4, zCoord + d3 * d4); 145 | } 146 | } 147 | 148 | public Vec3D getIntermediateWithYValue(Vec3D vec3d, double d) 149 | { 150 | double d1 = vec3d.xCoord - xCoord; 151 | double d2 = vec3d.yCoord - yCoord; 152 | double d3 = vec3d.zCoord - zCoord; 153 | if(d2 * d2 < 1.0000000116860974E-007D) 154 | { 155 | return null; 156 | } 157 | double d4 = (d - yCoord) / d2; 158 | if(d4 < 0.0D || d4 > 1.0D) 159 | { 160 | return null; 161 | } else 162 | { 163 | return createVector(xCoord + d1 * d4, yCoord + d2 * d4, zCoord + d3 * d4); 164 | } 165 | } 166 | 167 | public Vec3D getIntermediateWithZValue(Vec3D vec3d, double d) 168 | { 169 | double d1 = vec3d.xCoord - xCoord; 170 | double d2 = vec3d.yCoord - yCoord; 171 | double d3 = vec3d.zCoord - zCoord; 172 | if(d3 * d3 < 1.0000000116860974E-007D) 173 | { 174 | return null; 175 | } 176 | double d4 = (d - zCoord) / d3; 177 | if(d4 < 0.0D || d4 > 1.0D) 178 | { 179 | return null; 180 | } else 181 | { 182 | return createVector(xCoord + d1 * d4, yCoord + d2 * d4, zCoord + d3 * d4); 183 | } 184 | } 185 | 186 | public String toString() 187 | { 188 | return (new StringBuilder()).append("(").append(xCoord).append(", ").append(yCoord).append(", ").append(zCoord).append(")").toString(); 189 | } 190 | 191 | public void rotateAroundX(float f) 192 | { 193 | float f1 = MathHelper.cos(f); 194 | float f2 = MathHelper.sin(f); 195 | double d = xCoord; 196 | double d1 = yCoord * (double)f1 + zCoord * (double)f2; 197 | double d2 = zCoord * (double)f1 - yCoord * (double)f2; 198 | xCoord = d; 199 | yCoord = d1; 200 | zCoord = d2; 201 | } 202 | 203 | public void rotateAroundY(float f) 204 | { 205 | float f1 = MathHelper.cos(f); 206 | float f2 = MathHelper.sin(f); 207 | double d = xCoord * (double)f1 + zCoord * (double)f2; 208 | double d1 = yCoord; 209 | double d2 = zCoord * (double)f1 - xCoord * (double)f2; 210 | xCoord = d; 211 | yCoord = d1; 212 | zCoord = d2; 213 | } 214 | 215 | private static List vectorList = new ArrayList(); 216 | private static int nextVector = 0; 217 | public double xCoord; 218 | public double yCoord; 219 | public double zCoord; 220 | 221 | } 222 | -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/bt.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/bt.class -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/cv.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/cv.class -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/jc.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/jc.class -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/kd.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/kd.class -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/mob/enderman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/mob/enderman.png -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/mob/enderman_eyes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/mob/enderman_eyes.png -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/th.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/th.class -------------------------------------------------------------------------------- /versions/b1.7.3/Enderman-client/wp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Enderman-client/wp.class -------------------------------------------------------------------------------- /versions/b1.7.3/Fence-jump-fix-client/Pathfinder.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | 8 | // Referenced classes of package net.minecraft.src: 9 | // Path, MCHash, PathPoint, Entity, 10 | // AxisAlignedBB, MathHelper, IBlockAccess, Block, 11 | // BlockDoor, Material, PathEntity 12 | 13 | public class Pathfinder 14 | { 15 | 16 | public Pathfinder(IBlockAccess iblockaccess) 17 | { 18 | path = new Path(); 19 | pointMap = new MCHash(); 20 | pathOptions = new PathPoint[32]; 21 | worldMap = iblockaccess; 22 | } 23 | 24 | public PathEntity createEntityPathTo(Entity entity, Entity entity1, float f) 25 | { 26 | return createEntityPathTo(entity, entity1.posX, entity1.boundingBox.minY, entity1.posZ, f); 27 | } 28 | 29 | public PathEntity createEntityPathTo(Entity entity, int i, int j, int k, float f) 30 | { 31 | return createEntityPathTo(entity, (float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, f); 32 | } 33 | 34 | private PathEntity createEntityPathTo(Entity entity, double d, double d1, double d2, 35 | float f) 36 | { 37 | path.clearPath(); 38 | pointMap.clearMap(); 39 | PathPoint pathpoint = openPoint(MathHelper.floor_double(entity.boundingBox.minX), MathHelper.floor_double(entity.boundingBox.minY), MathHelper.floor_double(entity.boundingBox.minZ)); 40 | PathPoint pathpoint1 = openPoint(MathHelper.floor_double(d - (double)(entity.width / 2.0F)), MathHelper.floor_double(d1), MathHelper.floor_double(d2 - (double)(entity.width / 2.0F))); 41 | PathPoint pathpoint2 = new PathPoint(MathHelper.floor_float(entity.width + 1.0F), MathHelper.floor_float(entity.height + 1.0F), MathHelper.floor_float(entity.width + 1.0F)); 42 | PathEntity pathentity = addToPath(entity, pathpoint, pathpoint1, pathpoint2, f); 43 | return pathentity; 44 | } 45 | 46 | private PathEntity addToPath(Entity entity, PathPoint pathpoint, PathPoint pathpoint1, PathPoint pathpoint2, float f) 47 | { 48 | pathpoint.totalPathDistance = 0.0F; 49 | pathpoint.distanceToNext = pathpoint.distanceTo(pathpoint1); 50 | pathpoint.distanceToTarget = pathpoint.distanceToNext; 51 | path.clearPath(); 52 | path.addPoint(pathpoint); 53 | PathPoint pathpoint3 = pathpoint; 54 | while(!path.isPathEmpty()) 55 | { 56 | PathPoint pathpoint4 = path.dequeue(); 57 | if(pathpoint4.equals(pathpoint1)) 58 | { 59 | return createEntityPath(pathpoint, pathpoint1); 60 | } 61 | if(pathpoint4.distanceTo(pathpoint1) < pathpoint3.distanceTo(pathpoint1)) 62 | { 63 | pathpoint3 = pathpoint4; 64 | } 65 | pathpoint4.isFirst = true; 66 | int i = findPathOptions(entity, pathpoint4, pathpoint2, pathpoint1, f); 67 | int j = 0; 68 | while(j < i) 69 | { 70 | PathPoint pathpoint5 = pathOptions[j]; 71 | float f1 = pathpoint4.totalPathDistance + pathpoint4.distanceTo(pathpoint5); 72 | if(!pathpoint5.isAssigned() || f1 < pathpoint5.totalPathDistance) 73 | { 74 | pathpoint5.previous = pathpoint4; 75 | pathpoint5.totalPathDistance = f1; 76 | pathpoint5.distanceToNext = pathpoint5.distanceTo(pathpoint1); 77 | if(pathpoint5.isAssigned()) 78 | { 79 | path.changeDistance(pathpoint5, pathpoint5.totalPathDistance + pathpoint5.distanceToNext); 80 | } else 81 | { 82 | pathpoint5.distanceToTarget = pathpoint5.totalPathDistance + pathpoint5.distanceToNext; 83 | path.addPoint(pathpoint5); 84 | } 85 | } 86 | j++; 87 | } 88 | } 89 | if(pathpoint3 == pathpoint) 90 | { 91 | return null; 92 | } else 93 | { 94 | return createEntityPath(pathpoint, pathpoint3); 95 | } 96 | } 97 | 98 | private int findPathOptions(Entity entity, PathPoint pathpoint, PathPoint pathpoint1, PathPoint pathpoint2, float f) 99 | { 100 | int i = 0; 101 | int j = 0; 102 | if(getVerticalOffset(entity, pathpoint.xCoord, pathpoint.yCoord + 1, pathpoint.zCoord, pathpoint1) == 1) 103 | { 104 | j = 1; 105 | } 106 | PathPoint pathpoint3 = getSafePoint(entity, pathpoint.xCoord, pathpoint.yCoord, pathpoint.zCoord + 1, pathpoint1, j); 107 | PathPoint pathpoint4 = getSafePoint(entity, pathpoint.xCoord - 1, pathpoint.yCoord, pathpoint.zCoord, pathpoint1, j); 108 | PathPoint pathpoint5 = getSafePoint(entity, pathpoint.xCoord + 1, pathpoint.yCoord, pathpoint.zCoord, pathpoint1, j); 109 | PathPoint pathpoint6 = getSafePoint(entity, pathpoint.xCoord, pathpoint.yCoord, pathpoint.zCoord - 1, pathpoint1, j); 110 | if(pathpoint3 != null && !pathpoint3.isFirst && pathpoint3.distanceTo(pathpoint2) < f) 111 | { 112 | pathOptions[i++] = pathpoint3; 113 | } 114 | if(pathpoint4 != null && !pathpoint4.isFirst && pathpoint4.distanceTo(pathpoint2) < f) 115 | { 116 | pathOptions[i++] = pathpoint4; 117 | } 118 | if(pathpoint5 != null && !pathpoint5.isFirst && pathpoint5.distanceTo(pathpoint2) < f) 119 | { 120 | pathOptions[i++] = pathpoint5; 121 | } 122 | if(pathpoint6 != null && !pathpoint6.isFirst && pathpoint6.distanceTo(pathpoint2) < f) 123 | { 124 | pathOptions[i++] = pathpoint6; 125 | } 126 | return i; 127 | } 128 | 129 | private PathPoint getSafePoint(Entity entity, int i, int j, int k, PathPoint pathpoint, int l) 130 | { 131 | PathPoint pathpoint1 = null; 132 | if(getVerticalOffset(entity, i, j, k, pathpoint) == 1) 133 | { 134 | pathpoint1 = openPoint(i, j, k); 135 | } 136 | if(pathpoint1 == null && l > 0 && getVerticalOffset(entity, i, j + l, k, pathpoint) == 1) 137 | { 138 | pathpoint1 = openPoint(i, j + l, k); 139 | j += l; 140 | } 141 | if(pathpoint1 != null) 142 | { 143 | int i1 = 0; 144 | int j1 = 0; 145 | do 146 | { 147 | if(j <= 0 || (j1 = getVerticalOffset(entity, i, j - 1, k, pathpoint)) != 1) 148 | { 149 | break; 150 | } 151 | if(++i1 >= 4) 152 | { 153 | return null; 154 | } 155 | if(--j > 0) 156 | { 157 | pathpoint1 = openPoint(i, j, k); 158 | } 159 | } while(true); 160 | if(j1 == -2) 161 | { 162 | return null; 163 | } 164 | } 165 | return pathpoint1; 166 | } 167 | 168 | private final PathPoint openPoint(int i, int j, int k) 169 | { 170 | int l = PathPoint.func_22329_a(i, j, k); 171 | PathPoint pathpoint = (PathPoint)pointMap.lookup(l); 172 | if(pathpoint == null) 173 | { 174 | pathpoint = new PathPoint(i, j, k); 175 | pointMap.addKey(l, pathpoint); 176 | } 177 | return pathpoint; 178 | } 179 | 180 | private int getVerticalOffset(Entity entity, int i, int j, int k, PathPoint pathpoint) 181 | { 182 | for(int l = i; l < i + pathpoint.xCoord; l++) 183 | { 184 | for(int i1 = j; i1 < j + pathpoint.yCoord; i1++) 185 | { 186 | for(int j1 = k; j1 < k + pathpoint.zCoord; j1++) 187 | { 188 | int k1 = worldMap.getBlockId(l, i1, j1); 189 | if(k1 <= 0) 190 | { 191 | continue; 192 | } 193 | if(k1 == Block.fence.blockID) 194 | { 195 | return -2; 196 | } 197 | if(k1 == Block.doorSteel.blockID || k1 == Block.doorWood.blockID) 198 | { 199 | int l1 = worldMap.getBlockMetadata(l, i1, j1); 200 | if(!BlockDoor.isOpen(l1)) 201 | { 202 | return 0; 203 | } 204 | continue; 205 | } 206 | Material material = Block.blocksList[k1].blockMaterial; 207 | if(material.getIsSolid()) 208 | { 209 | return 0; 210 | } 211 | if(material == Material.water) 212 | { 213 | return -1; 214 | } 215 | if(material == Material.lava) 216 | { 217 | return -2; 218 | } 219 | } 220 | 221 | } 222 | 223 | } 224 | 225 | return 1; 226 | } 227 | 228 | private PathEntity createEntityPath(PathPoint pathpoint, PathPoint pathpoint1) 229 | { 230 | int i = 1; 231 | for(PathPoint pathpoint2 = pathpoint1; pathpoint2.previous != null; pathpoint2 = pathpoint2.previous) 232 | { 233 | i++; 234 | } 235 | 236 | PathPoint apathpoint[] = new PathPoint[i]; 237 | PathPoint pathpoint3 = pathpoint1; 238 | for(apathpoint[--i] = pathpoint3; pathpoint3.previous != null; apathpoint[--i] = pathpoint3) 239 | { 240 | pathpoint3 = pathpoint3.previous; 241 | } 242 | 243 | return new PathEntity(apathpoint); 244 | } 245 | 246 | private IBlockAccess worldMap; 247 | private Path path; 248 | private MCHash pointMap; 249 | private PathPoint pathOptions[]; 250 | } 251 | -------------------------------------------------------------------------------- /versions/b1.7.3/Fence-jump-fix-client/fw.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Fence-jump-fix-client/fw.class -------------------------------------------------------------------------------- /versions/b1.7.3/Fence-jump-fix-server/Pathfinder.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | 8 | // Referenced classes of package net.minecraft.src: 9 | // Path, MCHash, PathPoint, Entity, 10 | // AxisAlignedBB, MathHelper, IBlockAccess, Block, 11 | // BlockDoor, Material, PathEntity 12 | 13 | public class Pathfinder 14 | { 15 | 16 | public Pathfinder(IBlockAccess iblockaccess) 17 | { 18 | path = new Path(); 19 | pointMap = new MCHash(); 20 | pathOptions = new PathPoint[32]; 21 | worldMap = iblockaccess; 22 | } 23 | 24 | public PathEntity createEntityPathTo(Entity entity, Entity entity1, float f) 25 | { 26 | return createEntityPathTo(entity, entity1.posX, entity1.boundingBox.minY, entity1.posZ, f); 27 | } 28 | 29 | public PathEntity createEntityPathTo(Entity entity, int i, int j, int k, float f) 30 | { 31 | return createEntityPathTo(entity, (float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, f); 32 | } 33 | 34 | private PathEntity createEntityPathTo(Entity entity, double d, double d1, double d2, 35 | float f) 36 | { 37 | path.clearPath(); 38 | pointMap.clearMap(); 39 | PathPoint pathpoint = openPoint(MathHelper.floor_double(entity.boundingBox.minX), MathHelper.floor_double(entity.boundingBox.minY), MathHelper.floor_double(entity.boundingBox.minZ)); 40 | PathPoint pathpoint1 = openPoint(MathHelper.floor_double(d - (double)(entity.width / 2.0F)), MathHelper.floor_double(d1), MathHelper.floor_double(d2 - (double)(entity.width / 2.0F))); 41 | PathPoint pathpoint2 = new PathPoint(MathHelper.floor_float(entity.width + 1.0F), MathHelper.floor_float(entity.height + 1.0F), MathHelper.floor_float(entity.width + 1.0F)); 42 | PathEntity pathentity = addToPath(entity, pathpoint, pathpoint1, pathpoint2, f); 43 | return pathentity; 44 | } 45 | 46 | private PathEntity addToPath(Entity entity, PathPoint pathpoint, PathPoint pathpoint1, PathPoint pathpoint2, float f) 47 | { 48 | pathpoint.totalPathDistance = 0.0F; 49 | pathpoint.distanceToNext = pathpoint.distanceTo(pathpoint1); 50 | pathpoint.distanceToTarget = pathpoint.distanceToNext; 51 | path.clearPath(); 52 | path.addPoint(pathpoint); 53 | PathPoint pathpoint3 = pathpoint; 54 | while(!path.isPathEmpty()) 55 | { 56 | PathPoint pathpoint4 = path.dequeue(); 57 | if(pathpoint4.equals(pathpoint1)) 58 | { 59 | return createEntityPath(pathpoint, pathpoint1); 60 | } 61 | if(pathpoint4.distanceTo(pathpoint1) < pathpoint3.distanceTo(pathpoint1)) 62 | { 63 | pathpoint3 = pathpoint4; 64 | } 65 | pathpoint4.isFirst = true; 66 | int i = findPathOptions(entity, pathpoint4, pathpoint2, pathpoint1, f); 67 | int j = 0; 68 | while(j < i) 69 | { 70 | PathPoint pathpoint5 = pathOptions[j]; 71 | float f1 = pathpoint4.totalPathDistance + pathpoint4.distanceTo(pathpoint5); 72 | if(!pathpoint5.isAssigned() || f1 < pathpoint5.totalPathDistance) 73 | { 74 | pathpoint5.previous = pathpoint4; 75 | pathpoint5.totalPathDistance = f1; 76 | pathpoint5.distanceToNext = pathpoint5.distanceTo(pathpoint1); 77 | if(pathpoint5.isAssigned()) 78 | { 79 | path.changeDistance(pathpoint5, pathpoint5.totalPathDistance + pathpoint5.distanceToNext); 80 | } else 81 | { 82 | pathpoint5.distanceToTarget = pathpoint5.totalPathDistance + pathpoint5.distanceToNext; 83 | path.addPoint(pathpoint5); 84 | } 85 | } 86 | j++; 87 | } 88 | } 89 | if(pathpoint3 == pathpoint) 90 | { 91 | return null; 92 | } else 93 | { 94 | return createEntityPath(pathpoint, pathpoint3); 95 | } 96 | } 97 | 98 | private int findPathOptions(Entity entity, PathPoint pathpoint, PathPoint pathpoint1, PathPoint pathpoint2, float f) 99 | { 100 | int i = 0; 101 | int j = 0; 102 | if(getVerticalOffset(entity, pathpoint.xCoord, pathpoint.yCoord + 1, pathpoint.zCoord, pathpoint1) == 1) 103 | { 104 | j = 1; 105 | } 106 | PathPoint pathpoint3 = getSafePoint(entity, pathpoint.xCoord, pathpoint.yCoord, pathpoint.zCoord + 1, pathpoint1, j); 107 | PathPoint pathpoint4 = getSafePoint(entity, pathpoint.xCoord - 1, pathpoint.yCoord, pathpoint.zCoord, pathpoint1, j); 108 | PathPoint pathpoint5 = getSafePoint(entity, pathpoint.xCoord + 1, pathpoint.yCoord, pathpoint.zCoord, pathpoint1, j); 109 | PathPoint pathpoint6 = getSafePoint(entity, pathpoint.xCoord, pathpoint.yCoord, pathpoint.zCoord - 1, pathpoint1, j); 110 | if(pathpoint3 != null && !pathpoint3.isFirst && pathpoint3.distanceTo(pathpoint2) < f) 111 | { 112 | pathOptions[i++] = pathpoint3; 113 | } 114 | if(pathpoint4 != null && !pathpoint4.isFirst && pathpoint4.distanceTo(pathpoint2) < f) 115 | { 116 | pathOptions[i++] = pathpoint4; 117 | } 118 | if(pathpoint5 != null && !pathpoint5.isFirst && pathpoint5.distanceTo(pathpoint2) < f) 119 | { 120 | pathOptions[i++] = pathpoint5; 121 | } 122 | if(pathpoint6 != null && !pathpoint6.isFirst && pathpoint6.distanceTo(pathpoint2) < f) 123 | { 124 | pathOptions[i++] = pathpoint6; 125 | } 126 | return i; 127 | } 128 | 129 | private PathPoint getSafePoint(Entity entity, int i, int j, int k, PathPoint pathpoint, int l) 130 | { 131 | PathPoint pathpoint1 = null; 132 | if(getVerticalOffset(entity, i, j, k, pathpoint) == 1) 133 | { 134 | pathpoint1 = openPoint(i, j, k); 135 | } 136 | if(pathpoint1 == null && l > 0 && getVerticalOffset(entity, i, j + l, k, pathpoint) == 1) 137 | { 138 | pathpoint1 = openPoint(i, j + l, k); 139 | j += l; 140 | } 141 | if(pathpoint1 != null) 142 | { 143 | int i1 = 0; 144 | int j1 = 0; 145 | do 146 | { 147 | if(j <= 0 || (j1 = getVerticalOffset(entity, i, j - 1, k, pathpoint)) != 1) 148 | { 149 | break; 150 | } 151 | if(++i1 >= 4) 152 | { 153 | return null; 154 | } 155 | if(--j > 0) 156 | { 157 | pathpoint1 = openPoint(i, j, k); 158 | } 159 | } while(true); 160 | if(j1 == -2) 161 | { 162 | return null; 163 | } 164 | } 165 | return pathpoint1; 166 | } 167 | 168 | private final PathPoint openPoint(int i, int j, int k) 169 | { 170 | int l = PathPoint.func_22203_a(i, j, k); 171 | PathPoint pathpoint = (PathPoint)pointMap.lookup(l); 172 | if(pathpoint == null) 173 | { 174 | pathpoint = new PathPoint(i, j, k); 175 | pointMap.addKey(l, pathpoint); 176 | } 177 | return pathpoint; 178 | } 179 | 180 | private int getVerticalOffset(Entity entity, int i, int j, int k, PathPoint pathpoint) 181 | { 182 | for(int l = i; l < i + pathpoint.xCoord; l++) 183 | { 184 | for(int i1 = j; i1 < j + pathpoint.yCoord; i1++) 185 | { 186 | for(int j1 = k; j1 < k + pathpoint.zCoord; j1++) 187 | { 188 | int k1 = worldMap.getBlockId(l, i1, j1); 189 | if(k1 <= 0) 190 | { 191 | continue; 192 | } 193 | if(k1 == Block.fence.blockID) 194 | { 195 | return -2; 196 | } 197 | if(k1 == Block.doorSteel.blockID || k1 == Block.doorWood.blockID) 198 | { 199 | int l1 = worldMap.getBlockMetadata(l, i1, j1); 200 | if(!BlockDoor.func_27036_e(l1)) 201 | { 202 | return 0; 203 | } 204 | continue; 205 | } 206 | Material material = Block.blocksList[k1].blockMaterial; 207 | if(material.getIsSolid()) 208 | { 209 | return 0; 210 | } 211 | if(material == Material.water) 212 | { 213 | return -1; 214 | } 215 | if(material == Material.lava) 216 | { 217 | return -2; 218 | } 219 | } 220 | 221 | } 222 | 223 | } 224 | 225 | return 1; 226 | } 227 | 228 | private PathEntity createEntityPath(PathPoint pathpoint, PathPoint pathpoint1) 229 | { 230 | int i = 1; 231 | for(PathPoint pathpoint2 = pathpoint1; pathpoint2.previous != null; pathpoint2 = pathpoint2.previous) 232 | { 233 | i++; 234 | } 235 | 236 | PathPoint apathpoint[] = new PathPoint[i]; 237 | PathPoint pathpoint3 = pathpoint1; 238 | for(apathpoint[--i] = pathpoint3; pathpoint3.previous != null; apathpoint[--i] = pathpoint3) 239 | { 240 | pathpoint3 = pathpoint3.previous; 241 | } 242 | 243 | return new PathEntity(apathpoint); 244 | } 245 | 246 | private IBlockAccess worldMap; 247 | private Path path; 248 | private MCHash pointMap; 249 | private PathPoint pathOptions[]; 250 | } 251 | -------------------------------------------------------------------------------- /versions/b1.7.3/Fence-jump-fix-server/dz.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Fence-jump-fix-server/dz.class -------------------------------------------------------------------------------- /versions/b1.7.3/Fire-spread-client/yq.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Fire-spread-client/yq.class -------------------------------------------------------------------------------- /versions/b1.7.3/Fire-spread-server/BlockFire.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // Block, Material, BlockLeaves, BlockTallGrass, 11 | // World, IBlockAccess, BlockPortal, AxisAlignedBB 12 | 13 | public class BlockFire extends Block 14 | { 15 | 16 | protected BlockFire(int i, int j) 17 | { 18 | super(i, j, Material.fire); 19 | chanceToEncourageFire = new int[256]; 20 | abilityToCatchFire = new int[256]; 21 | setTickOnLoad(true); 22 | } 23 | 24 | public void setFireBurnRates() 25 | { 26 | setBurnRate(Block.planks.blockID, 5, 20); 27 | setBurnRate(Block.fence.blockID, 5, 20); 28 | setBurnRate(Block.stairCompactPlanks.blockID, 5, 20); 29 | setBurnRate(Block.wood.blockID, 5, 5); 30 | setBurnRate(Block.leaves.blockID, 30, 60); 31 | setBurnRate(Block.bookShelf.blockID, 30, 20); 32 | setBurnRate(Block.tnt.blockID, 15, 100); 33 | setBurnRate(Block.tallGrass.blockID, 60, 100); 34 | setBurnRate(Block.cloth.blockID, 30, 60); 35 | } 36 | 37 | private void setBurnRate(int i, int j, int k) 38 | { 39 | chanceToEncourageFire[i] = j; 40 | abilityToCatchFire[i] = k; 41 | } 42 | 43 | public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k) 44 | { 45 | return null; 46 | } 47 | 48 | public boolean isOpaqueCube() 49 | { 50 | return false; 51 | } 52 | 53 | public boolean isACube() 54 | { 55 | return false; 56 | } 57 | 58 | public int quantityDropped(Random random) 59 | { 60 | return 0; 61 | } 62 | 63 | public int tickRate() 64 | { 65 | return 10; 66 | } 67 | 68 | public void updateTick(World world, int i, int j, int k, Random random) 69 | { 70 | boolean flag = world.getBlockId(i, j - 1, k) == Block.bloodStone.blockID; 71 | if(!canPlaceBlockAt(world, i, j, k)) 72 | { 73 | world.setBlockWithNotify(i, j, k, 0); 74 | } 75 | if(!flag && world.func_27068_v() && (world.canLightningStrikeAt(i, j, k) || world.canLightningStrikeAt(i - 1, j, k) || world.canLightningStrikeAt(i + 1, j, k) || world.canLightningStrikeAt(i, j, k - 1) || world.canLightningStrikeAt(i, j, k + 1))) 76 | { 77 | world.setBlockWithNotify(i, j, k, 0); 78 | return; 79 | } 80 | int l = world.getBlockMetadata(i, j, k); 81 | if(l < 15) 82 | { 83 | world.setBlockMetadataWithNotify(i, j, k, l + 1); 84 | world.scheduleUpdateTick(i, j, k, blockID, tickRate()); 85 | } 86 | if(!flag && !func_268_g(world, i, j, k)) 87 | { 88 | if(!world.isBlockNormalCube(i, j - 1, k) || l > 3) 89 | { 90 | world.setBlockWithNotify(i, j, k, 0); 91 | } 92 | return; 93 | } 94 | if(!flag && !canBlockCatchFire(world, i, j - 1, k) && l == 15 && random.nextInt(4) == 0) 95 | { 96 | world.setBlockWithNotify(i, j, k, 0); 97 | return; 98 | } 99 | if(l % 2 == 0 && l > 2) 100 | { 101 | tryToCatchBlockOnFire(world, i + 1, j, k, 300, random, l); 102 | tryToCatchBlockOnFire(world, i - 1, j, k, 300, random, l); 103 | tryToCatchBlockOnFire(world, i, j - 1, k, 250, random, l); 104 | tryToCatchBlockOnFire(world, i, j + 1, k, 250, random, l); 105 | tryToCatchBlockOnFire(world, i, j, k - 1, 300, random, l); 106 | tryToCatchBlockOnFire(world, i, j, k + 1, 300, random, l); 107 | for(int i1 = i - 1; i1 <= i + 1; i1++) 108 | { 109 | for(int j1 = k - 1; j1 <= k + 1; j1++) 110 | { 111 | for(int k1 = j - 1; k1 <= j + 4; k1++) 112 | { 113 | if(i1 == i && k1 == j && j1 == k) 114 | { 115 | continue; 116 | } 117 | int l1 = 100; 118 | if(k1 > j + 1) 119 | { 120 | l1 += (k1 - (j + 1)) * 100; 121 | } 122 | int i2 = getChanceOfNeighborsEncouragingFire(world, i1, k1, j1); 123 | if(i2 > 0 && random.nextInt(l1) <= i2 && (!world.func_27068_v() || !world.canLightningStrikeAt(i1, k1, j1)) && !world.canLightningStrikeAt(i1 - 1, k1, k) && !world.canLightningStrikeAt(i1 + 1, k1, j1) && !world.canLightningStrikeAt(i1, k1, j1 - 1) && !world.canLightningStrikeAt(i1, k1, j1 + 1)) 124 | { 125 | world.setBlockWithNotify(i1, k1, j1, blockID); 126 | } 127 | } 128 | 129 | } 130 | 131 | } 132 | 133 | } 134 | if(l == 15) 135 | { 136 | tryToCatchBlockOnFire(world, i + 1, j, k, 1, random, l); 137 | tryToCatchBlockOnFire(world, i - 1, j, k, 1, random, l); 138 | tryToCatchBlockOnFire(world, i, j - 1, k, 1, random, l); 139 | tryToCatchBlockOnFire(world, i, j + 1, k, 1, random, l); 140 | tryToCatchBlockOnFire(world, i, j, k - 1, 1, random, l); 141 | tryToCatchBlockOnFire(world, i, j, k + 1, 1, random, l); 142 | } 143 | } 144 | 145 | private void tryToCatchBlockOnFire(World world, int i, int j, int k, int l, Random random, int i1) 146 | { 147 | int j1 = abilityToCatchFire[world.getBlockId(i, j, k)]; 148 | if(random.nextInt(l) < j1) 149 | { 150 | boolean flag = world.getBlockId(i, j, k) == Block.tnt.blockID; 151 | if(random.nextInt(2) == 0 && !world.canLightningStrikeAt(i, j, k)) 152 | { 153 | world.setBlockWithNotify(i, j, k, blockID); 154 | } else 155 | { 156 | world.setBlockWithNotify(i, j, k, 0); 157 | } 158 | if(flag) 159 | { 160 | Block.tnt.onBlockDestroyedByPlayer(world, i, j, k, 1); 161 | } 162 | } 163 | } 164 | 165 | private boolean func_268_g(World world, int i, int j, int k) 166 | { 167 | if(canBlockCatchFire(world, i + 1, j, k)) 168 | { 169 | return true; 170 | } 171 | if(canBlockCatchFire(world, i - 1, j, k)) 172 | { 173 | return true; 174 | } 175 | if(canBlockCatchFire(world, i, j - 1, k)) 176 | { 177 | return true; 178 | } 179 | if(canBlockCatchFire(world, i, j + 1, k)) 180 | { 181 | return true; 182 | } 183 | if(canBlockCatchFire(world, i, j, k - 1)) 184 | { 185 | return true; 186 | } 187 | return canBlockCatchFire(world, i, j, k + 1); 188 | } 189 | 190 | private int getChanceOfNeighborsEncouragingFire(World world, int i, int j, int k) 191 | { 192 | int l = 0; 193 | if(!world.isAirBlock(i, j, k)) 194 | { 195 | return 0; 196 | } else 197 | { 198 | l = getChanceToEncourageFire(world, i + 1, j, k, l); 199 | l = getChanceToEncourageFire(world, i - 1, j, k, l); 200 | l = getChanceToEncourageFire(world, i, j - 1, k, l); 201 | l = getChanceToEncourageFire(world, i, j + 1, k, l); 202 | l = getChanceToEncourageFire(world, i, j, k - 1, l); 203 | l = getChanceToEncourageFire(world, i, j, k + 1, l); 204 | return l; 205 | } 206 | } 207 | 208 | public boolean isCollidable() 209 | { 210 | return false; 211 | } 212 | 213 | public boolean canBlockCatchFire(IBlockAccess iblockaccess, int i, int j, int k) 214 | { 215 | return chanceToEncourageFire[iblockaccess.getBlockId(i, j, k)] > 0; 216 | } 217 | 218 | public int getChanceToEncourageFire(World world, int i, int j, int k, int l) 219 | { 220 | int i1 = chanceToEncourageFire[world.getBlockId(i, j, k)]; 221 | if(i1 > l) 222 | { 223 | return i1; 224 | } else 225 | { 226 | return l; 227 | } 228 | } 229 | 230 | public boolean canPlaceBlockAt(World world, int i, int j, int k) 231 | { 232 | return world.isBlockNormalCube(i, j - 1, k) || func_268_g(world, i, j, k); 233 | } 234 | 235 | public void onNeighborBlockChange(World world, int i, int j, int k, int l) 236 | { 237 | if(!world.isBlockNormalCube(i, j - 1, k) && !func_268_g(world, i, j, k)) 238 | { 239 | world.setBlockWithNotify(i, j, k, 0); 240 | return; 241 | } else 242 | { 243 | return; 244 | } 245 | } 246 | 247 | public void onBlockAdded(World world, int i, int j, int k) 248 | { 249 | if(world.getBlockId(i, j - 1, k) == Block.obsidian.blockID && Block.portal.tryToCreatePortal(world, i, j, k)) 250 | { 251 | return; 252 | } 253 | if(!world.isBlockNormalCube(i, j - 1, k) && !func_268_g(world, i, j, k)) 254 | { 255 | world.setBlockWithNotify(i, j, k, 0); 256 | return; 257 | } else 258 | { 259 | world.scheduleUpdateTick(i, j, k, blockID, tickRate()); 260 | return; 261 | } 262 | } 263 | 264 | private int chanceToEncourageFire[]; 265 | private int abilityToCatchFire[]; 266 | } 267 | -------------------------------------------------------------------------------- /versions/b1.7.3/Fire-spread-server/pt.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Fire-spread-server/pt.class -------------------------------------------------------------------------------- /versions/b1.7.3/Food-stacks-client/ItemFood.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | 8 | // Referenced classes of package net.minecraft.src: 9 | // Item, EntityPlayer, ItemStack, World 10 | 11 | public class ItemFood extends Item 12 | { 13 | 14 | public ItemFood(int i, int j, boolean flag) 15 | { 16 | super(i); 17 | healAmount = j; 18 | isWolfsFavoriteMeat = flag; 19 | maxStackSize = 64; 20 | } 21 | 22 | public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) 23 | { 24 | if(entityplayer.health >= 20) 25 | { 26 | return itemstack; 27 | } else 28 | { 29 | itemstack.stackSize--; 30 | entityplayer.heal(healAmount); 31 | return itemstack; 32 | } 33 | } 34 | 35 | public int getHealAmount() 36 | { 37 | return healAmount; 38 | } 39 | 40 | public boolean getIsWolfsFavoriteMeat() 41 | { 42 | return isWolfsFavoriteMeat; 43 | } 44 | 45 | private int healAmount; 46 | private boolean isWolfsFavoriteMeat; 47 | } 48 | -------------------------------------------------------------------------------- /versions/b1.7.3/Food-stacks-client/yw.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Food-stacks-client/yw.class -------------------------------------------------------------------------------- /versions/b1.7.3/Food-stacks-server/ItemFood.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | 8 | // Referenced classes of package net.minecraft.src: 9 | // Item, ItemStack, EntityPlayer, World 10 | 11 | public class ItemFood extends Item 12 | { 13 | 14 | public ItemFood(int i, int j, boolean flag) 15 | { 16 | super(i); 17 | healAmount = j; 18 | field_25011_bi = flag; 19 | maxStackSize = 64; 20 | } 21 | 22 | public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) 23 | { 24 | if(entityplayer.health >= 20) 25 | { 26 | return itemstack; 27 | } else 28 | { 29 | itemstack.stackSize--; 30 | entityplayer.heal(healAmount); 31 | return itemstack; 32 | } 33 | } 34 | 35 | public int getHealAmount() 36 | { 37 | return healAmount; 38 | } 39 | 40 | public boolean func_25010_k() 41 | { 42 | return field_25011_bi; 43 | } 44 | 45 | private int healAmount; 46 | private boolean field_25011_bi; 47 | } 48 | -------------------------------------------------------------------------------- /versions/b1.7.3/Food-stacks-server/px.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Food-stacks-server/px.class -------------------------------------------------------------------------------- /versions/b1.7.3/Login-fix-client/nb.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Login-fix-client/nb.class -------------------------------------------------------------------------------- /versions/b1.7.3/Login-fix-server/ThreadLoginVerifier.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.io.BufferedReader; 8 | import java.io.InputStreamReader; 9 | import java.net.URL; 10 | import java.net.URLEncoder; 11 | 12 | // Referenced classes of package net.minecraft.src: 13 | // NetLoginHandler, Packet1Login 14 | 15 | class ThreadLoginVerifier extends Thread 16 | { 17 | 18 | ThreadLoginVerifier(NetLoginHandler netloginhandler, Packet1Login packet1login) 19 | { 20 | // super(); 21 | loginHandler = netloginhandler; 22 | loginPacket = packet1login; 23 | } 24 | 25 | public void run() 26 | { 27 | try 28 | { 29 | String s = NetLoginHandler.getServerId(loginHandler); 30 | URL url = new URL((new StringBuilder()).append("http://session.minecraft.net/game/checkserver.jsp?user=").append(URLEncoder.encode(loginPacket.username, "UTF-8")).append("&serverId=").append(URLEncoder.encode(s, "UTF-8")).toString()); 31 | BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(url.openStream())); 32 | String s1 = bufferedreader.readLine(); 33 | bufferedreader.close(); 34 | if(s1.equals("YES")) 35 | { 36 | NetLoginHandler.setLoginPacket(loginHandler, loginPacket); 37 | } else 38 | { 39 | loginHandler.kickUser("Failed to verify username!"); 40 | } 41 | } 42 | catch(Exception exception) 43 | { 44 | loginHandler.kickUser((new StringBuilder()).append("Failed to verify username! [internal error ").append(exception).append("]").toString()); 45 | exception.printStackTrace(); 46 | } 47 | } 48 | 49 | final Packet1Login loginPacket; /* synthetic field */ 50 | final NetLoginHandler loginHandler; /* synthetic field */ 51 | } 52 | -------------------------------------------------------------------------------- /versions/b1.7.3/Login-fix-server/cv.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Login-fix-server/cv.class -------------------------------------------------------------------------------- /versions/b1.7.3/No-blockhitdelay-client/PlayerControllerMP.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import net.minecraft.client.Minecraft; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // PlayerController, EntityPlayer, World, EntityPlayerSP, 11 | // ItemStack, Packet14BlockDig, NetClientHandler, Block, 12 | // StepSound, SoundManager, GuiIngame, RenderGlobal, 13 | // InventoryPlayer, Packet16BlockItemSwitch, Packet15Place, EntityClientPlayerMP, 14 | // Packet7UseEntity, Entity, Container, Packet102WindowClick 15 | 16 | public class PlayerControllerMP extends PlayerController 17 | { 18 | 19 | public PlayerControllerMP(Minecraft minecraft, NetClientHandler netclienthandler) 20 | { 21 | super(minecraft); 22 | currentBlockX = -1; 23 | currentBlockY = -1; 24 | currentblockZ = -1; 25 | curBlockDamageMP = 0.0F; 26 | prevBlockDamageMP = 0.0F; 27 | field_9441_h = 0.0F; 28 | blockHitDelay = 0; 29 | isHittingBlock = false; 30 | currentPlayerItem = 0; 31 | netClientHandler = netclienthandler; 32 | } 33 | 34 | public void flipPlayer(EntityPlayer entityplayer) 35 | { 36 | entityplayer.rotationYaw = -180F; 37 | } 38 | 39 | public boolean sendBlockRemoved(int i, int j, int k, int l) 40 | { 41 | int i1 = mc.theWorld.getBlockId(i, j, k); 42 | boolean flag = super.sendBlockRemoved(i, j, k, l); 43 | ItemStack itemstack = mc.thePlayer.getCurrentEquippedItem(); 44 | if(itemstack != null) 45 | { 46 | itemstack.onDestroyBlock(i1, i, j, k, mc.thePlayer); 47 | if(itemstack.stackSize == 0) 48 | { 49 | itemstack.func_1097_a(mc.thePlayer); 50 | mc.thePlayer.destroyCurrentEquippedItem(); 51 | } 52 | } 53 | return flag; 54 | } 55 | 56 | public void clickBlock(int i, int j, int k, int l) 57 | { 58 | if(!isHittingBlock || i != currentBlockX || j != currentBlockY || k != currentblockZ) 59 | { 60 | netClientHandler.addToSendQueue(new Packet14BlockDig(0, i, j, k, l)); 61 | int i1 = mc.theWorld.getBlockId(i, j, k); 62 | if(i1 > 0 && curBlockDamageMP == 0.0F) 63 | { 64 | Block.blocksList[i1].onBlockClicked(mc.theWorld, i, j, k, mc.thePlayer); 65 | } 66 | if(i1 > 0 && Block.blocksList[i1].blockStrength(mc.thePlayer) >= 1.0F) 67 | { 68 | sendBlockRemoved(i, j, k, l); 69 | } else 70 | { 71 | isHittingBlock = true; 72 | currentBlockX = i; 73 | currentBlockY = j; 74 | currentblockZ = k; 75 | curBlockDamageMP = 0.0F; 76 | prevBlockDamageMP = 0.0F; 77 | field_9441_h = 0.0F; 78 | } 79 | } 80 | } 81 | 82 | public void resetBlockRemoving() 83 | { 84 | curBlockDamageMP = 0.0F; 85 | isHittingBlock = false; 86 | } 87 | 88 | public void sendBlockRemoving(int i, int j, int k, int l) 89 | { 90 | if(!isHittingBlock) 91 | { 92 | return; 93 | } 94 | syncCurrentPlayItem(); 95 | if(blockHitDelay > 0) 96 | { 97 | blockHitDelay--; 98 | return; 99 | } 100 | if(i == currentBlockX && j == currentBlockY && k == currentblockZ) 101 | { 102 | int i1 = mc.theWorld.getBlockId(i, j, k); 103 | if(i1 == 0) 104 | { 105 | isHittingBlock = false; 106 | return; 107 | } 108 | Block block = Block.blocksList[i1]; 109 | curBlockDamageMP += block.blockStrength(mc.thePlayer); 110 | if(field_9441_h % 4F == 0.0F && block != null) 111 | { 112 | mc.sndManager.playSound(block.stepSound.func_1145_d(), (float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, (block.stepSound.getVolume() + 1.0F) / 8F, block.stepSound.getPitch() * 0.5F); 113 | } 114 | field_9441_h++; 115 | if(curBlockDamageMP >= 1.0F) 116 | { 117 | isHittingBlock = false; 118 | netClientHandler.addToSendQueue(new Packet14BlockDig(2, i, j, k, l)); 119 | sendBlockRemoved(i, j, k, l); 120 | curBlockDamageMP = 0.0F; 121 | prevBlockDamageMP = 0.0F; 122 | field_9441_h = 0.0F; 123 | //blockHitDelay = 5; 124 | } 125 | } else 126 | { 127 | clickBlock(i, j, k, l); 128 | } 129 | } 130 | 131 | public void setPartialTime(float f) 132 | { 133 | if(curBlockDamageMP <= 0.0F) 134 | { 135 | mc.ingameGUI.damageGuiPartialTime = 0.0F; 136 | mc.renderGlobal.damagePartialTime = 0.0F; 137 | } else 138 | { 139 | float f1 = prevBlockDamageMP + (curBlockDamageMP - prevBlockDamageMP) * f; 140 | mc.ingameGUI.damageGuiPartialTime = f1; 141 | mc.renderGlobal.damagePartialTime = f1; 142 | } 143 | } 144 | 145 | public float getBlockReachDistance() 146 | { 147 | return 4F; 148 | } 149 | 150 | public void func_717_a(World world) 151 | { 152 | super.func_717_a(world); 153 | } 154 | 155 | public void updateController() 156 | { 157 | syncCurrentPlayItem(); 158 | prevBlockDamageMP = curBlockDamageMP; 159 | mc.sndManager.playRandomMusicIfReady(); 160 | } 161 | 162 | private void syncCurrentPlayItem() 163 | { 164 | int i = mc.thePlayer.inventory.currentItem; 165 | if(i != currentPlayerItem) 166 | { 167 | currentPlayerItem = i; 168 | netClientHandler.addToSendQueue(new Packet16BlockItemSwitch(currentPlayerItem)); 169 | } 170 | } 171 | 172 | public boolean sendPlaceBlock(EntityPlayer entityplayer, World world, ItemStack itemstack, int i, int j, int k, int l) 173 | { 174 | syncCurrentPlayItem(); 175 | netClientHandler.addToSendQueue(new Packet15Place(i, j, k, l, entityplayer.inventory.getCurrentItem())); 176 | boolean flag = super.sendPlaceBlock(entityplayer, world, itemstack, i, j, k, l); 177 | return flag; 178 | } 179 | 180 | public boolean sendUseItem(EntityPlayer entityplayer, World world, ItemStack itemstack) 181 | { 182 | syncCurrentPlayItem(); 183 | netClientHandler.addToSendQueue(new Packet15Place(-1, -1, -1, 255, entityplayer.inventory.getCurrentItem())); 184 | boolean flag = super.sendUseItem(entityplayer, world, itemstack); 185 | return flag; 186 | } 187 | 188 | public EntityPlayer createPlayer(World world) 189 | { 190 | return new EntityClientPlayerMP(mc, world, mc.session, netClientHandler); 191 | } 192 | 193 | public void attackEntity(EntityPlayer entityplayer, Entity entity) 194 | { 195 | syncCurrentPlayItem(); 196 | netClientHandler.addToSendQueue(new Packet7UseEntity(entityplayer.entityId, entity.entityId, 1)); 197 | entityplayer.attackTargetEntityWithCurrentItem(entity); 198 | } 199 | 200 | public void interactWithEntity(EntityPlayer entityplayer, Entity entity) 201 | { 202 | syncCurrentPlayItem(); 203 | netClientHandler.addToSendQueue(new Packet7UseEntity(entityplayer.entityId, entity.entityId, 0)); 204 | entityplayer.useCurrentItemOnEntity(entity); 205 | } 206 | 207 | public ItemStack func_27174_a(int i, int j, int k, boolean flag, EntityPlayer entityplayer) 208 | { 209 | short word0 = entityplayer.craftingInventory.func_20111_a(entityplayer.inventory); 210 | ItemStack itemstack = super.func_27174_a(i, j, k, flag, entityplayer); 211 | netClientHandler.addToSendQueue(new Packet102WindowClick(i, j, k, flag, itemstack, word0)); 212 | return itemstack; 213 | } 214 | 215 | public void func_20086_a(int i, EntityPlayer entityplayer) 216 | { 217 | if(i == -9999) 218 | { 219 | return; 220 | } else 221 | { 222 | return; 223 | } 224 | } 225 | 226 | private int currentBlockX; 227 | private int currentBlockY; 228 | private int currentblockZ; 229 | private float curBlockDamageMP; 230 | private float prevBlockDamageMP; 231 | private float field_9441_h; 232 | private int blockHitDelay; 233 | private boolean isHittingBlock; 234 | private NetClientHandler netClientHandler; 235 | private int currentPlayerItem; 236 | } 237 | -------------------------------------------------------------------------------- /versions/b1.7.3/No-blockhitdelay-client/xk.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/No-blockhitdelay-client/xk.class -------------------------------------------------------------------------------- /versions/b1.7.3/No-container-labels-client/GuiContainer.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.List; 8 | import net.minecraft.client.Minecraft; 9 | import org.lwjgl.input.Keyboard; 10 | import org.lwjgl.opengl.GL11; 11 | 12 | // Referenced classes of package net.minecraft.src: 13 | // GuiScreen, EntityPlayerSP, RenderHelper, Container, 14 | // Slot, InventoryPlayer, RenderItem, StringTranslate, 15 | // ItemStack, FontRenderer, RenderEngine, PlayerController, 16 | // GameSettings, KeyBinding 17 | 18 | public abstract class GuiContainer extends GuiScreen 19 | { 20 | 21 | public GuiContainer(Container container) 22 | { 23 | xSize = 176; 24 | ySize = 166; 25 | inventorySlots = container; 26 | } 27 | 28 | public void initGui() 29 | { 30 | super.initGui(); 31 | mc.thePlayer.craftingInventory = inventorySlots; 32 | } 33 | 34 | public void drawScreen(int i, int j, float f) 35 | { 36 | drawDefaultBackground(); 37 | int k = (width - xSize) / 2; 38 | int l = (height - ySize) / 2; 39 | drawGuiContainerBackgroundLayer(f); 40 | GL11.glPushMatrix(); 41 | GL11.glRotatef(120F, 1.0F, 0.0F, 0.0F); 42 | RenderHelper.enableStandardItemLighting(); 43 | GL11.glPopMatrix(); 44 | GL11.glPushMatrix(); 45 | GL11.glTranslatef(k, l, 0.0F); 46 | GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); 47 | GL11.glEnable(32826 /*GL_RESCALE_NORMAL_EXT*/); 48 | Slot slot = null; 49 | for(int i1 = 0; i1 < inventorySlots.slots.size(); i1++) 50 | { 51 | Slot slot1 = (Slot)inventorySlots.slots.get(i1); 52 | drawSlotInventory(slot1); 53 | if(getIsMouseOverSlot(slot1, i, j)) 54 | { 55 | slot = slot1; 56 | GL11.glDisable(2896 /*GL_LIGHTING*/); 57 | GL11.glDisable(2929 /*GL_DEPTH_TEST*/); 58 | int j1 = slot1.xDisplayPosition; 59 | int l1 = slot1.yDisplayPosition; 60 | drawGradientRect(j1, l1, j1 + 16, l1 + 16, 0x80ffffff, 0x80ffffff); 61 | GL11.glEnable(2896 /*GL_LIGHTING*/); 62 | GL11.glEnable(2929 /*GL_DEPTH_TEST*/); 63 | } 64 | } 65 | 66 | InventoryPlayer inventoryplayer = mc.thePlayer.inventory; 67 | if(inventoryplayer.getItemStack() != null) 68 | { 69 | GL11.glTranslatef(0.0F, 0.0F, 32F); 70 | itemRenderer.renderItemIntoGUI(fontRenderer, mc.renderEngine, inventoryplayer.getItemStack(), i - k - 8, j - l - 8); 71 | itemRenderer.renderItemOverlayIntoGUI(fontRenderer, mc.renderEngine, inventoryplayer.getItemStack(), i - k - 8, j - l - 8); 72 | } 73 | GL11.glDisable(32826 /*GL_RESCALE_NORMAL_EXT*/); 74 | RenderHelper.disableStandardItemLighting(); 75 | GL11.glDisable(2896 /*GL_LIGHTING*/); 76 | GL11.glDisable(2929 /*GL_DEPTH_TEST*/); 77 | //drawGuiContainerForegroundLayer(); 78 | if(inventoryplayer.getItemStack() == null && slot != null && slot.getHasStack()) 79 | { 80 | String s = (new StringBuilder()).append("").append(StringTranslate.getInstance().translateNamedKey(slot.getStack().getItemName())).toString().trim(); 81 | if(s.length() > 0) 82 | { 83 | int k1 = (i - k) + 12; 84 | int i2 = j - l - 12; 85 | int j2 = fontRenderer.getStringWidth(s); 86 | drawGradientRect(k1 - 3, i2 - 3, k1 + j2 + 3, i2 + 8 + 3, 0xc0000000, 0xc0000000); 87 | fontRenderer.drawStringWithShadow(s, k1, i2, -1); 88 | } 89 | } 90 | GL11.glPopMatrix(); 91 | super.drawScreen(i, j, f); 92 | GL11.glEnable(2896 /*GL_LIGHTING*/); 93 | GL11.glEnable(2929 /*GL_DEPTH_TEST*/); 94 | } 95 | 96 | protected void drawGuiContainerForegroundLayer() 97 | { 98 | } 99 | 100 | protected abstract void drawGuiContainerBackgroundLayer(float f); 101 | 102 | private void drawSlotInventory(Slot slot) 103 | { 104 | int i = slot.xDisplayPosition; 105 | int j = slot.yDisplayPosition; 106 | ItemStack itemstack = slot.getStack(); 107 | if(itemstack == null) 108 | { 109 | int k = slot.getBackgroundIconIndex(); 110 | if(k >= 0) 111 | { 112 | GL11.glDisable(2896 /*GL_LIGHTING*/); 113 | mc.renderEngine.bindTexture(mc.renderEngine.getTexture("/gui/items.png")); 114 | drawTexturedModalRect(i, j, (k % 16) * 16, (k / 16) * 16, 16, 16); 115 | GL11.glEnable(2896 /*GL_LIGHTING*/); 116 | return; 117 | } 118 | } 119 | itemRenderer.renderItemIntoGUI(fontRenderer, mc.renderEngine, itemstack, i, j); 120 | itemRenderer.renderItemOverlayIntoGUI(fontRenderer, mc.renderEngine, itemstack, i, j); 121 | } 122 | 123 | private Slot getSlotAtPosition(int i, int j) 124 | { 125 | for(int k = 0; k < inventorySlots.slots.size(); k++) 126 | { 127 | Slot slot = (Slot)inventorySlots.slots.get(k); 128 | if(getIsMouseOverSlot(slot, i, j)) 129 | { 130 | return slot; 131 | } 132 | } 133 | 134 | return null; 135 | } 136 | 137 | private boolean getIsMouseOverSlot(Slot slot, int i, int j) 138 | { 139 | int k = (width - xSize) / 2; 140 | int l = (height - ySize) / 2; 141 | i -= k; 142 | j -= l; 143 | return i >= slot.xDisplayPosition - 1 && i < slot.xDisplayPosition + 16 + 1 && j >= slot.yDisplayPosition - 1 && j < slot.yDisplayPosition + 16 + 1; 144 | } 145 | 146 | protected void mouseClicked(int i, int j, int k) 147 | { 148 | super.mouseClicked(i, j, k); 149 | if(k == 0 || k == 1) 150 | { 151 | Slot slot = getSlotAtPosition(i, j); 152 | int l = (width - xSize) / 2; 153 | int i1 = (height - ySize) / 2; 154 | boolean flag = i < l || j < i1 || i >= l + xSize || j >= i1 + ySize; 155 | int j1 = -1; 156 | if(slot != null) 157 | { 158 | j1 = slot.slotNumber; 159 | } 160 | if(flag) 161 | { 162 | j1 = -999; 163 | } 164 | if(j1 != -1) 165 | { 166 | boolean flag1 = j1 != -999 && (Keyboard.isKeyDown(42) || Keyboard.isKeyDown(54)); 167 | mc.playerController.func_27174_a(inventorySlots.windowId, j1, k, flag1, mc.thePlayer); 168 | } 169 | } 170 | } 171 | 172 | protected void mouseMovedOrUp(int i, int j, int k) 173 | { 174 | if(k != 0); 175 | } 176 | 177 | protected void keyTyped(char c, int i) 178 | { 179 | if(i == 1 || i == mc.gameSettings.keyBindInventory.keyCode) 180 | { 181 | mc.thePlayer.closeScreen(); 182 | } 183 | } 184 | 185 | public void onGuiClosed() 186 | { 187 | if(mc.thePlayer == null) 188 | { 189 | return; 190 | } else 191 | { 192 | mc.playerController.func_20086_a(inventorySlots.windowId, mc.thePlayer); 193 | return; 194 | } 195 | } 196 | 197 | public boolean doesGuiPauseGame() 198 | { 199 | return false; 200 | } 201 | 202 | public void updateScreen() 203 | { 204 | super.updateScreen(); 205 | if(!mc.thePlayer.isEntityAlive() || mc.thePlayer.isDead) 206 | { 207 | mc.thePlayer.closeScreen(); 208 | } 209 | } 210 | 211 | private static RenderItem itemRenderer = new RenderItem(); 212 | protected int xSize; 213 | protected int ySize; 214 | public Container inventorySlots; 215 | 216 | } 217 | -------------------------------------------------------------------------------- /versions/b1.7.3/No-container-labels-client/id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/No-container-labels-client/id.class -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-client/BlockDeadBush.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // BlockFlower, World 11 | 12 | public class BlockDeadBush extends BlockFlower 13 | { 14 | 15 | protected BlockDeadBush(int i, int j) 16 | { 17 | super(i, j); 18 | float f = 0.4F; 19 | setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f); 20 | } 21 | 22 | protected boolean canThisPlantGrowOnThisBlockID(int i) 23 | { 24 | return false; 25 | } 26 | 27 | public boolean canBlockStay(World world, int i, int j, int k) 28 | { 29 | return false; 30 | } 31 | 32 | public boolean canPlaceBlockAt(World world, int i, int j, int k) 33 | { 34 | return false; 35 | } 36 | 37 | public int getBlockTextureFromSideAndMetadata(int i, int j) 38 | { 39 | return blockIndexInTexture; 40 | } 41 | 42 | public int idDropped(int i, Random random) 43 | { 44 | return -1; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-client/BlockTallGrass.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // BlockFlower, IBlockAccess, WorldChunkManager, ColorizerGrass, 11 | // World 12 | 13 | public class BlockTallGrass extends BlockFlower 14 | { 15 | 16 | protected BlockTallGrass(int i, int j) 17 | { 18 | super(i, j); 19 | float f = 0.4F; 20 | setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f); 21 | } 22 | 23 | public boolean canPlaceBlockAt(World world, int i, int j, int k) 24 | { 25 | return false; 26 | } 27 | 28 | public boolean canBlockStay(World world, int i, int j, int k) 29 | { 30 | return false; 31 | } 32 | 33 | public int getBlockTextureFromSideAndMetadata(int i, int j) 34 | { 35 | if(j == 1) 36 | { 37 | return blockIndexInTexture; 38 | } 39 | if(j == 2) 40 | { 41 | return blockIndexInTexture + 16 + 1; 42 | } 43 | if(j == 0) 44 | { 45 | return blockIndexInTexture + 16; 46 | } else 47 | { 48 | return blockIndexInTexture; 49 | } 50 | } 51 | 52 | public int colorMultiplier(IBlockAccess iblockaccess, int i, int j, int k) 53 | { 54 | int l = iblockaccess.getBlockMetadata(i, j, k); 55 | if(l == 0) 56 | { 57 | return 0xffffff; 58 | } else 59 | { 60 | long l1 = i * 0x2fc20f + k * 0x5d8875 + j; 61 | l1 = l1 * l1 * 0x285b825L + l1 * 11L; 62 | i = (int)((long)i + (l1 >> 14 & 31L)); 63 | j = (int)((long)j + (l1 >> 19 & 31L)); 64 | k = (int)((long)k + (l1 >> 24 & 31L)); 65 | iblockaccess.getWorldChunkManager().func_4069_a(i, k, 1, 1); 66 | double d = iblockaccess.getWorldChunkManager().temperature[0]; 67 | double d1 = iblockaccess.getWorldChunkManager().humidity[0]; 68 | return ColorizerGrass.getGrassColor(d, d1); 69 | } 70 | } 71 | 72 | public int idDropped(int i, Random random) 73 | { 74 | return 0; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-client/ItemHoe.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // Item, EnumToolMaterial, World, Block, 11 | // BlockGrass, ItemStack, EntityPlayer, EntityItem, 12 | // StepSound 13 | 14 | public class ItemHoe extends Item 15 | { 16 | 17 | public ItemHoe(int i, EnumToolMaterial enumtoolmaterial) 18 | { 19 | super(i); 20 | maxStackSize = 1; 21 | setMaxDamage(enumtoolmaterial.getMaxUses()); 22 | } 23 | 24 | public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l) 25 | { 26 | int i1 = world.getBlockId(i, j, k); 27 | int j1 = world.getBlockId(i, j + 1, k); 28 | if(world.rand.nextInt(8) == 0 && i1 == Block.grass.blockID) 29 | { 30 | int k1 = 1; 31 | for(int l1 = 0; l1 < k1; l1++) 32 | { 33 | float f = 0.7F; 34 | float f1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F; 35 | float f2 = 1.2F; 36 | float f3 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F; 37 | EntityItem entityitem = new EntityItem(world, (float)i + f1, (float)j + f2, (float)k + f3, new ItemStack(Item.seeds)); 38 | entityitem.delayBeforeCanPickup = 10; 39 | world.entityJoinedWorld(entityitem); 40 | } 41 | 42 | } 43 | if(l != 0 && j1 == 0 && i1 == Block.grass.blockID || i1 == Block.dirt.blockID) 44 | { 45 | Block block = Block.tilledField; 46 | world.playSoundEffect((float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, block.stepSound.func_1145_d(), (block.stepSound.getVolume() + 1.0F) / 2.0F, block.stepSound.getPitch() * 0.8F); 47 | if(world.multiplayerWorld) 48 | { 49 | return true; 50 | } else 51 | { 52 | world.setBlockWithNotify(i, j, k, block.blockID); 53 | itemstack.damageItem(1, entityplayer); 54 | return true; 55 | } 56 | } else 57 | { 58 | return false; 59 | } 60 | } 61 | 62 | public boolean isFull3D() 63 | { 64 | return true; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-client/jb.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/No-tallgrass-client/jb.class -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-client/la.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/No-tallgrass-client/la.class -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-client/ru.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/No-tallgrass-client/ru.class -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-server/BlockDeadBush.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // BlockFlower, Block 11 | 12 | public class BlockDeadBush extends BlockFlower 13 | { 14 | 15 | protected BlockDeadBush(int i, int j) 16 | { 17 | super(i, j); 18 | float f = 0.4F; 19 | setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f); 20 | } 21 | 22 | protected boolean canThisPlantGrowOnThisBlockID(int i) 23 | { 24 | return false; 25 | } 26 | 27 | public boolean canBlockStay(World world, int i, int j, int k) 28 | { 29 | return false; 30 | } 31 | 32 | public boolean canPlaceBlockAt(World world, int i, int j, int k) 33 | { 34 | return false; 35 | } 36 | 37 | public int getBlockTextureFromSideAndMetadata(int i, int j) 38 | { 39 | return blockIndexInTexture; 40 | } 41 | 42 | public int idDropped(int i, Random random) 43 | { 44 | return -1; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-server/BlockTallGrass.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // BlockFlower, Item 11 | 12 | public class BlockTallGrass extends BlockFlower 13 | { 14 | 15 | protected BlockTallGrass(int i, int j) 16 | { 17 | super(i, j); 18 | float f = 0.4F; 19 | setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f); 20 | } 21 | 22 | public boolean canPlaceBlockAt(World world, int i, int j, int k) 23 | { 24 | return false; 25 | } 26 | 27 | public boolean canBlockStay(World world, int i, int j, int k) 28 | { 29 | return false; 30 | } 31 | 32 | public int getBlockTextureFromSideAndMetadata(int i, int j) 33 | { 34 | if(j == 1) 35 | { 36 | return blockIndexInTexture; 37 | } 38 | if(j == 2) 39 | { 40 | return blockIndexInTexture + 16 + 1; 41 | } 42 | if(j == 0) 43 | { 44 | return blockIndexInTexture + 16; 45 | } else 46 | { 47 | return blockIndexInTexture; 48 | } 49 | } 50 | 51 | public int idDropped(int i, Random random) 52 | { 53 | return 0; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-server/ItemHoe.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | 8 | // Referenced classes of package net.minecraft.src: 9 | // Item, EnumToolMaterial, World, Block, 10 | // BlockGrass, StepSound, ItemStack, EntityPlayer 11 | 12 | public class ItemHoe extends Item 13 | { 14 | 15 | public ItemHoe(int i, EnumToolMaterial enumtoolmaterial) 16 | { 17 | super(i); 18 | maxStackSize = 1; 19 | setMaxDamage(enumtoolmaterial.getMaxUses()); 20 | } 21 | 22 | public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l) 23 | { 24 | int i1 = world.getBlockId(i, j, k); 25 | int j1 = world.getBlockId(i, j + 1, k); 26 | if(world.rand.nextInt(8) == 0 && i1 == Block.grass.blockID) 27 | { 28 | int k1 = 1; 29 | for(int l1 = 0; l1 < k1; l1++) 30 | { 31 | float f = 0.7F; 32 | float f1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F; 33 | float f2 = 1.2F; 34 | float f3 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F; 35 | EntityItem entityitem = new EntityItem(world, (float)i + f1, (float)j + f2, (float)k + f3, new ItemStack(Item.seeds)); 36 | entityitem.delayBeforeCanPickup = 10; 37 | world.entityJoinedWorld(entityitem); 38 | } 39 | 40 | } 41 | if(l != 0 && j1 == 0 && i1 == Block.grass.blockID || i1 == Block.dirt.blockID) 42 | { 43 | Block block = Block.tilledField; 44 | world.playSoundEffect((float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, block.stepSound.func_737_c(), (block.stepSound.getVolume() + 1.0F) / 2.0F, block.stepSound.getPitch() * 0.8F); 45 | if(world.singleplayerWorld) 46 | { 47 | return true; 48 | } else 49 | { 50 | world.setBlockWithNotify(i, j, k, block.blockID); 51 | itemstack.damageItem(1, entityplayer); 52 | return true; 53 | } 54 | } else 55 | { 56 | return false; 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-server/fz.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/No-tallgrass-server/fz.class -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-server/gz.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/No-tallgrass-server/gz.class -------------------------------------------------------------------------------- /versions/b1.7.3/No-tallgrass-server/kz.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/No-tallgrass-server/kz.class -------------------------------------------------------------------------------- /versions/b1.7.3/Ravines-client/MapGenRavine.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Ravines-client/MapGenRavine.class -------------------------------------------------------------------------------- /versions/b1.7.3/Ravines-client/MapGenRavine.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // MapGenBase, MathHelper, Block, BlockGrass, 11 | // World 12 | 13 | public class MapGenRavine extends MapGenBase 14 | { 15 | 16 | public MapGenRavine() 17 | { 18 | field_35627_a = new float[1024]; 19 | } 20 | 21 | protected void func_35626_a(long l, int i, int j, byte abyte0[], double d, 22 | double d1, double d2, float f, float f1, float f2, 23 | int k, int i1, double d3) 24 | { 25 | Random random; 26 | double d4; 27 | double d5; 28 | float f3; 29 | float f4; 30 | boolean flag; 31 | label0: 32 | { 33 | random = new Random(l); 34 | d4 = i * 16 + 8; 35 | d5 = j * 16 + 8; 36 | f3 = 0.0F; 37 | f4 = 0.0F; 38 | if(i1 <= 0) 39 | { 40 | int j1 = field_1306_a * 16 - 16; 41 | i1 = j1 - random.nextInt(j1 / 4); 42 | } 43 | flag = false; 44 | if(k == -1) 45 | { 46 | k = i1 / 2; 47 | flag = true; 48 | } 49 | float f5 = 1.0F; 50 | int k1 = 0; 51 | do 52 | { 53 | if(k1 >= 128) 54 | { 55 | break label0; 56 | } 57 | if(k1 == 0 || random.nextInt(3) == 0) 58 | { 59 | f5 = 1.0F + random.nextFloat() * random.nextFloat() * 1.0F; 60 | } 61 | field_35627_a[k1] = f5 * f5; 62 | k1++; 63 | } while(true); 64 | } 65 | for(; k < i1; k++) 66 | { 67 | double d6 = 1.5D + (double)(MathHelper.sin(((float)k * 3.141593F) / (float)i1) * f * 1.0F); 68 | double d7 = d6 * d3; 69 | d6 *= (double)random.nextFloat() * 0.25D + 0.75D; 70 | d7 *= (double)random.nextFloat() * 0.25D + 0.75D; 71 | float f6 = MathHelper.cos(f2); 72 | float f7 = MathHelper.sin(f2); 73 | d += MathHelper.cos(f1) * f6; 74 | d1 += f7; 75 | d2 += MathHelper.sin(f1) * f6; 76 | f2 *= 0.7F; 77 | f2 += f4 * 0.05F; 78 | f1 += f3 * 0.05F; 79 | f4 *= 0.8F; 80 | f3 *= 0.5F; 81 | f4 += (random.nextFloat() - random.nextFloat()) * random.nextFloat() * 2.0F; 82 | f3 += (random.nextFloat() - random.nextFloat()) * random.nextFloat() * 4F; 83 | if(!flag && random.nextInt(4) == 0) 84 | { 85 | continue; 86 | } 87 | double d8 = d - d4; 88 | double d9 = d2 - d5; 89 | double d10 = i1 - k; 90 | double d11 = f + 2.0F + 16F; 91 | if((d8 * d8 + d9 * d9) - d10 * d10 > d11 * d11) 92 | { 93 | return; 94 | } 95 | if(d < d4 - 16D - d6 * 2D || d2 < d5 - 16D - d6 * 2D || d > d4 + 16D + d6 * 2D || d2 > d5 + 16D + d6 * 2D) 96 | { 97 | continue; 98 | } 99 | d8 = MathHelper.floor_double(d - d6) - i * 16 - 1; 100 | int l1 = (MathHelper.floor_double(d + d6) - i * 16) + 1; 101 | d9 = MathHelper.floor_double(d1 - d7) - 1; 102 | int i2 = MathHelper.floor_double(d1 + d7) + 1; 103 | d10 = MathHelper.floor_double(d2 - d6) - j * 16 - 1; 104 | int j2 = (MathHelper.floor_double(d2 + d6) - j * 16) + 1; 105 | if(d8 < 0) 106 | { 107 | d8 = 0; 108 | } 109 | if(l1 > 16) 110 | { 111 | l1 = 16; 112 | } 113 | if(d9 < 1) 114 | { 115 | d9 = 1; 116 | } 117 | if(i2 > 120) 118 | { 119 | i2 = 120; 120 | } 121 | if(d10 < 0) 122 | { 123 | d10 = 0; 124 | } 125 | if(j2 > 16) 126 | { 127 | j2 = 16; 128 | } 129 | boolean flag1 = false; 130 | for(int k2 = (int) d8; !flag1 && k2 < l1; k2++) 131 | { 132 | for(int i3 = (int) d10; !flag1 && i3 < j2; i3++) 133 | { 134 | for(int j3 = i2 + 1; !flag1 && j3 >= d9 - 1; j3--) 135 | { 136 | int k3 = (k2 * 16 + i3) * 128 + j3; 137 | if(j3 < 0 || j3 >= 128) 138 | { 139 | continue; 140 | } 141 | if(abyte0[k3] == Block.waterMoving.blockID || abyte0[k3] == Block.waterStill.blockID) 142 | { 143 | flag1 = true; 144 | } 145 | if(j3 != d9 - 1 && k2 != d8 && k2 != l1 - 1 && i3 != d10 && i3 != j2 - 1) 146 | { 147 | j3 = (int) d9; 148 | } 149 | } 150 | 151 | } 152 | 153 | } 154 | 155 | if(flag1) 156 | { 157 | continue; 158 | } 159 | for(int l2 = (int) d8; l2 < l1; l2++) 160 | { 161 | double d12 = (((double)(l2 + i * 16) + 0.5D) - d) / d6; 162 | label1: 163 | for(int l3 = (int) d10; l3 < j2; l3++) 164 | { 165 | double d13 = (((double)(l3 + j * 16) + 0.5D) - d2) / d6; 166 | int i4 = (l2 * 16 + l3) * 128 + i2; 167 | boolean flag2 = false; 168 | if(d12 * d12 + d13 * d13 >= 1.0D) 169 | { 170 | continue; 171 | } 172 | int j4 = i2 - 1; 173 | do 174 | { 175 | if(j4 < d9) 176 | { 177 | continue label1; 178 | } 179 | double d14 = (((double)j4 + 0.5D) - d1) / d7; 180 | if((d12 * d12 + d13 * d13) * (double)field_35627_a[j4] + (d14 * d14) / 6D < 1.0D) 181 | { 182 | byte byte0 = abyte0[i4]; 183 | if(byte0 == Block.grass.blockID) 184 | { 185 | flag2 = true; 186 | } 187 | if(byte0 == Block.stone.blockID || byte0 == Block.dirt.blockID || byte0 == Block.grass.blockID) 188 | { 189 | if(j4 < 10) 190 | { 191 | abyte0[i4] = (byte)Block.lavaMoving.blockID; 192 | } else 193 | { 194 | abyte0[i4] = 0; 195 | if(flag2 && abyte0[i4 - 1] == Block.dirt.blockID) 196 | { 197 | abyte0[i4 - 1] = (byte)Block.grass.blockID; 198 | } 199 | } 200 | } 201 | } 202 | i4--; 203 | j4--; 204 | } while(true); 205 | } 206 | 207 | } 208 | 209 | if(flag) 210 | { 211 | break; 212 | } 213 | } 214 | 215 | } 216 | 217 | protected void func_868_a(World world, int i, int j, int k, int l, byte abyte0[]) 218 | { 219 | if(rand.nextInt(50) != 0) 220 | { 221 | return; 222 | } 223 | double d = i * 16 + rand.nextInt(16); 224 | double d1 = rand.nextInt(rand.nextInt(40) + 8) + 20; 225 | double d2 = j * 16 + rand.nextInt(16); 226 | int i1 = 1; 227 | for(int j1 = 0; j1 < i1; j1++) 228 | { 229 | float f = rand.nextFloat() * 3.141593F * 2.0F; 230 | float f1 = ((rand.nextFloat() - 0.5F) * 2.0F) / 8F; 231 | float f2 = (rand.nextFloat() * 2.0F + rand.nextFloat()) * 2.0F; 232 | func_35626_a(rand.nextLong(), k, l, abyte0, d, d1, d2, f2, f, f1, 0, 0, 3D); 233 | } 234 | 235 | } 236 | 237 | private float field_35627_a[]; 238 | } 239 | -------------------------------------------------------------------------------- /versions/b1.7.3/Ravines-client/yf.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Ravines-client/yf.class -------------------------------------------------------------------------------- /versions/b1.7.3/Ravines-server/MapGenRavine.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Ravines-server/MapGenRavine.class -------------------------------------------------------------------------------- /versions/b1.7.3/Ravines-server/MapGenRavine.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // MapGenBase, MathHelper, Block, BlockGrass, 11 | // World 12 | 13 | public class MapGenRavine extends MapGenBase 14 | { 15 | 16 | public MapGenRavine() 17 | { 18 | field_35540_a = new float[1024]; 19 | } 20 | 21 | protected void func_35539_a(long l, int i, int j, byte abyte0[], double d, 22 | double d1, double d2, float f, float f1, float f2, 23 | int k, int i1, double d3) 24 | { 25 | Random random; 26 | double d4; 27 | double d5; 28 | float f3; 29 | float f4; 30 | boolean flag; 31 | label0: 32 | { 33 | random = new Random(l); 34 | d4 = i * 16 + 8; 35 | d5 = j * 16 + 8; 36 | f3 = 0.0F; 37 | f4 = 0.0F; 38 | if(i1 <= 0) 39 | { 40 | int j1 = field_947_a * 16 - 16; 41 | i1 = j1 - random.nextInt(j1 / 4); 42 | } 43 | flag = false; 44 | if(k == -1) 45 | { 46 | k = i1 / 2; 47 | flag = true; 48 | } 49 | float f5 = 1.0F; 50 | int k1 = 0; 51 | do 52 | { 53 | if(k1 >= 128) 54 | { 55 | break label0; 56 | } 57 | if(k1 == 0 || random.nextInt(3) == 0) 58 | { 59 | f5 = 1.0F + random.nextFloat() * random.nextFloat() * 1.0F; 60 | } 61 | field_35540_a[k1] = f5 * f5; 62 | k1++; 63 | } while(true); 64 | } 65 | for(; k < i1; k++) 66 | { 67 | double d6 = 1.5D + (double)(MathHelper.sin(((float)k * 3.141593F) / (float)i1) * f * 1.0F); 68 | double d7 = d6 * d3; 69 | d6 *= (double)random.nextFloat() * 0.25D + 0.75D; 70 | d7 *= (double)random.nextFloat() * 0.25D + 0.75D; 71 | float f6 = MathHelper.cos(f2); 72 | float f7 = MathHelper.sin(f2); 73 | d += MathHelper.cos(f1) * f6; 74 | d1 += f7; 75 | d2 += MathHelper.sin(f1) * f6; 76 | f2 *= 0.7F; 77 | f2 += f4 * 0.05F; 78 | f1 += f3 * 0.05F; 79 | f4 *= 0.8F; 80 | f3 *= 0.5F; 81 | f4 += (random.nextFloat() - random.nextFloat()) * random.nextFloat() * 2.0F; 82 | f3 += (random.nextFloat() - random.nextFloat()) * random.nextFloat() * 4F; 83 | if(!flag && random.nextInt(4) == 0) 84 | { 85 | continue; 86 | } 87 | double d8 = d - d4; 88 | double d9 = d2 - d5; 89 | double d10 = i1 - k; 90 | double d11 = f + 2.0F + 16F; 91 | if((d8 * d8 + d9 * d9) - d10 * d10 > d11 * d11) 92 | { 93 | return; 94 | } 95 | if(d < d4 - 16D - d6 * 2D || d2 < d5 - 16D - d6 * 2D || d > d4 + 16D + d6 * 2D || d2 > d5 + 16D + d6 * 2D) 96 | { 97 | continue; 98 | } 99 | d8 = MathHelper.floor_double(d - d6) - i * 16 - 1; 100 | int l1 = (MathHelper.floor_double(d + d6) - i * 16) + 1; 101 | d9 = MathHelper.floor_double(d1 - d7) - 1; 102 | int i2 = MathHelper.floor_double(d1 + d7) + 1; 103 | d10 = MathHelper.floor_double(d2 - d6) - j * 16 - 1; 104 | int j2 = (MathHelper.floor_double(d2 + d6) - j * 16) + 1; 105 | if(d8 < 0) 106 | { 107 | d8 = 0; 108 | } 109 | if(l1 > 16) 110 | { 111 | l1 = 16; 112 | } 113 | if(d9 < 1) 114 | { 115 | d9 = 1; 116 | } 117 | if(i2 > 120) 118 | { 119 | i2 = 120; 120 | } 121 | if(d10 < 0) 122 | { 123 | d10 = 0; 124 | } 125 | if(j2 > 16) 126 | { 127 | j2 = 16; 128 | } 129 | boolean flag1 = false; 130 | for(int k2 = (int) d8; !flag1 && k2 < l1; k2++) 131 | { 132 | for(int i3 = (int) d10; !flag1 && i3 < j2; i3++) 133 | { 134 | for(int j3 = i2 + 1; !flag1 && j3 >= d9 - 1; j3--) 135 | { 136 | int k3 = (k2 * 16 + i3) * 128 + j3; 137 | if(j3 < 0 || j3 >= 128) 138 | { 139 | continue; 140 | } 141 | if(abyte0[k3] == Block.waterMoving.blockID || abyte0[k3] == Block.waterStill.blockID) 142 | { 143 | flag1 = true; 144 | } 145 | if(j3 != d9 - 1 && k2 != d8 && k2 != l1 - 1 && i3 != d10 && i3 != j2 - 1) 146 | { 147 | j3 = (int) d9; 148 | } 149 | } 150 | 151 | } 152 | 153 | } 154 | 155 | if(flag1) 156 | { 157 | continue; 158 | } 159 | for(int l2 = (int) d8; l2 < l1; l2++) 160 | { 161 | double d12 = (((double)(l2 + i * 16) + 0.5D) - d) / d6; 162 | label1: 163 | for(int l3 = (int) d10; l3 < j2; l3++) 164 | { 165 | double d13 = (((double)(l3 + j * 16) + 0.5D) - d2) / d6; 166 | int i4 = (l2 * 16 + l3) * 128 + i2; 167 | boolean flag2 = false; 168 | if(d12 * d12 + d13 * d13 >= 1.0D) 169 | { 170 | continue; 171 | } 172 | int j4 = i2 - 1; 173 | do 174 | { 175 | if(j4 < d9) 176 | { 177 | continue label1; 178 | } 179 | double d14 = (((double)j4 + 0.5D) - d1) / d7; 180 | if((d12 * d12 + d13 * d13) * (double)field_35540_a[j4] + (d14 * d14) / 6D < 1.0D) 181 | { 182 | byte byte0 = abyte0[i4]; 183 | if(byte0 == Block.grass.blockID) 184 | { 185 | flag2 = true; 186 | } 187 | if(byte0 == Block.stone.blockID || byte0 == Block.dirt.blockID || byte0 == Block.grass.blockID) 188 | { 189 | if(j4 < 10) 190 | { 191 | abyte0[i4] = (byte)Block.lavaMoving.blockID; 192 | } else 193 | { 194 | abyte0[i4] = 0; 195 | if(flag2 && abyte0[i4 - 1] == Block.dirt.blockID) 196 | { 197 | abyte0[i4 - 1] = (byte)Block.grass.blockID; 198 | } 199 | } 200 | } 201 | } 202 | i4--; 203 | j4--; 204 | } while(true); 205 | } 206 | 207 | } 208 | 209 | if(flag) 210 | { 211 | break; 212 | } 213 | } 214 | 215 | } 216 | 217 | protected void func_666_a(World world, int i, int j, int k, int l, byte abyte0[]) 218 | { 219 | if(rand.nextInt(50) != 0) 220 | { 221 | return; 222 | } 223 | double d = i * 16 + rand.nextInt(16); 224 | double d1 = rand.nextInt(rand.nextInt(40) + 8) + 20; 225 | double d2 = j * 16 + rand.nextInt(16); 226 | int i1 = 1; 227 | for(int j1 = 0; j1 < i1; j1++) 228 | { 229 | float f = rand.nextFloat() * 3.141593F * 2.0F; 230 | float f1 = ((rand.nextFloat() - 0.5F) * 2.0F) / 8F; 231 | float f2 = (rand.nextFloat() * 2.0F + rand.nextFloat()) * 2.0F; 232 | func_35539_a(rand.nextLong(), k, l, abyte0, d, d1, d2, f2, f, f1, 0, 0, 3D); 233 | } 234 | 235 | } 236 | 237 | private float field_35540_a[]; 238 | } 239 | -------------------------------------------------------------------------------- /versions/b1.7.3/Ravines-server/pk.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Ravines-server/pk.class -------------------------------------------------------------------------------- /versions/b1.7.3/Skin-fix-client/EntityOtherPlayerMP.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | 8 | // Referenced classes of package net.minecraft.src: 9 | // EntityPlayer, MathHelper, ItemStack, InventoryPlayer, 10 | // World, Entity 11 | 12 | public class EntityOtherPlayerMP extends EntityPlayer 13 | { 14 | 15 | public EntityOtherPlayerMP(World world, String s) 16 | { 17 | super(world); 18 | field_20924_a = 0.0F; 19 | username = s; 20 | yOffset = 0.0F; 21 | stepHeight = 0.0F; 22 | if(s != null && s.length() > 0) 23 | { 24 | skinUrl = (new StringBuilder()).append("http://skins.minecraft.net/MinecraftSkins/").append(s).append(".png").toString(); 25 | } 26 | noClip = true; 27 | field_22062_y = 0.25F; 28 | renderDistanceWeight = 10D; 29 | } 30 | 31 | protected void resetHeight() 32 | { 33 | yOffset = 0.0F; 34 | } 35 | 36 | public boolean attackEntityFrom(Entity entity, int i) 37 | { 38 | return true; 39 | } 40 | 41 | public void setPositionAndRotation2(double d, double d1, double d2, float f, 42 | float f1, int i) 43 | { 44 | field_784_bh = d; 45 | field_783_bi = d1; 46 | field_782_bj = d2; 47 | field_780_bk = f; 48 | field_786_bl = f1; 49 | field_785_bg = i; 50 | } 51 | 52 | public void onUpdate() 53 | { 54 | field_22062_y = 0.0F; 55 | super.onUpdate(); 56 | field_705_Q = field_704_R; 57 | double d = posX - prevPosX; 58 | double d1 = posZ - prevPosZ; 59 | float f = MathHelper.sqrt_double(d * d + d1 * d1) * 4F; 60 | if(f > 1.0F) 61 | { 62 | f = 1.0F; 63 | } 64 | field_704_R += (f - field_704_R) * 0.4F; 65 | field_703_S += field_704_R; 66 | } 67 | 68 | public float getShadowSize() 69 | { 70 | return 0.0F; 71 | } 72 | 73 | public void onLivingUpdate() 74 | { 75 | super.updatePlayerActionState(); 76 | if(field_785_bg > 0) 77 | { 78 | double d = posX + (field_784_bh - posX) / (double)field_785_bg; 79 | double d1 = posY + (field_783_bi - posY) / (double)field_785_bg; 80 | double d2 = posZ + (field_782_bj - posZ) / (double)field_785_bg; 81 | double d3; 82 | for(d3 = field_780_bk - (double)rotationYaw; d3 < -180D; d3 += 360D) { } 83 | for(; d3 >= 180D; d3 -= 360D) { } 84 | rotationYaw += d3 / (double)field_785_bg; 85 | rotationPitch += (field_786_bl - (double)rotationPitch) / (double)field_785_bg; 86 | field_785_bg--; 87 | setPosition(d, d1, d2); 88 | setRotation(rotationYaw, rotationPitch); 89 | } 90 | field_775_e = field_774_f; 91 | float f = MathHelper.sqrt_double(motionX * motionX + motionZ * motionZ); 92 | float f1 = (float)Math.atan(-motionY * 0.20000000298023224D) * 15F; 93 | if(f > 0.1F) 94 | { 95 | f = 0.1F; 96 | } 97 | if(!onGround || health <= 0) 98 | { 99 | f = 0.0F; 100 | } 101 | if(onGround || health <= 0) 102 | { 103 | f1 = 0.0F; 104 | } 105 | field_774_f += (f - field_774_f) * 0.4F; 106 | field_9328_R += (f1 - field_9328_R) * 0.8F; 107 | } 108 | 109 | public void outfitWithItem(int i, int j, int k) 110 | { 111 | ItemStack itemstack = null; 112 | if(j >= 0) 113 | { 114 | itemstack = new ItemStack(j, 1, k); 115 | } 116 | if(i == 0) 117 | { 118 | inventory.mainInventory[inventory.currentItem] = itemstack; 119 | } else 120 | { 121 | inventory.armorInventory[i - 1] = itemstack; 122 | } 123 | } 124 | 125 | public void func_6420_o() 126 | { 127 | } 128 | 129 | private int field_785_bg; 130 | private double field_784_bh; 131 | private double field_783_bi; 132 | private double field_782_bj; 133 | private double field_780_bk; 134 | private double field_786_bl; 135 | float field_20924_a; 136 | } 137 | -------------------------------------------------------------------------------- /versions/b1.7.3/Skin-fix-client/EntityPlayerSP.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | import net.minecraft.client.Minecraft; 9 | 10 | // Referenced classes of package net.minecraft.src: 11 | // EntityPlayer, MouseFilter, Session, MovementInput, 12 | // AchievementList, StatFileWriter, GuiAchievement, World, 13 | // SoundManager, AxisAlignedBB, NBTTagCompound, GuiEditSign, 14 | // GuiChest, GuiCrafting, GuiFurnace, GuiDispenser, 15 | // EntityPickupFX, EffectRenderer, InventoryPlayer, GuiIngame, 16 | // StatBase, Achievement, MathHelper, TileEntitySign, 17 | // IInventory, TileEntityFurnace, TileEntityDispenser, Entity 18 | 19 | public class EntityPlayerSP extends EntityPlayer 20 | { 21 | 22 | public EntityPlayerSP(Minecraft minecraft, World world, Session session, int i) 23 | { 24 | super(world); 25 | field_21903_bJ = new MouseFilter(); 26 | field_21904_bK = new MouseFilter(); 27 | field_21902_bL = new MouseFilter(); 28 | mc = minecraft; 29 | dimension = i; 30 | if(session != null && session.username != null && session.username.length() > 0) 31 | { 32 | skinUrl = (new StringBuilder()).append("http://skins.minecraft.net/MinecraftSkins/").append(session.username).append(".png").toString(); 33 | } 34 | username = session.username; 35 | } 36 | 37 | public void moveEntity(double d, double d1, double d2) 38 | { 39 | super.moveEntity(d, d1, d2); 40 | } 41 | 42 | public void updatePlayerActionState() 43 | { 44 | super.updatePlayerActionState(); 45 | moveStrafing = movementInput.moveStrafe; 46 | moveForward = movementInput.moveForward; 47 | isJumping = movementInput.jump; 48 | } 49 | 50 | public void onLivingUpdate() 51 | { 52 | if(!mc.statFileWriter.hasAchievementUnlocked(AchievementList.openInventory)) 53 | { 54 | mc.guiAchievement.queueAchievementInformation(AchievementList.openInventory); 55 | } 56 | prevTimeInPortal = timeInPortal; 57 | if(inPortal) 58 | { 59 | if(!worldObj.multiplayerWorld && ridingEntity != null) 60 | { 61 | mountEntity(null); 62 | } 63 | if(mc.currentScreen != null) 64 | { 65 | mc.displayGuiScreen(null); 66 | } 67 | if(timeInPortal == 0.0F) 68 | { 69 | mc.sndManager.playSoundFX("portal.trigger", 1.0F, rand.nextFloat() * 0.4F + 0.8F); 70 | } 71 | timeInPortal += 0.0125F; 72 | if(timeInPortal >= 1.0F) 73 | { 74 | timeInPortal = 1.0F; 75 | if(!worldObj.multiplayerWorld) 76 | { 77 | timeUntilPortal = 10; 78 | mc.sndManager.playSoundFX("portal.travel", 1.0F, rand.nextFloat() * 0.4F + 0.8F); 79 | mc.usePortal(); 80 | } 81 | } 82 | inPortal = false; 83 | } else 84 | { 85 | if(timeInPortal > 0.0F) 86 | { 87 | timeInPortal -= 0.05F; 88 | } 89 | if(timeInPortal < 0.0F) 90 | { 91 | timeInPortal = 0.0F; 92 | } 93 | } 94 | if(timeUntilPortal > 0) 95 | { 96 | timeUntilPortal--; 97 | } 98 | movementInput.updatePlayerMoveState(this); 99 | if(movementInput.sneak && ySize < 0.2F) 100 | { 101 | ySize = 0.2F; 102 | } 103 | pushOutOfBlocks(posX - (double)width * 0.34999999999999998D, boundingBox.minY + 0.5D, posZ + (double)width * 0.34999999999999998D); 104 | pushOutOfBlocks(posX - (double)width * 0.34999999999999998D, boundingBox.minY + 0.5D, posZ - (double)width * 0.34999999999999998D); 105 | pushOutOfBlocks(posX + (double)width * 0.34999999999999998D, boundingBox.minY + 0.5D, posZ - (double)width * 0.34999999999999998D); 106 | pushOutOfBlocks(posX + (double)width * 0.34999999999999998D, boundingBox.minY + 0.5D, posZ + (double)width * 0.34999999999999998D); 107 | super.onLivingUpdate(); 108 | } 109 | 110 | public void resetPlayerKeyState() 111 | { 112 | movementInput.resetKeyState(); 113 | } 114 | 115 | public void handleKeyPress(int i, boolean flag) 116 | { 117 | movementInput.checkKeyForMovementInput(i, flag); 118 | } 119 | 120 | public void writeEntityToNBT(NBTTagCompound nbttagcompound) 121 | { 122 | super.writeEntityToNBT(nbttagcompound); 123 | nbttagcompound.setInteger("Score", score); 124 | } 125 | 126 | public void readEntityFromNBT(NBTTagCompound nbttagcompound) 127 | { 128 | super.readEntityFromNBT(nbttagcompound); 129 | score = nbttagcompound.getInteger("Score"); 130 | } 131 | 132 | public void closeScreen() 133 | { 134 | super.closeScreen(); 135 | mc.displayGuiScreen(null); 136 | } 137 | 138 | public void displayGUIEditSign(TileEntitySign tileentitysign) 139 | { 140 | mc.displayGuiScreen(new GuiEditSign(tileentitysign)); 141 | } 142 | 143 | public void displayGUIChest(IInventory iinventory) 144 | { 145 | mc.displayGuiScreen(new GuiChest(inventory, iinventory)); 146 | } 147 | 148 | public void displayWorkbenchGUI(int i, int j, int k) 149 | { 150 | mc.displayGuiScreen(new GuiCrafting(inventory, worldObj, i, j, k)); 151 | } 152 | 153 | public void displayGUIFurnace(TileEntityFurnace tileentityfurnace) 154 | { 155 | mc.displayGuiScreen(new GuiFurnace(inventory, tileentityfurnace)); 156 | } 157 | 158 | public void displayGUIDispenser(TileEntityDispenser tileentitydispenser) 159 | { 160 | mc.displayGuiScreen(new GuiDispenser(inventory, tileentitydispenser)); 161 | } 162 | 163 | public void onItemPickup(Entity entity, int i) 164 | { 165 | mc.effectRenderer.addEffect(new EntityPickupFX(mc.theWorld, entity, this, -0.5F)); 166 | } 167 | 168 | public int getPlayerArmorValue() 169 | { 170 | return inventory.getTotalArmorValue(); 171 | } 172 | 173 | public void sendChatMessage(String s) 174 | { 175 | } 176 | 177 | public boolean isSneaking() 178 | { 179 | return movementInput.sneak && !sleeping; 180 | } 181 | 182 | public void setHealth(int i) 183 | { 184 | int j = health - i; 185 | if(j <= 0) 186 | { 187 | health = i; 188 | if(j < 0) 189 | { 190 | heartsLife = heartsHalvesLife / 2; 191 | } 192 | } else 193 | { 194 | field_9346_af = j; 195 | prevHealth = health; 196 | heartsLife = heartsHalvesLife; 197 | damageEntity(j); 198 | hurtTime = maxHurtTime = 10; 199 | } 200 | } 201 | 202 | public void respawnPlayer() 203 | { 204 | mc.respawn(false, 0); 205 | } 206 | 207 | public void func_6420_o() 208 | { 209 | } 210 | 211 | public void addChatMessage(String s) 212 | { 213 | mc.ingameGUI.addChatMessageTranslate(s); 214 | } 215 | 216 | public void addStat(StatBase statbase, int i) 217 | { 218 | if(statbase == null) 219 | { 220 | return; 221 | } 222 | if(statbase.func_25067_a()) 223 | { 224 | Achievement achievement = (Achievement)statbase; 225 | if(achievement.parentAchievement == null || mc.statFileWriter.hasAchievementUnlocked(achievement.parentAchievement)) 226 | { 227 | if(!mc.statFileWriter.hasAchievementUnlocked(achievement)) 228 | { 229 | mc.guiAchievement.queueTakenAchievement(achievement); 230 | } 231 | mc.statFileWriter.readStat(statbase, i); 232 | } 233 | } else 234 | { 235 | mc.statFileWriter.readStat(statbase, i); 236 | } 237 | } 238 | 239 | private boolean isBlockTranslucent(int i, int j, int k) 240 | { 241 | return worldObj.isBlockNormalCube(i, j, k); 242 | } 243 | 244 | protected boolean pushOutOfBlocks(double d, double d1, double d2) 245 | { 246 | int i = MathHelper.floor_double(d); 247 | int j = MathHelper.floor_double(d1); 248 | int k = MathHelper.floor_double(d2); 249 | double d3 = d - (double)i; 250 | double d4 = d2 - (double)k; 251 | if(isBlockTranslucent(i, j, k) || isBlockTranslucent(i, j + 1, k)) 252 | { 253 | boolean flag = !isBlockTranslucent(i - 1, j, k) && !isBlockTranslucent(i - 1, j + 1, k); 254 | boolean flag1 = !isBlockTranslucent(i + 1, j, k) && !isBlockTranslucent(i + 1, j + 1, k); 255 | boolean flag2 = !isBlockTranslucent(i, j, k - 1) && !isBlockTranslucent(i, j + 1, k - 1); 256 | boolean flag3 = !isBlockTranslucent(i, j, k + 1) && !isBlockTranslucent(i, j + 1, k + 1); 257 | byte byte0 = -1; 258 | double d5 = 9999D; 259 | if(flag && d3 < d5) 260 | { 261 | d5 = d3; 262 | byte0 = 0; 263 | } 264 | if(flag1 && 1.0D - d3 < d5) 265 | { 266 | d5 = 1.0D - d3; 267 | byte0 = 1; 268 | } 269 | if(flag2 && d4 < d5) 270 | { 271 | d5 = d4; 272 | byte0 = 4; 273 | } 274 | if(flag3 && 1.0D - d4 < d5) 275 | { 276 | double d6 = 1.0D - d4; 277 | byte0 = 5; 278 | } 279 | float f = 0.1F; 280 | if(byte0 == 0) 281 | { 282 | motionX = -f; 283 | } 284 | if(byte0 == 1) 285 | { 286 | motionX = f; 287 | } 288 | if(byte0 == 4) 289 | { 290 | motionZ = -f; 291 | } 292 | if(byte0 == 5) 293 | { 294 | motionZ = f; 295 | } 296 | } 297 | return false; 298 | } 299 | 300 | public MovementInput movementInput; 301 | protected Minecraft mc; 302 | private MouseFilter field_21903_bJ; 303 | private MouseFilter field_21904_bK; 304 | private MouseFilter field_21902_bL; 305 | } 306 | -------------------------------------------------------------------------------- /versions/b1.7.3/Skin-fix-client/dc.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Skin-fix-client/dc.class -------------------------------------------------------------------------------- /versions/b1.7.3/Skin-fix-client/xz.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Skin-fix-client/xz.class -------------------------------------------------------------------------------- /versions/b1.7.3/Spring-propagation-fix-client/BlockFlowing.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // BlockFluid, World, Material, WorldProvider, 11 | // Block 12 | 13 | public class BlockFlowing extends BlockFluid 14 | { 15 | 16 | protected BlockFlowing(int i, Material material) 17 | { 18 | super(i, material); 19 | numAdjacentSources = 0; 20 | isOptimalFlowDirection = new boolean[4]; 21 | flowCost = new int[4]; 22 | } 23 | 24 | private void func_30003_j(World world, int i, int j, int k) 25 | { 26 | int l = world.getBlockMetadata(i, j, k); 27 | world.setBlockAndMetadata(i, j, k, blockID + 1, l); 28 | world.markBlocksDirty(i, j, k, i, j, k); 29 | world.markBlockNeedsUpdate(i, j, k); 30 | } 31 | 32 | public void updateTick(World world, int i, int j, int k, Random random) 33 | { 34 | int l = getFlowDecay(world, i, j, k); 35 | byte byte0 = 1; 36 | if(blockMaterial == Material.lava && !world.worldProvider.isHellWorld) 37 | { 38 | byte0 = 2; 39 | } 40 | boolean flag = true; 41 | if(l > 0) 42 | { 43 | int i1 = -100; 44 | numAdjacentSources = 0; 45 | i1 = getSmallestFlowDecay(world, i - 1, j, k, i1); 46 | i1 = getSmallestFlowDecay(world, i + 1, j, k, i1); 47 | i1 = getSmallestFlowDecay(world, i, j, k - 1, i1); 48 | i1 = getSmallestFlowDecay(world, i, j, k + 1, i1); 49 | int j1 = i1 + byte0; 50 | if(j1 >= 8 || i1 < 0) 51 | { 52 | j1 = -1; 53 | } 54 | if(getFlowDecay(world, i, j + 1, k) >= 0) 55 | { 56 | int l1 = getFlowDecay(world, i, j + 1, k); 57 | if(l1 >= 8) 58 | { 59 | j1 = l1; 60 | } else 61 | { 62 | j1 = l1 + 8; 63 | } 64 | } 65 | if(numAdjacentSources >= 2 && blockMaterial == Material.water) 66 | { 67 | if(world.getBlockMaterial(i, j - 1, k).isSolid()) 68 | { 69 | j1 = 0; 70 | } else 71 | if(world.getBlockMaterial(i, j - 1, k) == blockMaterial && world.getBlockMetadata(i, j - 1, k) == 0) 72 | { 73 | j1 = 0; 74 | } 75 | } 76 | if(blockMaterial == Material.lava && l < 8 && j1 < 8 && j1 > l && random.nextInt(4) != 0) 77 | { 78 | j1 = l; 79 | flag = false; 80 | } 81 | if(j1 != l) 82 | { 83 | l = j1; 84 | if(l < 0) 85 | { 86 | world.setBlockWithNotify(i, j, k, 0); 87 | } else 88 | { 89 | world.setBlockMetadataWithNotify(i, j, k, l); 90 | world.scheduleBlockUpdate(i, j, k, blockID, tickRate()); 91 | world.notifyBlocksOfNeighborChange(i, j, k, blockID); 92 | } 93 | } else 94 | if(flag) 95 | { 96 | func_30003_j(world, i, j, k); 97 | } 98 | } else 99 | { 100 | func_30003_j(world, i, j, k); 101 | } 102 | if(liquidCanDisplaceBlock(world, i, j - 1, k)) 103 | { 104 | if(l >= 8) 105 | { 106 | world.setBlockAndMetadataWithNotify(i, j - 1, k, blockID, l); 107 | } else 108 | { 109 | world.setBlockAndMetadataWithNotify(i, j - 1, k, blockID, l + 8); 110 | } 111 | } else 112 | if(l >= 0 && (l == 0 || blockBlocksFlow(world, i, j - 1, k))) 113 | { 114 | boolean aflag[] = getOptimalFlowDirections(world, i, j, k); 115 | int k1 = l + byte0; 116 | if(l >= 8) 117 | { 118 | k1 = 1; 119 | } 120 | if(k1 >= 8) 121 | { 122 | return; 123 | } 124 | if(aflag[0]) 125 | { 126 | flowIntoBlock(world, i - 1, j, k, k1); 127 | } 128 | if(aflag[1]) 129 | { 130 | flowIntoBlock(world, i + 1, j, k, k1); 131 | } 132 | if(aflag[2]) 133 | { 134 | flowIntoBlock(world, i, j, k - 1, k1); 135 | } 136 | if(aflag[3]) 137 | { 138 | flowIntoBlock(world, i, j, k + 1, k1); 139 | } 140 | } 141 | } 142 | 143 | private void flowIntoBlock(World world, int i, int j, int k, int l) 144 | { 145 | if(liquidCanDisplaceBlock(world, i, j, k)) 146 | { 147 | int i1 = world.getBlockId(i, j, k); 148 | if(i1 > 0) 149 | { 150 | if(blockMaterial == Material.lava) 151 | { 152 | triggerLavaMixEffects(world, i, j, k); 153 | } else 154 | { 155 | Block.blocksList[i1].dropBlockAsItem(world, i, j, k, world.getBlockMetadata(i, j, k)); 156 | } 157 | } 158 | world.setBlockAndMetadataWithNotify(i, j, k, blockID, l); 159 | } 160 | } 161 | 162 | private int calculateFlowCost(World world, int i, int j, int k, int l, int i1) 163 | { 164 | int j1 = 1000; 165 | for(int k1 = 0; k1 < 4; k1++) 166 | { 167 | if(k1 == 0 && i1 == 1 || k1 == 1 && i1 == 0 || k1 == 2 && i1 == 3 || k1 == 3 && i1 == 2) 168 | { 169 | continue; 170 | } 171 | int l1 = i; 172 | int i2 = j; 173 | int j2 = k; 174 | if(k1 == 0) 175 | { 176 | l1--; 177 | } 178 | if(k1 == 1) 179 | { 180 | l1++; 181 | } 182 | if(k1 == 2) 183 | { 184 | j2--; 185 | } 186 | if(k1 == 3) 187 | { 188 | j2++; 189 | } 190 | if(blockBlocksFlow(world, l1, i2, j2) || world.getBlockMaterial(l1, i2, j2) == blockMaterial && world.getBlockMetadata(l1, i2, j2) == 0) 191 | { 192 | continue; 193 | } 194 | if(!blockBlocksFlow(world, l1, i2 - 1, j2)) 195 | { 196 | return l; 197 | } 198 | if(l >= 4) 199 | { 200 | continue; 201 | } 202 | int k2 = calculateFlowCost(world, l1, i2, j2, l + 1, k1); 203 | if(k2 < j1) 204 | { 205 | j1 = k2; 206 | } 207 | } 208 | 209 | return j1; 210 | } 211 | 212 | private boolean[] getOptimalFlowDirections(World world, int i, int j, int k) 213 | { 214 | for(int l = 0; l < 4; l++) 215 | { 216 | flowCost[l] = 1000; 217 | int j1 = i; 218 | int i2 = j; 219 | int j2 = k; 220 | if(l == 0) 221 | { 222 | j1--; 223 | } 224 | if(l == 1) 225 | { 226 | j1++; 227 | } 228 | if(l == 2) 229 | { 230 | j2--; 231 | } 232 | if(l == 3) 233 | { 234 | j2++; 235 | } 236 | if(blockBlocksFlow(world, j1, i2, j2) || world.getBlockMaterial(j1, i2, j2) == blockMaterial && world.getBlockMetadata(j1, i2, j2) == 0) 237 | { 238 | continue; 239 | } 240 | if(!blockBlocksFlow(world, j1, i2 - 1, j2)) 241 | { 242 | flowCost[l] = 0; 243 | } else 244 | { 245 | flowCost[l] = calculateFlowCost(world, j1, i2, j2, 1, l); 246 | } 247 | } 248 | 249 | int i1 = flowCost[0]; 250 | for(int k1 = 1; k1 < 4; k1++) 251 | { 252 | if(flowCost[k1] < i1) 253 | { 254 | i1 = flowCost[k1]; 255 | } 256 | } 257 | 258 | for(int l1 = 0; l1 < 4; l1++) 259 | { 260 | isOptimalFlowDirection[l1] = flowCost[l1] == i1; 261 | } 262 | 263 | return isOptimalFlowDirection; 264 | } 265 | 266 | private boolean blockBlocksFlow(World world, int i, int j, int k) 267 | { 268 | int l = world.getBlockId(i, j, k); 269 | if(l == Block.doorWood.blockID || l == Block.doorSteel.blockID || l == Block.signPost.blockID || l == Block.ladder.blockID || l == Block.reed.blockID) 270 | { 271 | return true; 272 | } 273 | if(l == 0) 274 | { 275 | return false; 276 | } 277 | Material material = Block.blocksList[l].blockMaterial; 278 | return material.getIsSolid(); 279 | } 280 | 281 | protected int getSmallestFlowDecay(World world, int i, int j, int k, int l) 282 | { 283 | int i1 = getFlowDecay(world, i, j, k); 284 | if(i1 < 0) 285 | { 286 | return l; 287 | } 288 | if(i1 == 0) 289 | { 290 | numAdjacentSources++; 291 | } 292 | if(i1 >= 8) 293 | { 294 | i1 = 0; 295 | } 296 | return l >= 0 && i1 >= l ? l : i1; 297 | } 298 | 299 | private boolean liquidCanDisplaceBlock(World world, int i, int j, int k) 300 | { 301 | Material material = world.getBlockMaterial(i, j, k); 302 | if(material == blockMaterial) 303 | { 304 | return false; 305 | } 306 | if(material == Material.lava) 307 | { 308 | return false; 309 | } else 310 | { 311 | return !blockBlocksFlow(world, i, j, k); 312 | } 313 | } 314 | 315 | public void onBlockAdded(World world, int i, int j, int k) 316 | { 317 | super.onBlockAdded(world, i, j, k); 318 | if(world.getBlockId(i, j, k) == blockID) 319 | { 320 | world.scheduleBlockUpdate(i, j, k, blockID, tickRate()); 321 | } 322 | } 323 | 324 | int numAdjacentSources; 325 | boolean isOptimalFlowDirection[]; 326 | int flowCost[]; 327 | } 328 | -------------------------------------------------------------------------------- /versions/b1.7.3/Spring-propagation-fix-client/om.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Spring-propagation-fix-client/om.class -------------------------------------------------------------------------------- /versions/b1.7.3/Spring-propagation-fix-server/BlockFlowing.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // BlockFluid, World, Material, WorldProvider, 11 | // Block 12 | 13 | public class BlockFlowing extends BlockFluid 14 | { 15 | 16 | protected BlockFlowing(int i, Material material) 17 | { 18 | super(i, material); 19 | field_659_a = 0; 20 | field_658_b = new boolean[4]; 21 | field_660_c = new int[4]; 22 | } 23 | 24 | private void func_30004_i(World world, int i, int j, int k) 25 | { 26 | int l = world.getBlockMetadata(i, j, k); 27 | world.setBlockAndMetadata(i, j, k, blockID + 1, l); 28 | world.markBlocksDirty(i, j, k, i, j, k); 29 | world.markBlockNeedsUpdate(i, j, k); 30 | } 31 | 32 | public void updateTick(World world, int i, int j, int k, Random random) 33 | { 34 | int l = func_301_g(world, i, j, k); 35 | byte byte0 = 1; 36 | if(blockMaterial == Material.lava && !world.worldProvider.isHellWorld) 37 | { 38 | byte0 = 2; 39 | } 40 | boolean flag = true; 41 | if(l > 0) 42 | { 43 | int i1 = -100; 44 | field_659_a = 0; 45 | i1 = func_307_e(world, i - 1, j, k, i1); 46 | i1 = func_307_e(world, i + 1, j, k, i1); 47 | i1 = func_307_e(world, i, j, k - 1, i1); 48 | i1 = func_307_e(world, i, j, k + 1, i1); 49 | int j1 = i1 + byte0; 50 | if(j1 >= 8 || i1 < 0) 51 | { 52 | j1 = -1; 53 | } 54 | if(func_301_g(world, i, j + 1, k) >= 0) 55 | { 56 | int l1 = func_301_g(world, i, j + 1, k); 57 | if(l1 >= 8) 58 | { 59 | j1 = l1; 60 | } else 61 | { 62 | j1 = l1 + 8; 63 | } 64 | } 65 | if(field_659_a >= 2 && blockMaterial == Material.water) 66 | { 67 | if(world.getBlockMaterial(i, j - 1, k).isSolid()) 68 | { 69 | j1 = 0; 70 | } else 71 | if(world.getBlockMaterial(i, j - 1, k) == blockMaterial && world.getBlockMetadata(i, j - 1, k) == 0) 72 | { 73 | j1 = 0; 74 | } 75 | } 76 | if(blockMaterial == Material.lava && l < 8 && j1 < 8 && j1 > l && random.nextInt(4) != 0) 77 | { 78 | j1 = l; 79 | flag = false; 80 | } 81 | if(j1 != l) 82 | { 83 | l = j1; 84 | if(l < 0) 85 | { 86 | world.setBlockWithNotify(i, j, k, 0); 87 | } else 88 | { 89 | world.setBlockMetadataWithNotify(i, j, k, l); 90 | world.scheduleUpdateTick(i, j, k, blockID, tickRate()); 91 | world.notifyBlocksOfNeighborChange(i, j, k, blockID); 92 | } 93 | } else 94 | if(flag) 95 | { 96 | func_30004_i(world, i, j, k); 97 | } 98 | } else 99 | { 100 | func_30004_i(world, i, j, k); 101 | } 102 | if(func_312_l(world, i, j - 1, k)) 103 | { 104 | if(l >= 8) 105 | { 106 | world.setBlockAndMetadataWithNotify(i, j - 1, k, blockID, l); 107 | } else 108 | { 109 | world.setBlockAndMetadataWithNotify(i, j - 1, k, blockID, l + 8); 110 | } 111 | } else 112 | if(l >= 0 && (l == 0 || func_309_k(world, i, j - 1, k))) 113 | { 114 | boolean aflag[] = func_4035_j(world, i, j, k); 115 | int k1 = l + byte0; 116 | if(l >= 8) 117 | { 118 | k1 = 1; 119 | } 120 | if(k1 >= 8) 121 | { 122 | return; 123 | } 124 | if(aflag[0]) 125 | { 126 | func_311_f(world, i - 1, j, k, k1); 127 | } 128 | if(aflag[1]) 129 | { 130 | func_311_f(world, i + 1, j, k, k1); 131 | } 132 | if(aflag[2]) 133 | { 134 | func_311_f(world, i, j, k - 1, k1); 135 | } 136 | if(aflag[3]) 137 | { 138 | func_311_f(world, i, j, k + 1, k1); 139 | } 140 | } 141 | } 142 | 143 | private void func_311_f(World world, int i, int j, int k, int l) 144 | { 145 | if(func_312_l(world, i, j, k)) 146 | { 147 | int i1 = world.getBlockId(i, j, k); 148 | if(i1 > 0) 149 | { 150 | if(blockMaterial == Material.lava) 151 | { 152 | func_300_h(world, i, j, k); 153 | } else 154 | { 155 | Block.blocksList[i1].dropBlockAsItem(world, i, j, k, world.getBlockMetadata(i, j, k)); 156 | } 157 | } 158 | world.setBlockAndMetadataWithNotify(i, j, k, blockID, l); 159 | } 160 | } 161 | 162 | private int func_4034_a(World world, int i, int j, int k, int l, int i1) 163 | { 164 | int j1 = 1000; 165 | for(int k1 = 0; k1 < 4; k1++) 166 | { 167 | if(k1 == 0 && i1 == 1 || k1 == 1 && i1 == 0 || k1 == 2 && i1 == 3 || k1 == 3 && i1 == 2) 168 | { 169 | continue; 170 | } 171 | int l1 = i; 172 | int i2 = j; 173 | int j2 = k; 174 | if(k1 == 0) 175 | { 176 | l1--; 177 | } 178 | if(k1 == 1) 179 | { 180 | l1++; 181 | } 182 | if(k1 == 2) 183 | { 184 | j2--; 185 | } 186 | if(k1 == 3) 187 | { 188 | j2++; 189 | } 190 | if(func_309_k(world, l1, i2, j2) || world.getBlockMaterial(l1, i2, j2) == blockMaterial && world.getBlockMetadata(l1, i2, j2) == 0) 191 | { 192 | continue; 193 | } 194 | if(!func_309_k(world, l1, i2 - 1, j2)) 195 | { 196 | return l; 197 | } 198 | if(l >= 4) 199 | { 200 | continue; 201 | } 202 | int k2 = func_4034_a(world, l1, i2, j2, l + 1, k1); 203 | if(k2 < j1) 204 | { 205 | j1 = k2; 206 | } 207 | } 208 | 209 | return j1; 210 | } 211 | 212 | private boolean[] func_4035_j(World world, int i, int j, int k) 213 | { 214 | for(int l = 0; l < 4; l++) 215 | { 216 | field_660_c[l] = 1000; 217 | int j1 = i; 218 | int i2 = j; 219 | int j2 = k; 220 | if(l == 0) 221 | { 222 | j1--; 223 | } 224 | if(l == 1) 225 | { 226 | j1++; 227 | } 228 | if(l == 2) 229 | { 230 | j2--; 231 | } 232 | if(l == 3) 233 | { 234 | j2++; 235 | } 236 | if(func_309_k(world, j1, i2, j2) || world.getBlockMaterial(j1, i2, j2) == blockMaterial && world.getBlockMetadata(j1, i2, j2) == 0) 237 | { 238 | continue; 239 | } 240 | if(!func_309_k(world, j1, i2 - 1, j2)) 241 | { 242 | field_660_c[l] = 0; 243 | } else 244 | { 245 | field_660_c[l] = func_4034_a(world, j1, i2, j2, 1, l); 246 | } 247 | } 248 | 249 | int i1 = field_660_c[0]; 250 | for(int k1 = 1; k1 < 4; k1++) 251 | { 252 | if(field_660_c[k1] < i1) 253 | { 254 | i1 = field_660_c[k1]; 255 | } 256 | } 257 | 258 | for(int l1 = 0; l1 < 4; l1++) 259 | { 260 | field_658_b[l1] = field_660_c[l1] == i1; 261 | } 262 | 263 | return field_658_b; 264 | } 265 | 266 | private boolean func_309_k(World world, int i, int j, int k) 267 | { 268 | int l = world.getBlockId(i, j, k); 269 | if(l == Block.doorWood.blockID || l == Block.doorSteel.blockID || l == Block.signPost.blockID || l == Block.ladder.blockID || l == Block.reed.blockID) 270 | { 271 | return true; 272 | } 273 | if(l == 0) 274 | { 275 | return false; 276 | } 277 | Material material = Block.blocksList[l].blockMaterial; 278 | return material.getIsSolid(); 279 | } 280 | 281 | protected int func_307_e(World world, int i, int j, int k, int l) 282 | { 283 | int i1 = func_301_g(world, i, j, k); 284 | if(i1 < 0) 285 | { 286 | return l; 287 | } 288 | if(i1 == 0) 289 | { 290 | field_659_a++; 291 | } 292 | if(i1 >= 8) 293 | { 294 | i1 = 0; 295 | } 296 | return l >= 0 && i1 >= l ? l : i1; 297 | } 298 | 299 | private boolean func_312_l(World world, int i, int j, int k) 300 | { 301 | Material material = world.getBlockMaterial(i, j, k); 302 | if(material == blockMaterial) 303 | { 304 | return false; 305 | } 306 | if(material == Material.lava) 307 | { 308 | return false; 309 | } else 310 | { 311 | return !func_309_k(world, i, j, k); 312 | } 313 | } 314 | 315 | public void onBlockAdded(World world, int i, int j, int k) 316 | { 317 | super.onBlockAdded(world, i, j, k); 318 | if(world.getBlockId(i, j, k) == blockID) 319 | { 320 | world.scheduleUpdateTick(i, j, k, blockID, tickRate()); 321 | } 322 | } 323 | 324 | int field_659_a; 325 | boolean field_658_b[]; 326 | int field_660_c[]; 327 | } 328 | -------------------------------------------------------------------------------- /versions/b1.7.3/Spring-propagation-fix-server/jc.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Spring-propagation-fix-server/jc.class -------------------------------------------------------------------------------- /versions/b1.7.3/Tool-fix-client/ItemAxe.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | 8 | // Referenced classes of package net.minecraft.src: 9 | // ItemTool, Block, EnumToolMaterial 10 | 11 | public class ItemAxe extends ItemTool 12 | { 13 | 14 | protected ItemAxe(int i, EnumToolMaterial enumtoolmaterial) 15 | { 16 | super(i, 3, enumtoolmaterial, blocksEffectiveAgainst); 17 | } 18 | 19 | private static Block blocksEffectiveAgainst[]; 20 | 21 | static 22 | { 23 | blocksEffectiveAgainst = (new Block[] { 24 | Block.planks, Block.bookShelf, Block.wood, Block.chest, Block.workbench, Block.doorWood, Block.stairCompactPlanks, Block.pressurePlatePlanks, Block.fence, Block.trapdoor, 25 | Block.jukebox, Block.pumpkin, Block.pumpkinLantern, Block.signPost, Block.signWall, Block.musicBlock, Block.ladder 26 | }); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /versions/b1.7.3/Tool-fix-client/ItemPickaxe.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | 8 | // Referenced classes of package net.minecraft.src: 9 | // ItemTool, Block, EnumToolMaterial, Material 10 | 11 | public class ItemPickaxe extends ItemTool 12 | { 13 | 14 | protected ItemPickaxe(int i, EnumToolMaterial enumtoolmaterial) 15 | { 16 | super(i, 2, enumtoolmaterial, blocksEffectiveAgainst); 17 | } 18 | 19 | public boolean canHarvestBlock(Block block) 20 | { 21 | if(block == Block.obsidian) 22 | { 23 | return toolMaterial.getHarvestLevel() == 3; 24 | } 25 | if(block == Block.blockDiamond || block == Block.oreDiamond) 26 | { 27 | return toolMaterial.getHarvestLevel() >= 2; 28 | } 29 | if(block == Block.blockGold || block == Block.oreGold) 30 | { 31 | return toolMaterial.getHarvestLevel() >= 2; 32 | } 33 | if(block == Block.blockSteel || block == Block.oreIron) 34 | { 35 | return toolMaterial.getHarvestLevel() >= 1; 36 | } 37 | if(block == Block.blockLapis || block == Block.oreLapis) 38 | { 39 | return toolMaterial.getHarvestLevel() >= 1; 40 | } 41 | if(block == Block.oreRedstone || block == Block.oreRedstoneGlowing) 42 | { 43 | return toolMaterial.getHarvestLevel() >= 2; 44 | } 45 | if(block.blockMaterial == Material.rock) 46 | { 47 | return true; 48 | } 49 | return block.blockMaterial == Material.iron; 50 | } 51 | 52 | private static Block blocksEffectiveAgainst[]; 53 | 54 | static 55 | { 56 | blocksEffectiveAgainst = (new Block[] { 57 | Block.cobblestone, Block.stairDouble, Block.stairSingle, Block.stone, Block.sandStone, Block.cobblestoneMossy, Block.oreIron, Block.blockSteel, Block.oreCoal, Block.blockGold, 58 | Block.oreGold, Block.oreDiamond, Block.blockDiamond, Block.ice, Block.netherrack, Block.oreLapis, Block.blockLapis, Block.oreRedstone, Block.oreRedstoneGlowing, Block.stairCompactCobblestone, 59 | Block.doorSteel, Block.brick, Block.stoneOvenIdle, Block.stoneOvenActive, Block.dispenser, Block.pressurePlateStone, Block.rail, Block.railPowered, Block.railDetector 60 | }); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /versions/b1.7.3/Tool-fix-client/au.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Tool-fix-client/au.class -------------------------------------------------------------------------------- /versions/b1.7.3/Tool-fix-client/ta.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Tool-fix-client/ta.class -------------------------------------------------------------------------------- /versions/b1.7.3/Water-lift-client/fz.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Water-lift-client/fz.class -------------------------------------------------------------------------------- /versions/b1.7.3/Water-lift-server/EntityBoat.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.List; 8 | import java.util.Random; 9 | 10 | // Referenced classes of package net.minecraft.src: 11 | // Entity, World, Block, Item, 12 | // AxisAlignedBB, Material, MathHelper, EntityPlayer, 13 | // NBTTagCompound 14 | 15 | public class EntityBoat extends Entity 16 | { 17 | 18 | public EntityBoat(World world) 19 | { 20 | super(world); 21 | damageTaken = 0; 22 | field_9177_b = 0; 23 | forwardDirection = 1; 24 | preventEntitySpawning = true; 25 | setSize(1.5F, 0.6F); 26 | yOffset = height / 2.0F; 27 | } 28 | 29 | protected boolean func_25017_l() 30 | { 31 | return false; 32 | } 33 | 34 | protected void entityInit() 35 | { 36 | } 37 | 38 | public AxisAlignedBB func_89_d(Entity entity) 39 | { 40 | return entity.boundingBox; 41 | } 42 | 43 | public AxisAlignedBB getBoundingBox() 44 | { 45 | return boundingBox; 46 | } 47 | 48 | public boolean canBePushed() 49 | { 50 | return true; 51 | } 52 | 53 | public EntityBoat(World world, double d, double d1, double d2) 54 | { 55 | this(world); 56 | setPosition(d, d1 + (double)yOffset, d2); 57 | motionX = 0.0D; 58 | motionY = 0.0D; 59 | motionZ = 0.0D; 60 | prevPosX = d; 61 | prevPosY = d1; 62 | prevPosZ = d2; 63 | } 64 | 65 | public double getMountedYOffset() 66 | { 67 | return (double)height * 0.0D - 0.30000001192092896D; 68 | } 69 | 70 | public boolean attackEntityFrom(Entity entity, int i) 71 | { 72 | if(worldObj.singleplayerWorld || isDead) 73 | { 74 | return true; 75 | } 76 | forwardDirection = -forwardDirection; 77 | field_9177_b = 10; 78 | damageTaken += i * 10; 79 | setBeenAttacked(); 80 | if(damageTaken > 40) 81 | { 82 | if(riddenByEntity != null) 83 | { 84 | riddenByEntity.mountEntity(this); 85 | } 86 | for(int j = 0; j < 3; j++) 87 | { 88 | dropItemWithOffset(Block.planks.blockID, 1, 0.0F); 89 | } 90 | 91 | for(int k = 0; k < 2; k++) 92 | { 93 | dropItemWithOffset(Item.stick.shiftedIndex, 1, 0.0F); 94 | } 95 | 96 | setEntityDead(); 97 | } 98 | return true; 99 | } 100 | 101 | public boolean canBeCollidedWith() 102 | { 103 | return !isDead; 104 | } 105 | 106 | public void onUpdate() 107 | { 108 | super.onUpdate(); 109 | if(field_9177_b > 0) 110 | { 111 | field_9177_b--; 112 | } 113 | if(damageTaken > 0) 114 | { 115 | damageTaken--; 116 | } 117 | prevPosX = posX; 118 | prevPosY = posY; 119 | prevPosZ = posZ; 120 | int i = 5; 121 | double d = 0.0D; 122 | for(int j = 0; j < i; j++) 123 | { 124 | double d5 = (boundingBox.minY + ((boundingBox.maxY - boundingBox.minY) * (double)(j + 0)) / (double)i) - 0.125D; 125 | double d9 = (boundingBox.minY + ((boundingBox.maxY - boundingBox.minY) * (double)(j + 1)) / (double)i) - 0.125D; 126 | AxisAlignedBB axisalignedbb = AxisAlignedBB.getBoundingBoxFromPool(boundingBox.minX, d5, boundingBox.minZ, boundingBox.maxX, d9, boundingBox.maxZ); 127 | if(worldObj.isAABBInMaterial(axisalignedbb, Material.water)) 128 | { 129 | d += 1.0D / (double)i; 130 | } 131 | } 132 | 133 | if(worldObj.singleplayerWorld) 134 | { 135 | if(field_9176_d > 0) 136 | { 137 | double d1 = posX + (field_9174_e - posX) / (double)field_9176_d; 138 | double d6 = posY + (field_9172_f - posY) / (double)field_9176_d; 139 | double d10 = posZ + (field_9175_aj - posZ) / (double)field_9176_d; 140 | double d14; 141 | for(d14 = field_9173_ak - (double)rotationYaw; d14 < -180D; d14 += 360D) { } 142 | for(; d14 >= 180D; d14 -= 360D) { } 143 | rotationYaw += d14 / (double)field_9176_d; 144 | rotationPitch += (field_9171_al - (double)rotationPitch) / (double)field_9176_d; 145 | field_9176_d--; 146 | setPosition(d1, d6, d10); 147 | setRotation(rotationYaw, rotationPitch); 148 | } else 149 | { 150 | double d2 = posX + motionX; 151 | double d7 = posY + motionY; 152 | double d11 = posZ + motionZ; 153 | setPosition(d2, d7, d11); 154 | if(onGround) 155 | { 156 | motionX *= 0.5D; 157 | motionY *= 0.5D; 158 | motionZ *= 0.5D; 159 | } 160 | motionX *= 0.99000000953674316D; 161 | motionY *= 0.94999998807907104D; 162 | motionZ *= 0.99000000953674316D; 163 | } 164 | return; 165 | } 166 | double d3 = d * 2D - 1.0D; 167 | motionY += 0.039999999105930328D * d3; 168 | if(riddenByEntity != null) 169 | { 170 | motionX += riddenByEntity.motionX * 0.20000000000000001D; 171 | motionZ += riddenByEntity.motionZ * 0.20000000000000001D; 172 | } 173 | double d4 = 0.40000000000000002D; 174 | if(motionX < -d4) 175 | { 176 | motionX = -d4; 177 | } 178 | if(motionX > d4) 179 | { 180 | motionX = d4; 181 | } 182 | if(motionZ < -d4) 183 | { 184 | motionZ = -d4; 185 | } 186 | if(motionZ > d4) 187 | { 188 | motionZ = d4; 189 | } 190 | if(onGround) 191 | { 192 | motionX *= 0.5D; 193 | motionY *= 0.5D; 194 | motionZ *= 0.5D; 195 | } 196 | moveEntity(motionX, motionY, motionZ); 197 | double d8 = Math.sqrt(motionX * motionX + motionZ * motionZ); 198 | if(d8 > 0.14999999999999999D) 199 | { 200 | double d12 = Math.cos(((double)rotationYaw * 3.1415926535897931D) / 180D); 201 | double d15 = Math.sin(((double)rotationYaw * 3.1415926535897931D) / 180D); 202 | for(int i1 = 0; (double)i1 < 1.0D + d8 * 60D; i1++) 203 | { 204 | double d18 = rand.nextFloat() * 2.0F - 1.0F; 205 | double d20 = (double)(rand.nextInt(2) * 2 - 1) * 0.69999999999999996D; 206 | if(rand.nextBoolean()) 207 | { 208 | double d21 = (posX - d12 * d18 * 0.80000000000000004D) + d15 * d20; 209 | double d23 = posZ - d15 * d18 * 0.80000000000000004D - d12 * d20; 210 | worldObj.spawnParticle("splash", d21, posY - 0.125D, d23, motionX, motionY, motionZ); 211 | } else 212 | { 213 | double d22 = posX + d12 + d15 * d18 * 0.69999999999999996D; 214 | double d24 = (posZ + d15) - d12 * d18 * 0.69999999999999996D; 215 | worldObj.spawnParticle("splash", d22, posY - 0.125D, d24, motionX, motionY, motionZ); 216 | } 217 | } 218 | 219 | } 220 | if(isCollidedHorizontally && d8 > 0.14999999999999999D) 221 | { 222 | if(!worldObj.singleplayerWorld) 223 | { 224 | setEntityDead(); 225 | for(int k = 0; k < 3; k++) 226 | { 227 | dropItemWithOffset(Block.planks.blockID, 1, 0.0F); 228 | } 229 | 230 | for(int l = 0; l < 2; l++) 231 | { 232 | dropItemWithOffset(Item.stick.shiftedIndex, 1, 0.0F); 233 | } 234 | 235 | } 236 | } else 237 | { 238 | motionX *= 0.99000000953674316D; 239 | motionY *= 0.94999998807907104D; 240 | motionZ *= 0.99000000953674316D; 241 | } 242 | rotationPitch = 0.0F; 243 | double d13 = rotationYaw; 244 | double d16 = prevPosX - posX; 245 | double d17 = prevPosZ - posZ; 246 | if(d16 * d16 + d17 * d17 > 0.001D) 247 | { 248 | d13 = (float)((Math.atan2(d17, d16) * 180D) / 3.1415926535897931D); 249 | } 250 | double d19; 251 | for(d19 = d13 - (double)rotationYaw; d19 >= 180D; d19 -= 360D) { } 252 | for(; d19 < -180D; d19 += 360D) { } 253 | if(d19 > 20D) 254 | { 255 | d19 = 20D; 256 | } 257 | if(d19 < -20D) 258 | { 259 | d19 = -20D; 260 | } 261 | rotationYaw += d19; 262 | setRotation(rotationYaw, rotationPitch); 263 | List list = worldObj.getEntitiesWithinAABBExcludingEntity(this, boundingBox.expand(0.20000000298023224D, 0.0D, 0.20000000298023224D)); 264 | if(list != null && list.size() > 0) 265 | { 266 | for(int j1 = 0; j1 < list.size(); j1++) 267 | { 268 | Entity entity = (Entity)list.get(j1); 269 | if(entity != riddenByEntity && entity.canBePushed() && (entity instanceof EntityBoat)) 270 | { 271 | entity.applyEntityCollision(this); 272 | } 273 | } 274 | 275 | } 276 | for(int k1 = 0; k1 < 4; k1++) 277 | { 278 | int l1 = MathHelper.floor_double(posX + ((double)(k1 % 2) - 0.5D) * 0.80000000000000004D); 279 | int i2 = MathHelper.floor_double(posY); 280 | int j2 = MathHelper.floor_double(posZ + ((double)(k1 / 2) - 0.5D) * 0.80000000000000004D); 281 | if(worldObj.getBlockId(l1, i2, j2) == Block.snow.blockID) 282 | { 283 | worldObj.setBlockWithNotify(l1, i2, j2, 0); 284 | } 285 | } 286 | 287 | if(riddenByEntity != null && riddenByEntity.isDead) 288 | { 289 | riddenByEntity = null; 290 | } 291 | } 292 | 293 | public void updateRiderPosition() 294 | { 295 | if(riddenByEntity == null) 296 | { 297 | return; 298 | } else 299 | { 300 | double d = Math.cos(((double)rotationYaw * 3.1415926535897931D) / 180D) * 0.40000000000000002D; 301 | double d1 = Math.sin(((double)rotationYaw * 3.1415926535897931D) / 180D) * 0.40000000000000002D; 302 | riddenByEntity.setPosition(posX + d, posY + getMountedYOffset() + riddenByEntity.getYOffset(), posZ + d1); 303 | return; 304 | } 305 | } 306 | 307 | protected void writeEntityToNBT(NBTTagCompound nbttagcompound) 308 | { 309 | } 310 | 311 | protected void readEntityFromNBT(NBTTagCompound nbttagcompound) 312 | { 313 | } 314 | 315 | public boolean interact(EntityPlayer entityplayer) 316 | { 317 | if(riddenByEntity != null && (riddenByEntity instanceof EntityPlayer) && riddenByEntity != entityplayer) 318 | { 319 | return true; 320 | } 321 | if(!worldObj.singleplayerWorld) 322 | { 323 | entityplayer.mountEntity(this); 324 | } 325 | return true; 326 | } 327 | 328 | public int damageTaken; 329 | public int field_9177_b; 330 | public int forwardDirection; 331 | private int field_9176_d; 332 | private double field_9174_e; 333 | private double field_9172_f; 334 | private double field_9175_aj; 335 | private double field_9173_ak; 336 | private double field_9171_al; 337 | } 338 | -------------------------------------------------------------------------------- /versions/b1.7.3/Water-lift-server/eb.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Water-lift-server/eb.class -------------------------------------------------------------------------------- /versions/b1.7.3/Winter-mode-client/WorldChunkManager.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // NoiseGeneratorOctaves2, World, ChunkCoordIntPair, BiomeGenBase 11 | 12 | public class WorldChunkManager 13 | { 14 | 15 | protected WorldChunkManager() 16 | { 17 | } 18 | 19 | public WorldChunkManager(World world) 20 | { 21 | field_4194_e = new NoiseGeneratorOctaves2(new Random(world.getRandomSeed() * 9871L), 4); 22 | field_4193_f = new NoiseGeneratorOctaves2(new Random(world.getRandomSeed() * 39811L), 4); 23 | field_4192_g = new NoiseGeneratorOctaves2(new Random(world.getRandomSeed() * 0x84a59L), 2); 24 | } 25 | 26 | public BiomeGenBase getBiomeGenAtChunkCoord(ChunkCoordIntPair chunkcoordintpair) 27 | { 28 | return getBiomeGenAt(chunkcoordintpair.chunkXPos << 4, chunkcoordintpair.chunkZPos << 4); 29 | } 30 | 31 | public BiomeGenBase getBiomeGenAt(int i, int j) 32 | { 33 | return func_4069_a(i, j, 1, 1)[0]; 34 | } 35 | 36 | public double getTemperature(int i, int j) 37 | { 38 | temperature = field_4194_e.func_4112_a(temperature, i, j, 1, 1, 0.02500000037252903D, 0.02500000037252903D, 0.5D); 39 | return temperature[0]; 40 | } 41 | 42 | public BiomeGenBase[] func_4069_a(int i, int j, int k, int l) 43 | { 44 | field_4195_d = loadBlockGeneratorData(field_4195_d, i, j, k, l); 45 | return field_4195_d; 46 | } 47 | 48 | public double[] getTemperatures(double ad[], int i, int j, int k, int l) 49 | { 50 | if(ad == null || ad.length < k * l) 51 | { 52 | ad = new double[k * l]; 53 | } 54 | ad = field_4194_e.func_4112_a(ad, i, j, k, l, 0.02500000037252903D, 0.02500000037252903D, 0.25D); 55 | field_4196_c = field_4192_g.func_4112_a(field_4196_c, i, j, k, l, 0.25D, 0.25D, 0.58823529411764708D); 56 | int i1 = 0; 57 | for(int j1 = 0; j1 < k; j1++) 58 | { 59 | for(int k1 = 0; k1 < l; k1++) 60 | { 61 | double d = field_4196_c[i1] * 1.1000000000000001D + 0.5D; 62 | double d1 = 0.01D; 63 | double d2 = 1.0D - d1; 64 | double d3 = (ad[i1] * 0.14999999999999999D + 0.69999999999999996D) * d2 + d * d1; 65 | d3 = 1.0D - (1.0D - d3) * (1.0D - d3); 66 | if(d3 < 0.0D) 67 | { 68 | d3 = 0.0D; 69 | } 70 | if(d3 > 0.49D) 71 | { 72 | d3 = 0.49D; 73 | } 74 | ad[i1] = d3; 75 | i1++; 76 | } 77 | 78 | } 79 | 80 | return ad; 81 | } 82 | 83 | public BiomeGenBase[] loadBlockGeneratorData(BiomeGenBase abiomegenbase[], int i, int j, int k, int l) 84 | { 85 | if(abiomegenbase == null || abiomegenbase.length < k * l) 86 | { 87 | abiomegenbase = new BiomeGenBase[k * l]; 88 | } 89 | temperature = field_4194_e.func_4112_a(temperature, i, j, k, k, 0.02500000037252903D, 0.02500000037252903D, 0.25D); 90 | humidity = field_4193_f.func_4112_a(humidity, i, j, k, k, 0.05000000074505806D, 0.05000000074505806D, 0.33333333333333331D); 91 | field_4196_c = field_4192_g.func_4112_a(field_4196_c, i, j, k, k, 0.25D, 0.25D, 0.58823529411764708D); 92 | int i1 = 0; 93 | for(int j1 = 0; j1 < k; j1++) 94 | { 95 | for(int k1 = 0; k1 < l; k1++) 96 | { 97 | double d = field_4196_c[i1] * 1.1000000000000001D + 0.5D; 98 | double d1 = 0.01D; 99 | double d2 = 1.0D - d1; 100 | double d3 = (temperature[i1] * 0.14999999999999999D + 0.69999999999999996D) * d2 + d * d1; 101 | d1 = 0.002D; 102 | d2 = 1.0D - d1; 103 | double d4 = (humidity[i1] * 0.14999999999999999D + 0.5D) * d2 + d * d1; 104 | d3 = 1.0D - (1.0D - d3) * (1.0D - d3); 105 | if(d3 < 0.0D) 106 | { 107 | d3 = 0.0D; 108 | } 109 | if(d4 < 0.0D) 110 | { 111 | d4 = 0.0D; 112 | } 113 | if(d3 > 0.49D) 114 | { 115 | d3 = 0.49D; 116 | } 117 | if(d4 > 0.49D) 118 | { 119 | d4 = 0.49D; 120 | } 121 | temperature[i1] = d3; 122 | humidity[i1] = d4; 123 | abiomegenbase[i1++] = BiomeGenBase.getBiomeFromLookup(d3, d4); 124 | } 125 | 126 | } 127 | 128 | return abiomegenbase; 129 | } 130 | 131 | private NoiseGeneratorOctaves2 field_4194_e; 132 | private NoiseGeneratorOctaves2 field_4193_f; 133 | private NoiseGeneratorOctaves2 field_4192_g; 134 | public double temperature[]; 135 | public double humidity[]; 136 | public double field_4196_c[]; 137 | public BiomeGenBase field_4195_d[]; 138 | } 139 | -------------------------------------------------------------------------------- /versions/b1.7.3/Winter-mode-client/fd.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Winter-mode-client/fd.class -------------------------------------------------------------------------------- /versions/b1.7.3/Winter-mode-client/xv.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Winter-mode-client/xv.class -------------------------------------------------------------------------------- /versions/b1.7.3/Winter-mode-server/WorldChunkManager.java: -------------------------------------------------------------------------------- 1 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. 2 | // Jad home page: http://www.kpdus.com/jad.html 3 | // Decompiler options: packimports(3) braces deadcode 4 | 5 | package net.minecraft.src; 6 | 7 | import java.util.Random; 8 | 9 | // Referenced classes of package net.minecraft.src: 10 | // NoiseGeneratorOctaves2, World, ChunkCoordIntPair, BiomeGenBase 11 | 12 | public class WorldChunkManager 13 | { 14 | 15 | protected WorldChunkManager() 16 | { 17 | } 18 | 19 | public WorldChunkManager(World world) 20 | { 21 | field_4255_e = new NoiseGeneratorOctaves2(new Random(world.getRandomSeed() * 9871L), 4); 22 | field_4254_f = new NoiseGeneratorOctaves2(new Random(world.getRandomSeed() * 39811L), 4); 23 | field_4253_g = new NoiseGeneratorOctaves2(new Random(world.getRandomSeed() * 0x84a59L), 2); 24 | } 25 | 26 | public BiomeGenBase func_4066_a(ChunkCoordIntPair chunkcoordintpair) 27 | { 28 | return getBiomeGenAt(chunkcoordintpair.chunkXPos << 4, chunkcoordintpair.chunkZPos << 4); 29 | } 30 | 31 | public BiomeGenBase getBiomeGenAt(int i, int j) 32 | { 33 | return func_4065_a(i, j, 1, 1)[0]; 34 | } 35 | 36 | public BiomeGenBase[] func_4065_a(int i, int j, int k, int l) 37 | { 38 | field_4256_d = loadBlockGeneratorData(field_4256_d, i, j, k, l); 39 | return field_4256_d; 40 | } 41 | 42 | public double[] getTemperatures(double ad[], int i, int j, int k, int l) 43 | { 44 | if(ad == null || ad.length < k * l) 45 | { 46 | ad = new double[k * l]; 47 | } 48 | ad = field_4255_e.func_4101_a(ad, i, j, k, l, 0.02500000037252903D, 0.02500000037252903D, 0.25D); 49 | field_4257_c = field_4253_g.func_4101_a(field_4257_c, i, j, k, l, 0.25D, 0.25D, 0.58823529411764708D); 50 | int i1 = 0; 51 | for(int j1 = 0; j1 < k; j1++) 52 | { 53 | for(int k1 = 0; k1 < l; k1++) 54 | { 55 | double d = field_4257_c[i1] * 1.1000000000000001D + 0.5D; 56 | double d1 = 0.01D; 57 | double d2 = 1.0D - d1; 58 | double d3 = (ad[i1] * 0.14999999999999999D + 0.69999999999999996D) * d2 + d * d1; 59 | d3 = 1.0D - (1.0D - d3) * (1.0D - d3); 60 | if(d3 < 0.0D) 61 | { 62 | d3 = 0.0D; 63 | } 64 | if(d3 > 0.49D) 65 | { 66 | d3 = 0.49D; 67 | } 68 | ad[i1] = d3; 69 | i1++; 70 | } 71 | 72 | } 73 | 74 | return ad; 75 | } 76 | 77 | public BiomeGenBase[] loadBlockGeneratorData(BiomeGenBase abiomegenbase[], int i, int j, int k, int l) 78 | { 79 | if(abiomegenbase == null || abiomegenbase.length < k * l) 80 | { 81 | abiomegenbase = new BiomeGenBase[k * l]; 82 | } 83 | temperature = field_4255_e.func_4101_a(temperature, i, j, k, k, 0.02500000037252903D, 0.02500000037252903D, 0.25D); 84 | humidity = field_4254_f.func_4101_a(humidity, i, j, k, k, 0.05000000074505806D, 0.05000000074505806D, 0.33333333333333331D); 85 | field_4257_c = field_4253_g.func_4101_a(field_4257_c, i, j, k, k, 0.25D, 0.25D, 0.58823529411764708D); 86 | int i1 = 0; 87 | for(int j1 = 0; j1 < k; j1++) 88 | { 89 | for(int k1 = 0; k1 < l; k1++) 90 | { 91 | double d = field_4257_c[i1] * 1.1000000000000001D + 0.5D; 92 | double d1 = 0.01D; 93 | double d2 = 1.0D - d1; 94 | double d3 = (temperature[i1] * 0.14999999999999999D + 0.69999999999999996D) * d2 + d * d1; 95 | d1 = 0.002D; 96 | d2 = 1.0D - d1; 97 | double d4 = (humidity[i1] * 0.14999999999999999D + 0.5D) * d2 + d * d1; 98 | d3 = 1.0D - (1.0D - d3) * (1.0D - d3); 99 | if(d3 < 0.0D) 100 | { 101 | d3 = 0.0D; 102 | } 103 | if(d4 < 0.0D) 104 | { 105 | d4 = 0.0D; 106 | } 107 | if(d3 > 0.49D) 108 | { 109 | d3 = 0.49D; 110 | } 111 | if(d4 > 0.49D) 112 | { 113 | d4 = 0.49D; 114 | } 115 | temperature[i1] = d3; 116 | humidity[i1] = d4; 117 | abiomegenbase[i1++] = BiomeGenBase.getBiomeFromLookup(d3, d4); 118 | } 119 | 120 | } 121 | 122 | return abiomegenbase; 123 | } 124 | 125 | private NoiseGeneratorOctaves2 field_4255_e; 126 | private NoiseGeneratorOctaves2 field_4254_f; 127 | private NoiseGeneratorOctaves2 field_4253_g; 128 | public double temperature[]; 129 | public double humidity[]; 130 | public double field_4257_c[]; 131 | public BiomeGenBase field_4256_d[]; 132 | } 133 | -------------------------------------------------------------------------------- /versions/b1.7.3/Winter-mode-server/dj.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Winter-mode-server/dj.class -------------------------------------------------------------------------------- /versions/b1.7.3/Winter-mode-server/ph.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SnowshoeIceboot/mcmods/b67ea8caa56104f21352e264f527b64b6eaf009f/versions/b1.7.3/Winter-mode-server/ph.class -------------------------------------------------------------------------------- /versions/b1.7.3/b1.7.3m.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "b1.7.3m", 3 | "time": "2016-02-02T08:37:47-07:00", 4 | "releaseTime": "2011-07-07T15:00:00-07:00", 5 | "type": "old_beta", 6 | "minecraftArguments": "${auth_player_name} ${auth_session} --gameDir ${game_directory} --assetsDir ${game_assets} --tweakClass damt.ModLoaderTweaker", 7 | "libraries": [ 8 | { 9 | "name": "damt:damt:0.1" 10 | }, 11 | { 12 | "name": "net.minecraft:launchwrapper:1.5", 13 | "downloads": { 14 | "artifact": { 15 | "url": "https://libraries.minecraft.net/net/minecraft/launchwrapper/1.5/launchwrapper-1.5.jar", 16 | "sha1": "5150b9c2951f0fde987ce9c33496e26add1de224", 17 | "size": 27787 18 | } 19 | } 20 | }, 21 | { 22 | "name": "net.sf.jopt-simple:jopt-simple:4.5", 23 | "downloads": { 24 | "artifact": { 25 | "url": "https://libraries.minecraft.net/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar", 26 | "sha1": "6065cc95c661255349c1d0756657be17c29a4fd3", 27 | "size": 61311 28 | } 29 | } 30 | }, 31 | { 32 | "name": "org.ow2.asm:asm-all:4.1", 33 | "downloads": { 34 | "artifact": { 35 | "url": "https://libraries.minecraft.net/org/ow2/asm/asm-all/4.1/asm-all-4.1.jar", 36 | "sha1": "054986e962b88d8660ae4566475658469595ef58", 37 | "size": 214592 38 | } 39 | } 40 | }, 41 | { 42 | "name": "net.java.jinput:jinput:2.0.5", 43 | "downloads": { 44 | "artifact": { 45 | "url": "https://libraries.minecraft.net/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar", 46 | "sha1": "39c7796b469a600f72380316f6b1f11db6c2c7c4", 47 | "size": 208338 48 | } 49 | } 50 | }, 51 | { 52 | "name": "net.java.jutils:jutils:1.0.0", 53 | "downloads": { 54 | "artifact": { 55 | "url": "https://libraries.minecraft.net/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar", 56 | "sha1": "e12fe1fda814bd348c1579329c86943d2cd3c6a6", 57 | "size": 7508 58 | } 59 | } 60 | }, 61 | { 62 | "name": "org.lwjgl.lwjgl:lwjgl:2.9.0", 63 | "rules": [ 64 | { 65 | "action": "allow" 66 | }, 67 | { 68 | "action": "disallow", 69 | "os": { 70 | "name": "osx", 71 | "version": "^10\\.5\\.\\d$" 72 | } 73 | } 74 | ], 75 | "downloads": { 76 | "artifact": { 77 | "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0.jar", 78 | "sha1": "5654d06e61a1bba7ae1e7f5233e1106be64c91cd", 79 | "size": 994633 80 | } 81 | } 82 | }, 83 | { 84 | "name": "org.lwjgl.lwjgl:lwjgl_util:2.9.0", 85 | "rules": [ 86 | { 87 | "action": "allow" 88 | }, 89 | { 90 | "action": "disallow", 91 | "os": { 92 | "name": "osx", 93 | "version": "^10\\.5\\.\\d$" 94 | } 95 | } 96 | ], 97 | "downloads": { 98 | "artifact": { 99 | "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl_util/2.9.0/lwjgl_util-2.9.0.jar", 100 | "sha1": "a778846b64008fc7f48ead2377f034e547991699", 101 | "size": 173360 102 | } 103 | } 104 | }, 105 | { 106 | "name": "org.lwjgl.lwjgl:lwjgl-platform:2.9.0", 107 | "rules": [ 108 | { 109 | "action": "allow" 110 | }, 111 | { 112 | "action": "disallow", 113 | "os": { 114 | "name": "osx", 115 | "version": "^10\\.5\\.\\d$" 116 | } 117 | } 118 | ], 119 | "natives": { 120 | "linux": "natives-linux", 121 | "osx": "natives-osx", 122 | "windows": "natives-windows" 123 | }, 124 | "extract": { 125 | "exclude": [ 126 | "META-INF/" 127 | ] 128 | }, 129 | "downloads": { 130 | "classifiers": { 131 | "natives-linux": { 132 | "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.0/lwjgl-platform-2.9.0-natives-linux.jar", 133 | "sha1": "2ba5dcb11048147f1a74eff2deb192c001321f77", 134 | "size": 569061 135 | }, 136 | "natives-osx": { 137 | "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.0/lwjgl-platform-2.9.0-natives-osx.jar", 138 | "sha1": "6621b382cb14cc409b041d8d72829156a87c31aa", 139 | "size": 518924 140 | }, 141 | "natives-windows": { 142 | "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.0/lwjgl-platform-2.9.0-natives-windows.jar", 143 | "sha1": "3f11873dc8e84c854ec7c5a8fd2e869f8aaef764", 144 | "size": 609967 145 | } 146 | } 147 | } 148 | }, 149 | { 150 | "name": "org.lwjgl.lwjgl:lwjgl:2.9.1-nightly-20130708-debug3", 151 | "rules": [ 152 | { 153 | "action": "allow", 154 | "os": { 155 | "name": "osx", 156 | "version": "^10\\.5\\.\\d$" 157 | } 158 | } 159 | ], 160 | "downloads": { 161 | "artifact": { 162 | "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl/2.9.1-nightly-20130708-debug3/lwjgl-2.9.1-nightly-20130708-debug3.jar", 163 | "sha1": "884511652c756fac16b37236f863f346bd1ea121", 164 | "size": 996625 165 | } 166 | } 167 | }, 168 | { 169 | "name": "org.lwjgl.lwjgl:lwjgl_util:2.9.1-nightly-20130708-debug3", 170 | "rules": [ 171 | { 172 | "action": "allow", 173 | "os": { 174 | "name": "osx", 175 | "version": "^10\\.5\\.\\d$" 176 | } 177 | } 178 | ], 179 | "downloads": { 180 | "artifact": { 181 | "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl_util/2.9.1-nightly-20130708-debug3/lwjgl_util-2.9.1-nightly-20130708-debug3.jar", 182 | "sha1": "fb693ba4e22a85432a32e8a048893dc7a92f42ac", 183 | "size": 173338 184 | } 185 | } 186 | }, 187 | { 188 | "name": "org.lwjgl.lwjgl:lwjgl-platform:2.9.1-nightly-20130708-debug3", 189 | "rules": [ 190 | { 191 | "action": "allow", 192 | "os": { 193 | "name": "osx", 194 | "version": "^10\\.5\\.\\d$" 195 | } 196 | } 197 | ], 198 | "natives": { 199 | "linux": "natives-linux", 200 | "osx": "natives-osx", 201 | "windows": "natives-windows" 202 | }, 203 | "extract": { 204 | "exclude": [ 205 | "META-INF/" 206 | ] 207 | }, 208 | "downloads": { 209 | "classifiers": { 210 | "natives-osx": { 211 | "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20130708-debug3/lwjgl-platform-2.9.1-nightly-20130708-debug3-natives-osx.jar", 212 | "sha1": "a9b83ad85742cad09c3574a91b0423bac3f7a0f5", 213 | "size": 458181 214 | } 215 | } 216 | } 217 | }, 218 | { 219 | "name": "net.java.jinput:jinput-platform:2.0.5", 220 | "natives": { 221 | "linux": "natives-linux", 222 | "osx": "natives-osx", 223 | "windows": "natives-windows" 224 | }, 225 | "extract": { 226 | "exclude": [ 227 | "META-INF/" 228 | ] 229 | }, 230 | "downloads": { 231 | "classifiers": { 232 | "natives-linux": { 233 | "url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar", 234 | "sha1": "7ff832a6eb9ab6a767f1ade2b548092d0fa64795", 235 | "size": 10362 236 | }, 237 | "natives-osx": { 238 | "url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-osx.jar", 239 | "sha1": "53f9c919f34d2ca9de8c51fc4e1e8282029a9232", 240 | "size": 12186 241 | }, 242 | "natives-windows": { 243 | "url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-windows.jar", 244 | "sha1": "385ee093e01f587f30ee1c8a2ee7d408fd732e16", 245 | "size": 155179 246 | } 247 | } 248 | } 249 | }, 250 | { 251 | "name": "net.java.jinput:jinput-platform:2.0.5", 252 | "natives": { 253 | "linux": "natives-linux", 254 | "osx": "natives-osx", 255 | "windows": "natives-windows" 256 | }, 257 | "extract": { 258 | "exclude": [ 259 | "META-INF/" 260 | ] 261 | }, 262 | "downloads": { 263 | "classifiers": { 264 | "natives-linux": { 265 | "url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar", 266 | "sha1": "7ff832a6eb9ab6a767f1ade2b548092d0fa64795", 267 | "size": 10362 268 | }, 269 | "natives-osx": { 270 | "url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-osx.jar", 271 | "sha1": "53f9c919f34d2ca9de8c51fc4e1e8282029a9232", 272 | "size": 12186 273 | }, 274 | "natives-windows": { 275 | "url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-windows.jar", 276 | "sha1": "385ee093e01f587f30ee1c8a2ee7d408fd732e16", 277 | "size": 155179 278 | } 279 | } 280 | } 281 | } 282 | ], 283 | "mainClass": "net.minecraft.launchwrapper.Launch", 284 | "minimumLauncherVersion": 7, 285 | "assets": "legacy", 286 | "downloads": { 287 | 288 | }, 289 | "assetIndex": { 290 | "totalSize": 111220701, 291 | "id": "legacy", 292 | "known": true, 293 | "url": "https://launchermeta.mojang.com/mc-staging/assets/legacy/c0fd82e8ce9fbc93119e40d96d5a4e62cfa3f729/legacy.json", 294 | "sha1": "c0fd82e8ce9fbc93119e40d96d5a4e62cfa3f729", 295 | "size": 134284 296 | } 297 | } --------------------------------------------------------------------------------