 +                IOUtils.closeQuietly(var3);
 +            }
 +    		frame.setVisible(true);
-         }
-     }
- 
--    private void func_175594_ao()
++        }
++    }
++
 +    private void startLWJGL_1()
-     {
-         Util.EnumOS var1 = Util.getOSType();
- 
-@@ -681,6 +772,42 @@ public class Minecraft implements IThreadListener, IPlayerUsage
-             }
-         }
-     }
++    {
++        Util.EnumOS var1 = Util.getOSType();
++
++        if (var1 != Util.EnumOS.OSX)
++        {
++            InputStream var2 = null;
++            InputStream var3 = null;
++
++            try
++            {
++                var2 = this.mcDefaultResourcePack.func_152780_c(new ResourceLocation("icons/icon_16x16.png"));
++                var3 = this.mcDefaultResourcePack.func_152780_c(new ResourceLocation("icons/icon_32x32.png"));
++
++                if (var2 != null && var3 != null)
++                {
++                    Display.setIcon(new ByteBuffer[] {this.readImageToBuffer(var2), this.readImageToBuffer(var3)});
++                }
++            }
++            catch (IOException var8)
++            {
++                logger.error("Couldn\'t set icon", var8);
++            }
++            finally
++            {
++                IOUtils.closeQuietly(var2);
++                IOUtils.closeQuietly(var3);
++            }
++        }
++    }
 +    
 +    //TODO: Client
 +    private boolean isAutoMaximize()

+            					thePlayer.sendChatMessage(eventCommand);
+            			}
+                    	
                         if (var1 == 1)
                         {
                             this.displayInGameMenu();
@@ -2049,7 +2312,7 @@ public class Minecraft implements IThreadListener, IPlayerUsage
             {
                 if (this.gameSettings.keyBindsHotbar[var1].isPressed())
                 {
-                    if (this.thePlayer.func_175149_v())
+                    if (this.thePlayer.isSpectator())
                     {
                         this.ingameGUI.func_175187_g().func_175260_a(var1);
                     }
@@ -2077,7 +2340,7 @@ public class Minecraft implements IThreadListener, IPlayerUsage
 
             while (this.gameSettings.keyBindDrop.isPressed())
             {
-                if (!this.thePlayer.func_175149_v())
+                if (!this.thePlayer.isSpectator())
                 {
                     this.thePlayer.dropOneItem(GuiScreen.isCtrlKeyDown());
                 }
@@ -2315,6 +2578,9 @@ public class Minecraft implements IThreadListener, IPlayerUsage
         var12.sendPacket(new C00Handshake(47, var11.toString(), 0, EnumConnectionState.LOGIN));
         var12.sendPacket(new C00PacketLoginStart(this.getSession().getProfile()));
         this.myNetworkManager = var12;
+        
+        //TODO: Client
+        SpamProcessor.runScript("joinworld", "Runs whenever you join a singlepalyer world.");
     }
 
     /**
@@ -2489,7 +2755,7 @@ public class Minecraft implements IThreadListener, IPlayerUsage
 
             if (this.objectMouseOver.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)
             {
-                BlockPos var6 = this.objectMouseOver.func_178782_a();
+                BlockPos var6 = this.objectMouseOver.getBlockPos();
                 Block var7 = this.theWorld.getBlockState(var6).getBlock();
 
                 if (var7.getMaterial() == Material.air)
@@ -2515,6 +2781,31 @@ public class Minecraft implements IThreadListener, IPlayerUsage
             }
             else
             {
+                //TODO: Client
+                if (this.objectMouseOver.entityHit != null && this.objectMouseOver.entityHit instanceof EntityPlayer)
+                {

From 594eae7df7c82834aac714a49415190ce710f829 Mon Sep 17 00:00:00 2001
From: Alexander01998 <contact.wurstimperium@gmail.com>
Date: Tue, 3 Mar 2015 21:11:14 +0100
Subject: [PATCH] Wurst

---
 src/net/minecraft/block/Block.java                 |   18 +-
 src/net/minecraft/block/BlockLiquid.java           |   14 +-
 src/net/minecraft/block/BlockSlab.java             |    8 +-
 src/net/minecraft/block/BlockSoulSand.java         |    4 +
 .../minecraft/client/LoadingScreenRenderer.java    |   10 +-
 src/net/minecraft/client/Minecraft.java            | 6909 ++++++++++----------
 .../client/entity/AbstractClientPlayer.java        |   17 +-
 .../minecraft/client/entity/EntityPlayerSP.java    |   85 +-
 src/net/minecraft/client/gui/FontRenderer.java     |   40 +-
 src/net/minecraft/client/gui/Gui.java              |    8 +-
 src/net/minecraft/client/gui/GuiButton.java        |  252 +-
 .../minecraft/client/gui/GuiButtonLanguage.java    |    1 +
 .../minecraft/client/gui/GuiButtonRealmsProxy.java |    1 +
 src/net/minecraft/client/gui/GuiChat.java          |    2 +-
 src/net/minecraft/client/gui/GuiCommandBlock.java  |    4 +
 .../minecraft/client/gui/GuiConfirmOpenLink.java   |    2 +
 src/net/minecraft/client/gui/GuiControls.java      |    2 +
 .../minecraft/client/gui/GuiCreateFlatWorld.java   |    4 +-
 src/net/minecraft/client/gui/GuiCreateWorld.java   |    3 +
 src/net/minecraft/client/gui/GuiCustomizeSkin.java |    2 +
 .../client/gui/GuiCustomizeWorldScreen.java        |    5 +-
 src/net/minecraft/client/gui/GuiDisconnected.java  |   58 +-
 src/net/minecraft/client/gui/GuiEnchantment.java   |    2 +-
 src/net/minecraft/client/gui/GuiErrorScreen.java   |    2 +
 src/net/minecraft/client/gui/GuiFlatPresets.java   |    6 +-
 src/net/minecraft/client/gui/GuiGameOver.java      |    9 +
 src/net/minecraft/client/gui/GuiIngame.java        |  115 +-
 src/net/minecraft/client/gui/GuiIngameMenu.java    |   47 +
 .../minecraft/client/gui/GuiKeyBindingList.java    |    3 +
 src/net/minecraft/client/gui/GuiLanguage.java      |    3 +
 src/net/minecraft/client/gui/GuiListButton.java    |    1 +
 .../minecraft/client/gui/GuiLockIconButton.java    |    1 +
 src/net/minecraft/client/gui/GuiMainMenu.java      |  245 +-
 .../minecraft/client/gui/GuiMemoryErrorScreen.java |    2 +
 src/net/minecraft/client/gui/GuiMerchant.java      |    4 +
 src/net/minecraft/client/gui/GuiMultiplayer.java   |  197 +-
 src/net/minecraft/client/gui/GuiNewChat.java       |   42 +-
 src/net/minecraft/client/gui/GuiOptionButton.java  |    1 +
 src/net/minecraft/client/gui/GuiOptionSlider.java  |    1 +
 src/net/minecraft/client/gui/GuiOptions.java       |    2 +
 .../minecraft/client/gui/GuiOptionsRowList.java    |    3 +
 src/net/minecraft/client/gui/GuiOverlayDebug.java  |    8 +-
 .../minecraft/client/gui/GuiPageButtonList.java    |    3 +
 .../minecraft/client/gui/GuiPlayerTabOverlay.java  |   32 +-
 src/net/minecraft/client/gui/GuiRenameWorld.java   |    3 +
 src/net/minecraft/client/gui/GuiScreen.java        |   12 +-
 .../minecraft/client/gui/GuiScreenAddServer.java   |    3 +
 src/net/minecraft/client/gui/GuiScreenBook.java    |    5 +
 .../client/gui/GuiScreenCustomizePresets.java      |    4 +
 src/net/minecraft/client/gui/GuiScreenDemo.java    |    3 +
 .../client/gui/GuiScreenOptionsSounds.java         |    2 +
 .../minecraft/client/gui/GuiScreenRealmsProxy.java |    5 +-
 .../client/gui/GuiScreenResourcePacks.java         |    4 +
 .../minecraft/client/gui/GuiScreenServerList.java  |   11 +
 src/net/minecraft/client/gui/GuiSelectWorld.java   |    3 +
 src/net/minecraft/client/gui/GuiShareToLan.java    |    5 +
 .../gui/GuiSimpleScrolledSelectionListProxy.java   |    6 +-
 src/net/minecraft/client/gui/GuiSleepMP.java       |    2 +
 src/net/minecraft/client/gui/GuiSlider.java        |    1 +
 src/net/minecraft/client/gui/GuiSlot.java          |   26 +-
 src/net/minecraft/client/gui/GuiSnooper.java       |    3 +
 src/net/minecraft/client/gui/GuiSpectator.java     |    4 +-
 src/net/minecraft/client/gui/GuiTextField.java     |    6 +-
 src/net/minecraft/client/gui/GuiVideoSettings.java |    2 +
 src/net/minecraft/client/gui/GuiWinGame.java       |   12 +-
 src/net/minecraft/client/gui/GuiYesNo.java         |    3 +
 .../minecraft/client/gui/ScreenChatOptions.java    |    2 +
 .../minecraft/client/gui/ServerSelectionList.java  |   13 +-
 .../client/gui/achievement/GuiAchievements.java    |    6 +-
 .../minecraft/client/gui/achievement/GuiStats.java |    9 +-
 .../minecraft/client/gui/inventory/GuiBeacon.java  |    3 +
 .../minecraft/client/gui/inventory/GuiChest.java   |  162 +-
 .../client/gui/inventory/GuiContainer.java         |   40 +-
 .../client/gui/inventory/GuiContainerCreative.java |    9 +-
 .../client/gui/inventory/GuiEditSign.java          |   16 +
 .../client/gui/inventory/GuiInventory.java         |    1 +
 .../gui/spectator/categories/TeleportToPlayer.java |    6 +-
 .../gui/spectator/categories/TeleportToTeam.java   |    4 +-
 .../client/gui/stream/GuiIngestServers.java        |    1 +
 .../client/gui/stream/GuiStreamOptions.java        |    1 +
 .../client/gui/stream/GuiStreamUnavailable.java    |    4 +
 .../client/gui/stream/GuiTwitchUserMode.java       |    2 +
 src/net/minecraft/client/main/Main.java            |   19 +-
 .../client/multiplayer/GuiConnecting.java          |    2 +
 .../client/multiplayer/PlayerControllerMP.java     |   59 +-
 .../minecraft/client/multiplayer/ServerList.java   |   16 +-
 .../minecraft/client/multiplayer/WorldClient.java  |    2 +
 .../client/network/NetHandlerLoginClient.java      |    5 +
 .../client/network/NetHandlerPlayClient.java       |   20 +-
 .../client/network/NetworkPlayerInfo.java          |   53 +-
 .../minecraft/client/network/OldServerPinger.java  |    4 +
 src/net/minecraft/client/particle/Barrier.java     |    2 +-
 .../minecraft/client/particle/EffectRenderer.java  |    2 +
 .../client/particle/EntityBreakingFX.java          |    2 +-
 .../minecraft/client/particle/EntityDiggingFX.java |    2 +-
 src/net/minecraft/client/particle/EntityFX.java    |    2 +-
 .../client/particle/EntityFireworkOverlayFX.java   |    2 +-
 .../client/particle/EntityFootStepFX.java          |    2 +-
 .../client/particle/EntityLargeExplodeFX.java      |    2 +-
 .../client/renderer/BlockFluidRenderer.java        |    6 +-
 .../client/renderer/BlockModelRenderer.java        |    1 +
 .../minecraft/client/renderer/EntityRenderer.java  |   63 +-
 .../client/renderer/InventoryEffectRenderer.java   |    4 +-
 .../minecraft/client/renderer/ItemRenderer.java    |    2 +-
 .../minecraft/client/renderer/RenderGlobal.java    |   32 +-
 src/net/minecraft/client/renderer/Tessellator.java |    2 +
 .../client/renderer/ThreadDownloadImageData.java   |   40 +-
 .../minecraft/client/renderer/WorldRenderer.java   |   90 +-
 .../client/renderer/chunk/ChunkRenderWorker.java   |    3 +
 .../minecraft/client/renderer/entity/Render.java   |   34 +-
 .../client/renderer/entity/RenderDragon.java       |    4 +-
 .../client/renderer/entity/RenderFallingBlock.java |    5 +-
 .../client/renderer/entity/RenderFish.java         |    2 +-
 .../client/renderer/entity/RenderGuardian.java     |    2 +-
 .../client/renderer/entity/RenderItem.java         |   44 +-
 .../renderer/entity/RenderLightningBolt.java       |    2 +-
 .../client/renderer/entity/RenderLiving.java       |    8 +-
 .../client/renderer/entity/RenderManager.java      |   21 +-
 .../client/renderer/entity/RenderPlayer.java       |    5 +-
 .../client/renderer/entity/RenderXPOrb.java        |    2 +-
 .../renderer/entity/RendererLivingEntity.java      |   13 +-
 .../entity/layers/LayerEnderDragonDeath.java       |    4 +-
 .../renderer/texture/TextureAtlasSprite.java       |    2 +
 .../client/renderer/texture/TextureManager.java    |    3 +
 .../client/renderer/texture/TextureMap.java        |    3 +
 .../renderer/tileentity/RenderItemFrame.java       |    2 +-
 .../tileentity/TileEntityBeaconRenderer.java       |    4 +-
 .../tileentity/TileEntityEndPortalRenderer.java    |    2 +-
 .../tileentity/TileEntityPistonRenderer.java       |    2 +-
 .../tileentity/TileEntityRendererDispatcher.java   |    2 +
 .../tileentity/TileEntitySkullRenderer.java        |    4 +-
 .../client/resources/DefaultPlayerSkin.java        |   21 +-
 .../client/resources/DefaultResourcePack.java      |    6 +-
 .../client/resources/FallbackResourceManager.java  |    7 +-
 .../client/resources/ResourcePackListEntry.java    |    4 +-
 .../client/resources/ResourcePackRepository.java   |    6 +-
 .../minecraft/client/resources/SkinManager.java    |   41 +-
 .../minecraft/client/settings/GameSettings.java    |    3 +-
 src/net/minecraft/client/settings/KeyBinding.java  |    8 +-
 src/net/minecraft/client/shader/Framebuffer.java   |    2 +-
 src/net/minecraft/client/shader/Shader.java        |    2 +-
 .../client/stream/BroadcastController.java         |    4 +
 src/net/minecraft/command/IEntitySelector.java     |    2 +-
 .../command/server/CommandBlockLogic.java          |    2 +
 src/net/minecraft/crash/CrashReport.java           |   19 +-
 src/net/minecraft/crash/CrashReportCategory.java   |    3 +
 src/net/minecraft/entity/DataWatcher.java          |   12 +-
 src/net/minecraft/entity/Entity.java               |   42 +-
 src/net/minecraft/entity/EntityLivingBase.java     |   14 +-
 src/net/minecraft/entity/EntityTracker.java        |    3 +
 src/net/minecraft/entity/boss/EntityDragon.java    |    2 +-
 .../minecraft/entity/item/EntityArmorStand.java    |    2 +-
 src/net/minecraft/entity/item/EntityXPOrb.java     |    2 +-
 src/net/minecraft/entity/player/EntityPlayer.java  |   33 +-
 .../minecraft/entity/player/EntityPlayerMP.java    |   12 +-
 .../minecraft/entity/player/InventoryPlayer.java   |    1 +
 .../minecraft/entity/projectile/EntityArrow.java   |    2 +-
 .../entity/projectile/EntitySmallFireball.java     |    2 +-
 .../entity/projectile/EntityThrowable.java         |    2 +-
 src/net/minecraft/inventory/ContainerPlayer.java   |    2 +-
 src/net/minecraft/inventory/Slot.java              |    7 +-
 src/net/minecraft/item/ItemBoat.java               |    2 +-
 src/net/minecraft/item/ItemBucket.java             |    8 +-
 src/net/minecraft/item/ItemEnderEye.java           |    2 +-
 src/net/minecraft/item/ItemGlassBottle.java        |    4 +-
 src/net/minecraft/item/ItemLilyPad.java            |    4 +-
 src/net/minecraft/item/ItemMonsterPlacer.java      |    4 +-
 src/net/minecraft/nbt/CompressedStreamTools.java   |    1 +
 src/net/minecraft/nbt/NBTTagCompound.java          |    3 +
 .../minecraft/network/NetHandlerPlayServer.java    |   17 +-
 src/net/minecraft/network/NetworkManager.java      |  946 ++-
 src/net/minecraft/network/NetworkSystem.java       |    5 +
 src/net/minecraft/network/PacketBuffer.java        |    6 +-
 src/net/minecraft/realms/RealmsConnect.java        |    2 +
 src/net/minecraft/realms/RealmsScreen.java         |    2 +-
 .../minecraft/realms/RealmsServerStatusPinger.java |    3 +
 src/net/minecraft/realms/Tezzelator.java           |   14 +-
 src/net/minecraft/server/MinecraftServer.java      |    5 +
 .../server/integrated/IntegratedServer.java        |    3 +
 .../server/management/LowerStringMap.java          |    4 +-
 .../server/management/PlayerProfileCache.java      |    4 +-
 .../management/ServerConfigurationManager.java     |    4 +
 .../server/network/NetHandlerLoginServer.java      |   12 +-
 src/net/minecraft/tileentity/TileEntityChest.java  |    4 +-
 src/net/minecraft/tileentity/TileEntitySign.java   |    3 +-
 src/net/minecraft/util/CryptManager.java           |   30 +-
 src/net/minecraft/util/JsonSerializableSet.java    |    6 +-
 src/net/minecraft/util/MessageDeserializer.java    |    3 +
 src/net/minecraft/util/MessageDeserializer2.java   |    6 +-
 src/net/minecraft/util/MessageSerializer.java      |    6 +-
 src/net/minecraft/util/MovingObjectPosition.java   |   20 +-
 src/net/minecraft/util/Timer.java                  |    6 +
 src/net/minecraft/village/VillageSiege.java        |    2 +-
 src/net/minecraft/world/SpawnerAnimals.java        |   31 +-
 src/net/minecraft/world/World.java                 |    2 +
 src/net/minecraft/world/WorldServer.java           |    7 +-
 .../minecraft/world/biome/WorldChunkManager.java   |    2 +
 src/net/minecraft/world/chunk/Chunk.java           |    3 +
 .../minecraft/world/chunk/storage/RegionFile.java  |    6 +-
 .../minecraft/world/gen/ChunkProviderServer.java   |    3 +
 src/net/minecraft/world/gen/layer/GenLayer.java    |    1 +
 .../world/gen/structure/MapGenStructure.java       |    2 +
 202 files changed, 6143 insertions(+), 4514 deletions(-)

diff --git a/src/net/minecraft/block/Block.java b/src/net/minecraft/block/Block.java
index 5c07aa4..c8adf19 100644
