├── Chroma Chat ├── ChromaChat.java └── README.md ├── Dot Commands ├── GuiScreen.java └── README.md ├── FOV Mod ├── FovMod.java └── README.md ├── IGN In DiscordSRC ├── GuiConnecting.java └── README.md ├── QuickPlay ├── ArcadeQuickPlay.java ├── BedwarsQuickPlay.java ├── BlitzSGQuickPlay.java ├── BuildBattleQuickPlay.java ├── ClassicGamesQuickPlay.java ├── CopsAndCrimsQuickPlay.java ├── DuelsQuickPlay.java ├── MegaWallsQuickPlay.java ├── ModQuickPlay.java ├── MurderMysteryQuickPlay.java ├── QuickPlay │ ├── Arcade.png │ ├── Bedwars.png │ ├── Blitz.png │ ├── BuildBattle.png │ ├── ClassicLobby.png │ ├── CopsAndCrims.png │ ├── Duels.png │ ├── Housing.png │ ├── MainLobby.png │ ├── MegaWalls.png │ ├── MurderMystery.png │ ├── Pit.png │ ├── Prototype.png │ ├── SkyWars.png │ ├── Skyblock.png │ ├── SmashHeroes.png │ ├── TNT.png │ ├── UHC.png │ ├── Warlords.png │ └── test.png ├── README.md ├── SkywarsQuickPlay.java ├── SmashHeroesQuickPlay.java ├── TNTQuickPlay.java ├── TransparentButton │ └── TransparentButton.java ├── UHCQuickPlay.java └── WarlordsQuickPlay.java ├── Save Custom Keybind ├── GameSettings.java └── README.md └── Skin Changer Cosmetic ├── README.md └── skinChanger.java /Chroma Chat/ChromaChat.java: -------------------------------------------------------------------------------- 1 | /* 2 | Chroma Chat - By Sauq 3 | Credit would be Nice but not needed 4 | */ 5 | 6 | //Put this in Client.java 7 | 8 | public static int RainbowEffect(int i, float f) { 9 | return Color.HSBtoRGB((float)(System.currentTimeMillis() % 20000L) / 1000.0F, 0.8F, 0.8F); 10 | } 11 | 12 | //And Replace 'int i = this.isEnabled ? this.enabledColor : this.disabledColor;' with: 13 | 14 | int i = this.isEnabled ? Client.RainbowEffect : this.disabledColor; 15 | -------------------------------------------------------------------------------- /Chroma Chat/README.md: -------------------------------------------------------------------------------- 1 | # Simple Chroma Chat! 2 | - Credit is not needed 3 | - YT Link: https://www.youtube.com/watch?v=TepPQx2fTkg&lc=UgxpaaQf3Xu5Ezo83cR4AaABAg 4 | -------------------------------------------------------------------------------- /Dot Commands/GuiScreen.java: -------------------------------------------------------------------------------- 1 | public void sendChatMessage(String msg) { 2 | if(msg.equalsIgnoreCase(".Hi")) { 3 | Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(new ChatComponentText("Hello " + Minecraft.getMinecraft().getSession().getUsername();)) 4 | }else { 5 | this.sendChatMessage(msg, true); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Dot Commands/README.md: -------------------------------------------------------------------------------- 1 | # Custom Dot Commands 2 | - Go to GuiScreen.java 3 | - Go to the method sendChatMessage and replace it with the code -------------------------------------------------------------------------------- /FOV Mod/FovMod.java: -------------------------------------------------------------------------------- 1 | package clientname.mods.impl; 2 | 3 | import clientname.Client; 4 | import clientname.gui.hud.ScreenPosition; 5 | import clientname.mods.ModDraggable; 6 | import net.minecraft.client.Minecraft; 7 | import net.minecraft.client.settings.GameSettings; 8 | 9 | public class FovMod extends ModDraggable { 10 | 11 | private static float savedFOV = 0; 12 | 13 | 14 | 15 | public int getWidth() 16 | { 17 | return font.getStringWidth("[FOV Mod On]"); 18 | } 19 | 20 | @Override 21 | public int getHeight() 22 | { 23 | return font.FONT_HEIGHT; 24 | } 25 | 26 | 27 | 28 | @Override 29 | public void render(ScreenPosition pos) { 30 | // font.drawString("[fov mod On]", pos.getAbsoluteX(), pos.getAbsoluteY(), -1); 31 | savedFOV = Minecraft.getMinecraft().gameSettings.fovSetting; 32 | if(mc.thePlayer.isSprinting()) { 33 | Minecraft.getMinecraft().gameSettings.fovSetting = savedFOV; 34 | } 35 | else if(mc.thePlayer.isPotionActive(1)) { 36 | Minecraft.getMinecraft().gameSettings.fovSetting = savedFOV; 37 | } 38 | else if(mc.thePlayer.capabilities.isFlying) { 39 | Minecraft.getMinecraft().gameSettings.fovSetting = savedFOV; 40 | } 41 | } 42 | } 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /FOV Mod/README.md: -------------------------------------------------------------------------------- 1 | # Dynamic Fov 2 | - **MAKE SURE TO DELETE THIS LINE IN net.minecraft.client.entity.AbstractClientPlayer** 3 | - Delete: f = (float)((double)f * ((iattributeinstance.getAttributeValue() / (double)this.capabilities.getWalkSpeed() + 1.0D) / 2.0D)); 4 | - By Sauq :D 5 | - Credit would be nice but not necessary 6 | -------------------------------------------------------------------------------- /IGN In DiscordSRC/GuiConnecting.java: -------------------------------------------------------------------------------- 1 | Client.getInstance().getDiscordRP().update("Multiplayer: " + ip + ((port != 25565) ? (":" + port) : ""), "IGN: " + Minecraft.getMinecraft().getSession().getProfile().getName()); 2 | 3 | 4 | 5 | 6 | //Add To GuiConnecting 7 | -------------------------------------------------------------------------------- /IGN In DiscordSRC/README.md: -------------------------------------------------------------------------------- 1 | # Simple IGN In Discord SRC 2 | - Add the line to GuiConnecting 3 | - Credit is not needed 4 | -------------------------------------------------------------------------------- /QuickPlay/ArcadeQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class ArcadeQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public ArcadeQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Hole In The Wall", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Football", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("Bounty Hunters", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(104, this.width / 4+117, this.height / 2 + 50, 80, 20, I18n.format("Pixel Painters", new Object[0]))); 64 | 65 | this.buttonList.add(new GuiButton(105, this.width / 4+117, this.height / 2 + 80, 80, 20, I18n.format("Dragon Walls", new Object[0]))); 66 | 67 | this.buttonList.add(new GuiButton(106, this.width / 4+117, this.height / 2 + 110, 80, 20, I18n.format("Ender Spleef", new Object[0]))); 68 | 69 | //------------------------------------------------------------------------------------------------------------------------------------------- 70 | 71 | this.buttonList.add(new GuiButton(107, this.width / 4+20, this.height / 2 - 70, 80, 20, I18n.format("Galaxy Wars", new Object[0]))); 72 | 73 | this.buttonList.add(new GuiButton(108, this.width / 4+20, this.height / 2 - 40, 80, 20, I18n.format("Throw Out", new Object[0]))); 74 | 75 | this.buttonList.add(new GuiButton(109, this.width / 4+20, this.height / 2 - 10, 80, 20, I18n.format("Capture The Wool", new Object[0]))); 76 | 77 | this.buttonList.add(new GuiButton(110, this.width / 4+20, this.height / 2 + 20, 80, 20, I18n.format("Party Games", new Object[0]))); 78 | 79 | this.buttonList.add(new GuiButton(112, this.width / 4+20, this.height / 2 + 50, 80, 20, I18n.format("Farm Hunt", new Object[0]))); 80 | 81 | this.buttonList.add(new GuiButton(113, this.width / 4+20, this.height / 2 + 80, 80, 20, I18n.format("Zombies Dead End", new Object[0]))); 82 | 83 | this.buttonList.add(new GuiButton(114, this.width / 4+20, this.height / 2 + 110, 80, 20, I18n.format("Zombies Bad Blood", new Object[0]))); 84 | 85 | //------------------------------------------------------------------------------------------------------------------------------------------- 86 | 87 | this.buttonList.add(new GuiButton(115, this.width / 4+230, this.height / 2 - 70, 80, 20, I18n.format("Zombies Alien Arcadium", new Object[0]))); 88 | 89 | this.buttonList.add(new GuiButton(116, this.width / 4+230, this.height / 2 - 40, 80, 20, I18n.format("Hide & Seek Prop Hunt", new Object[0]))); 90 | 91 | this.buttonList.add(new GuiButton(117, this.width / 4+230, this.height / 2 - 10, 80, 20, I18n.format("Hide & Seek Party Pooper", new Object[0]))); 92 | 93 | this.buttonList.add(new GuiButton(118, this.width / 4+230, this.height / 2 + 20, 80, 20, I18n.format("Hypixel Says", new Object[0]))); 94 | 95 | this.buttonList.add(new GuiButton(119, this.width / 4+230, this.height / 2 + 50, 80, 20, I18n.format("Mini Walls", new Object[0]))); 96 | 97 | this.buttonList.add(new GuiButton(121, this.width / 4+230, this.height / 2 + 80, 80, 20, I18n.format("Blocking Dead", new Object[0]))); 98 | 99 | //this.buttonList.add(new GuiButton(121, this.width / 4+213, this.height / 2 + 110, 80, 20, I18n.format("Zombies Bad Blood", new Object[0]))); 100 | 101 | 102 | 103 | 104 | 105 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 106 | 107 | 108 | 109 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 110 | 111 | } 112 | 113 | 114 | 115 | 116 | private void func_146595_g() { 117 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 118 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 119 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 120 | 121 | if (this.field_146600_i) { 122 | this.field_146596_f.displayString = this.field_146596_f.displayString 123 | + I18n.format("options.on", new Object[0]); 124 | } else { 125 | this.field_146596_f.displayString = this.field_146596_f.displayString 126 | + I18n.format("options.off", new Object[0]); 127 | } 128 | } 129 | 130 | protected void actionPerformed(GuiButton button) throws IOException { 131 | switch (button.id) { 132 | case 0: 133 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 134 | break; 135 | 136 | case 1: 137 | boolean flag = this.mc.isIntegratedServerRunning(); 138 | boolean flag1 = this.mc.func_181540_al(); 139 | button.enabled = false; 140 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 141 | this.mc.loadWorld((WorldClient) null); 142 | 143 | if (flag) { 144 | this.mc.displayGuiScreen(new GuiMainMenu()); 145 | } else if (flag1) { 146 | RealmsBridge realmsbridge = new RealmsBridge(); 147 | realmsbridge.switchToRealms(new GuiMainMenu()); 148 | } else { 149 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 150 | } 151 | 152 | case 2: 153 | case 3: 154 | default: 155 | break; 156 | 157 | case 4: 158 | this.mc.displayGuiScreen((GuiScreen) null); 159 | this.mc.setIngameFocus(); 160 | break; 161 | 162 | case 5: 163 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 164 | break; 165 | 166 | case 6: 167 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 168 | break; 169 | case 7: 170 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 171 | break; 172 | 173 | case 1008: 174 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 175 | break; 176 | case 3000: 177 | this.mc.displayGuiScreen(new ArcadeQuickPlay(this)); 178 | break; 179 | case 100: 180 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l a"); 181 | break; 182 | case 101: 183 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_hole_in_the_wall"); 184 | break; 185 | case 102: 186 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_soccer"); 187 | break; 188 | case 103: 189 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_bounty_hunters"); 190 | break; 191 | case 104: 192 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_pixel_painters"); 193 | break; 194 | case 105: 195 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_dragon_wars"); 196 | break; 197 | case 106: 198 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_ender_spleef"); 199 | break; 200 | case 107: 201 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_starwars"); 202 | break; 203 | case 108: 204 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_throw_out"); 205 | break; 206 | case 109: 207 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_pvp_ctw"); 208 | break; 209 | case 110: 210 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_party_games_1"); 211 | break; 212 | case 112: 213 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_farm_hunt"); 214 | break; 215 | case 113: 216 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_zombies_dead_end"); 217 | break; 218 | case 114: 219 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_zombies_bad_blood"); 220 | break; 221 | case 115: 222 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_zombies_alien_arcadium"); 223 | break; 224 | case 116: 225 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_hide_and_seek_prop_hunt"); 226 | break; 227 | case 117: 228 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_hide_and_seek_party_pooper"); 229 | break; 230 | case 118: 231 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_simon_says"); 232 | break; 233 | case 119: 234 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_mini_walls"); 235 | break; 236 | case 121: 237 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_day_one"); 238 | break; 239 | case 122: 240 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arcade_pvp_ctw"); 241 | break; 242 | 243 | 244 | 245 | } 246 | } 247 | 248 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 249 | this.drawDefaultBackground(); 250 | 251 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Arcade.png")); 252 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 253 | 254 | 255 | 256 | GlStateManager.pushMatrix(); 257 | float scale2 = 0.5F; 258 | 259 | GlStateManager.popMatrix(); 260 | 261 | 262 | super.drawScreen(mouseX, mouseY, partialTicks); 263 | 264 | 265 | } 266 | 267 | } -------------------------------------------------------------------------------- /QuickPlay/BedwarsQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class BedwarsQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public BedwarsQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Solo", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Doubles", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("3v3v3v3", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(104, this.width / 4+117, this.height / 2 + 50, 80, 20, I18n.format("4v4v4v4", new Object[0]))); 64 | 65 | this.buttonList.add(new GuiButton(105, this.width / 4+117, this.height / 2 + 80, 80, 20, I18n.format("4v4", new Object[0]))); 66 | 67 | this.buttonList.add(new GuiButton(106, this.width / 4+117, this.height / 2 + 110, 80, 20, I18n.format("Castle", new Object[0]))); 68 | 69 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 70 | 71 | 72 | 73 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 74 | 75 | } 76 | 77 | 78 | 79 | 80 | private void func_146595_g() { 81 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 82 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 83 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 84 | 85 | if (this.field_146600_i) { 86 | this.field_146596_f.displayString = this.field_146596_f.displayString 87 | + I18n.format("options.on", new Object[0]); 88 | } else { 89 | this.field_146596_f.displayString = this.field_146596_f.displayString 90 | + I18n.format("options.off", new Object[0]); 91 | } 92 | } 93 | 94 | protected void actionPerformed(GuiButton button) throws IOException { 95 | switch (button.id) { 96 | case 0: 97 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 98 | break; 99 | 100 | case 1: 101 | boolean flag = this.mc.isIntegratedServerRunning(); 102 | boolean flag1 = this.mc.func_181540_al(); 103 | button.enabled = false; 104 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 105 | this.mc.loadWorld((WorldClient) null); 106 | 107 | if (flag) { 108 | this.mc.displayGuiScreen(new GuiMainMenu()); 109 | } else if (flag1) { 110 | RealmsBridge realmsbridge = new RealmsBridge(); 111 | realmsbridge.switchToRealms(new GuiMainMenu()); 112 | } else { 113 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 114 | } 115 | 116 | case 2: 117 | case 3: 118 | default: 119 | break; 120 | 121 | case 4: 122 | this.mc.displayGuiScreen((GuiScreen) null); 123 | this.mc.setIngameFocus(); 124 | break; 125 | 126 | case 5: 127 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 128 | break; 129 | 130 | case 6: 131 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 132 | break; 133 | case 7: 134 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 135 | break; 136 | 137 | case 1008: 138 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 139 | break; 140 | case 3000: 141 | this.mc.displayGuiScreen(new BedwarsQuickPlay(this)); 142 | break; 143 | case 100: 144 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l b"); 145 | break; 146 | case 101: 147 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play bedwars_eight_one"); 148 | break; 149 | case 102: 150 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play bedwars_eight_two"); 151 | break; 152 | case 103: 153 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play bedwars_four_three"); 154 | break; 155 | case 104: 156 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play bedwars_four_four"); 157 | break; 158 | case 105: 159 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play bedwars_two_four"); 160 | break; 161 | case 106: 162 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play bedwars_castle"); 163 | break; 164 | 165 | 166 | } 167 | } 168 | 169 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 170 | this.drawDefaultBackground(); 171 | 172 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Bedwars.png")); 173 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 174 | 175 | GlStateManager.pushMatrix(); 176 | float scale2 = 0.5F; 177 | 178 | GlStateManager.popMatrix(); 179 | 180 | super.drawScreen(mouseX, mouseY, partialTicks); 181 | 182 | } 183 | 184 | } 185 | -------------------------------------------------------------------------------- /QuickPlay/BlitzSGQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class BlitzSGQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | private GuiButton field_146596_f; 42 | private GuiButton field_146597_g; 43 | private String field_146599_h = "survival"; 44 | private boolean field_146600_i; 45 | 46 | public BlitzSGQuickPlay(GuiScreen p_i1055_1_dada_) { 47 | this.field_146598_aaaaa = p_i1055_1_dada_; 48 | } 49 | 50 | public void initGui() { 51 | 52 | GuiButton guibutton; 53 | 54 | this.buttonList.add(new GuiButton(100, this.width / 4 + 117, this.height / 2 - 70, 80, 20, 55 | I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4 + 117, this.height / 2 - 40, 80, 20, 58 | I18n.format("Solo", new Object[0]))); 59 | 60 | this.buttonList.add(new GuiButton(102, this.width / 4 + 117, this.height / 2 - 10, 80, 20, 61 | I18n.format("Teams", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, 64 | I18n.format("Back", new Object[0]))); 65 | 66 | // this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 67 | // + 50, 80, 20, I18n.format(Slime, new Object[0]))); 68 | 69 | } 70 | 71 | private void func_146595_g() { 72 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 73 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 74 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 75 | 76 | if (this.field_146600_i) { 77 | this.field_146596_f.displayString = this.field_146596_f.displayString 78 | + I18n.format("options.on", new Object[0]); 79 | } else { 80 | this.field_146596_f.displayString = this.field_146596_f.displayString 81 | + I18n.format("options.off", new Object[0]); 82 | } 83 | } 84 | 85 | protected void actionPerformed(GuiButton button) throws IOException { 86 | switch (button.id) { 87 | case 0: 88 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 89 | break; 90 | 91 | case 1: 92 | boolean flag = this.mc.isIntegratedServerRunning(); 93 | boolean flag1 = this.mc.func_181540_al(); 94 | button.enabled = false; 95 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 96 | this.mc.loadWorld((WorldClient) null); 97 | 98 | if (flag) { 99 | this.mc.displayGuiScreen(new GuiMainMenu()); 100 | } else if (flag1) { 101 | RealmsBridge realmsbridge = new RealmsBridge(); 102 | realmsbridge.switchToRealms(new GuiMainMenu()); 103 | } else { 104 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 105 | } 106 | 107 | case 2: 108 | case 3: 109 | default: 110 | break; 111 | 112 | case 4: 113 | this.mc.displayGuiScreen((GuiScreen) null); 114 | this.mc.setIngameFocus(); 115 | break; 116 | 117 | case 5: 118 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 119 | break; 120 | 121 | case 6: 122 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 123 | break; 124 | case 7: 125 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 126 | break; 127 | 128 | case 1008: 129 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 130 | break; 131 | case 3000: 132 | this.mc.displayGuiScreen(new BlitzSGQuickPlay(this)); 133 | break; 134 | case 100: 135 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l hg"); 136 | break; 137 | case 101: 138 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play blitz_solo_normal"); 139 | break; 140 | case 102: 141 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play blitz_teams_normal"); 142 | break; 143 | 144 | } 145 | } 146 | 147 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 148 | this.drawDefaultBackground(); 149 | 150 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Blitz.png")); 151 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 152 | 153 | GlStateManager.pushMatrix(); 154 | float scale2 = 0.5F; 155 | 156 | GlStateManager.popMatrix(); 157 | 158 | super.drawScreen(mouseX, mouseY, partialTicks); 159 | 160 | } 161 | 162 | } 163 | -------------------------------------------------------------------------------- /QuickPlay/BuildBattleQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class BuildBattleQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public BuildBattleQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Solo", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Teams", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("Pro Mode", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(104, this.width / 4+117, this.height / 2 + 50, 80, 20, I18n.format("Guess The Build", new Object[0]))); 64 | 65 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 66 | 67 | 68 | 69 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 70 | 71 | } 72 | 73 | 74 | 75 | 76 | private void func_146595_g() { 77 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 78 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 79 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 80 | 81 | if (this.field_146600_i) { 82 | this.field_146596_f.displayString = this.field_146596_f.displayString 83 | + I18n.format("options.on", new Object[0]); 84 | } else { 85 | this.field_146596_f.displayString = this.field_146596_f.displayString 86 | + I18n.format("options.off", new Object[0]); 87 | } 88 | } 89 | 90 | protected void actionPerformed(GuiButton button) throws IOException { 91 | switch (button.id) { 92 | case 0: 93 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 94 | break; 95 | 96 | case 1: 97 | boolean flag = this.mc.isIntegratedServerRunning(); 98 | boolean flag1 = this.mc.func_181540_al(); 99 | button.enabled = false; 100 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 101 | this.mc.loadWorld((WorldClient) null); 102 | 103 | if (flag) { 104 | this.mc.displayGuiScreen(new GuiMainMenu()); 105 | } else if (flag1) { 106 | RealmsBridge realmsbridge = new RealmsBridge(); 107 | realmsbridge.switchToRealms(new GuiMainMenu()); 108 | } else { 109 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 110 | } 111 | 112 | case 2: 113 | case 3: 114 | default: 115 | break; 116 | 117 | case 4: 118 | this.mc.displayGuiScreen((GuiScreen) null); 119 | this.mc.setIngameFocus(); 120 | break; 121 | 122 | case 5: 123 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 124 | break; 125 | 126 | case 6: 127 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 128 | break; 129 | case 7: 130 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 131 | break; 132 | 133 | case 1008: 134 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 135 | break; 136 | case 3000: 137 | this.mc.displayGuiScreen(new BuildBattleQuickPlay(this)); 138 | break; 139 | case 100: 140 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l bb"); 141 | break; 142 | case 101: 143 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play build_battle_solo_normal"); 144 | break; 145 | case 102: 146 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play build_battle_teams_normal"); 147 | break; 148 | case 103: 149 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play build_battle_solo_pro"); 150 | break; 151 | case 104: 152 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play build_battle_guess_the_build"); 153 | break; 154 | 155 | 156 | 157 | } 158 | } 159 | 160 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 161 | this.drawDefaultBackground(); 162 | 163 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/BuildBattle.png")); 164 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 165 | 166 | GlStateManager.pushMatrix(); 167 | float scale2 = 0.5F; 168 | 169 | GlStateManager.popMatrix(); 170 | 171 | super.drawScreen(mouseX, mouseY, partialTicks); 172 | 173 | } 174 | 175 | } 176 | -------------------------------------------------------------------------------- /QuickPlay/ClassicGamesQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class ClassicGamesQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public ClassicGamesQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Vampirez", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Quake Solo", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("Quake Teams", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(104, this.width / 4+117, this.height / 2 + 50, 80, 20, I18n.format("PaintBall", new Object[0]))); 64 | 65 | this.buttonList.add(new GuiButton(108, this.width / 4+117, this.height / 2 + 80, 80, 20, I18n.format("Walls", new Object[0]))); 66 | 67 | this.buttonList.add(new GuiButton(109, this.width / 4+117, this.height / 2 + 110, 80, 20, I18n.format("Turbo Kart Racers", new Object[0]))); 68 | 69 | //------------------------------------------------------------------------------------------------------------------------------------------- 70 | 71 | this.buttonList.add(new GuiButton(105, this.width / 4+20, this.height / 2 - 70, 80, 20, I18n.format("Arena 1v1", new Object[0]))); 72 | 73 | this.buttonList.add(new GuiButton(106, this.width / 4+20, this.height / 2 - 40, 80, 20, I18n.format("Arena 2v2", new Object[0]))); 74 | 75 | this.buttonList.add(new GuiButton(107, this.width / 4+20, this.height / 2 - 10, 80, 20, I18n.format("Arena 4v4", new Object[0]))); 76 | 77 | 78 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 79 | 80 | 81 | 82 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 83 | 84 | } 85 | 86 | 87 | 88 | 89 | private void func_146595_g() { 90 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 91 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 92 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 93 | 94 | if (this.field_146600_i) { 95 | this.field_146596_f.displayString = this.field_146596_f.displayString 96 | + I18n.format("options.on", new Object[0]); 97 | } else { 98 | this.field_146596_f.displayString = this.field_146596_f.displayString 99 | + I18n.format("options.off", new Object[0]); 100 | } 101 | } 102 | 103 | protected void actionPerformed(GuiButton button) throws IOException { 104 | switch (button.id) { 105 | case 0: 106 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 107 | break; 108 | 109 | case 1: 110 | boolean flag = this.mc.isIntegratedServerRunning(); 111 | boolean flag1 = this.mc.func_181540_al(); 112 | button.enabled = false; 113 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 114 | this.mc.loadWorld((WorldClient) null); 115 | 116 | if (flag) { 117 | this.mc.displayGuiScreen(new GuiMainMenu()); 118 | } else if (flag1) { 119 | RealmsBridge realmsbridge = new RealmsBridge(); 120 | realmsbridge.switchToRealms(new GuiMainMenu()); 121 | } else { 122 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 123 | } 124 | 125 | case 2: 126 | case 3: 127 | default: 128 | break; 129 | 130 | case 4: 131 | this.mc.displayGuiScreen((GuiScreen) null); 132 | this.mc.setIngameFocus(); 133 | break; 134 | 135 | case 5: 136 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 137 | break; 138 | 139 | case 6: 140 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 141 | break; 142 | case 7: 143 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 144 | break; 145 | 146 | case 1008: 147 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 148 | break; 149 | case 3000: 150 | this.mc.displayGuiScreen(new ClassicGamesQuickPlay(this)); 151 | break; 152 | case 100: 153 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l cl"); 154 | break; 155 | case 101: 156 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play vampirez"); 157 | break; 158 | case 102: 159 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play quake_solo"); 160 | break; 161 | case 103: 162 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play quake_teams"); 163 | break; 164 | case 104: 165 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play paintball"); 166 | break; 167 | case 105: 168 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arena_1v1"); 169 | break; 170 | case 106: 171 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arena_2v2"); 172 | break; 173 | case 107: 174 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play arena_4v4"); 175 | break; 176 | case 108: 177 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play walls"); 178 | break; 179 | case 109: 180 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play tkr"); 181 | break; 182 | 183 | 184 | 185 | } 186 | } 187 | 188 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 189 | this.drawDefaultBackground(); 190 | 191 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/ClassicLobby.png")); 192 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 193 | 194 | GlStateManager.pushMatrix(); 195 | float scale2 = 0.5F; 196 | 197 | GlStateManager.popMatrix(); 198 | 199 | super.drawScreen(mouseX, mouseY, partialTicks); 200 | 201 | } 202 | 203 | } 204 | -------------------------------------------------------------------------------- /QuickPlay/CopsAndCrimsQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class CopsAndCrimsQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public CopsAndCrimsQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Defusal", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Deathmatch", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("Defusal Party", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(104, this.width / 4+117, this.height / 2 + 50, 80, 20, I18n.format("Deathmatch Party", new Object[0]))); 64 | 65 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 66 | 67 | 68 | 69 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 70 | 71 | } 72 | 73 | 74 | 75 | 76 | private void func_146595_g() { 77 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 78 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 79 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 80 | 81 | if (this.field_146600_i) { 82 | this.field_146596_f.displayString = this.field_146596_f.displayString 83 | + I18n.format("options.on", new Object[0]); 84 | } else { 85 | this.field_146596_f.displayString = this.field_146596_f.displayString 86 | + I18n.format("options.off", new Object[0]); 87 | } 88 | } 89 | 90 | protected void actionPerformed(GuiButton button) throws IOException { 91 | switch (button.id) { 92 | case 0: 93 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 94 | break; 95 | 96 | case 1: 97 | boolean flag = this.mc.isIntegratedServerRunning(); 98 | boolean flag1 = this.mc.func_181540_al(); 99 | button.enabled = false; 100 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 101 | this.mc.loadWorld((WorldClient) null); 102 | 103 | if (flag) { 104 | this.mc.displayGuiScreen(new GuiMainMenu()); 105 | } else if (flag1) { 106 | RealmsBridge realmsbridge = new RealmsBridge(); 107 | realmsbridge.switchToRealms(new GuiMainMenu()); 108 | } else { 109 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 110 | } 111 | 112 | case 2: 113 | case 3: 114 | default: 115 | break; 116 | 117 | case 4: 118 | this.mc.displayGuiScreen((GuiScreen) null); 119 | this.mc.setIngameFocus(); 120 | break; 121 | 122 | case 5: 123 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 124 | break; 125 | 126 | case 6: 127 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 128 | break; 129 | case 7: 130 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 131 | break; 132 | 133 | case 1008: 134 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 135 | break; 136 | case 3000: 137 | this.mc.displayGuiScreen(new CopsAndCrimsQuickPlay(this)); 138 | break; 139 | case 100: 140 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l cc"); 141 | break; 142 | case 101: 143 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play mcgo_normal"); 144 | break; 145 | case 102: 146 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play mcgo_deathmatch"); 147 | break; 148 | case 103: 149 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play mcgo_normal_party"); 150 | break; 151 | case 104: 152 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play mcgo_deathmatch_party"); 153 | break; 154 | } 155 | } 156 | 157 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 158 | this.drawDefaultBackground(); 159 | 160 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/CopsAndCrims.png")); 161 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 162 | 163 | GlStateManager.pushMatrix(); 164 | float scale2 = 0.5F; 165 | 166 | GlStateManager.popMatrix(); 167 | 168 | super.drawScreen(mouseX, mouseY, partialTicks); 169 | 170 | } 171 | 172 | } 173 | -------------------------------------------------------------------------------- /QuickPlay/DuelsQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class DuelsQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public DuelsQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Classic", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Solo SkyWars", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("Doubles SkyWars", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(104, this.width / 4+117, this.height / 2 + 50, 80, 20, I18n.format("Solo Bow", new Object[0]))); 64 | 65 | this.buttonList.add(new GuiButton(105, this.width / 4+117, this.height / 2 + 80, 80, 20, I18n.format("Solo UHC", new Object[0]))); 66 | 67 | this.buttonList.add(new GuiButton(106, this.width / 4+117, this.height / 2 + 110, 80, 20, I18n.format("Double UHC", new Object[0]))); 68 | 69 | //------------------------------------------------------------------------------------------------------------------------------------------- 70 | 71 | this.buttonList.add(new GuiButton(107, this.width / 4+20, this.height / 2 - 70, 80, 20, I18n.format("Teams UHC", new Object[0]))); 72 | 73 | this.buttonList.add(new GuiButton(108, this.width / 4+20, this.height / 2 - 40, 80, 20, I18n.format("Deathmatch UHC", new Object[0]))); 74 | 75 | this.buttonList.add(new GuiButton(109, this.width / 4+20, this.height / 2 - 10, 80, 20, I18n.format("Solo NoDebuff", new Object[0]))); 76 | 77 | this.buttonList.add(new GuiButton(110, this.width / 4+20, this.height / 2 + 20, 80, 20, I18n.format("Solo Combo", new Object[0]))); 78 | 79 | this.buttonList.add(new GuiButton(112, this.width / 4+20, this.height / 2 + 50, 80, 20, I18n.format("Solo Potion", new Object[0]))); 80 | 81 | this.buttonList.add(new GuiButton(113, this.width / 4+20, this.height / 2 + 80, 80, 20, I18n.format("Solo OP", new Object[0]))); 82 | 83 | this.buttonList.add(new GuiButton(114, this.width / 4+20, this.height / 2 + 110, 80, 20, I18n.format("Doubles OP", new Object[0]))); 84 | 85 | //------------------------------------------------------------------------------------------------------------------------------------------- 86 | 87 | this.buttonList.add(new GuiButton(115, this.width / 4+230, this.height / 2 - 70, 80, 20, I18n.format("Solo Mega Walls", new Object[0]))); 88 | 89 | this.buttonList.add(new GuiButton(116, this.width / 4+230, this.height / 2 - 40, 80, 20, I18n.format("Doubles Mega Walls", new Object[0]))); 90 | 91 | this.buttonList.add(new GuiButton(117, this.width / 4+230, this.height / 2 - 10, 80, 20, I18n.format("Sumo", new Object[0]))); 92 | 93 | this.buttonList.add(new GuiButton(118, this.width / 4+230, this.height / 2 + 20, 80, 20, I18n.format("Solo Blitz", new Object[0]))); 94 | 95 | this.buttonList.add(new GuiButton(119, this.width / 4+230, this.height / 2 + 50, 80, 20, I18n.format("Solo Bow Spleef", new Object[0]))); 96 | 97 | this.buttonList.add(new GuiButton(121, this.width / 4+230, this.height / 2 + 80, 80, 20, I18n.format("Bridge 1v1", new Object[0]))); 98 | 99 | this.buttonList.add(new GuiButton(122, this.width / 4+230, this.height / 2 + 110, 80, 20, I18n.format("Bridge 2v2", new Object[0]))); 100 | 101 | //------------------------------------------------------------------------ 102 | 103 | this.buttonList.add(new GuiButton(123, this.width / 4-80, this.height / 2 - 70, 80, 20, I18n.format("Bridge 4v4", new Object[0]))); 104 | 105 | this.buttonList.add(new GuiButton(124, this.width / 4-80, this.height / 2 - 40, 80, 20, I18n.format("Bridge 2v2v2v2", new Object[0]))); 106 | 107 | this.buttonList.add(new GuiButton(125, this.width / 4-80, this.height / 2 - 10, 80, 20, I18n.format("Bridge 3v3v3v3", new Object[0]))); 108 | 109 | 110 | 111 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 112 | 113 | 114 | 115 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 116 | 117 | } 118 | 119 | 120 | 121 | 122 | private void func_146595_g() { 123 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 124 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 125 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 126 | 127 | if (this.field_146600_i) { 128 | this.field_146596_f.displayString = this.field_146596_f.displayString 129 | + I18n.format("options.on", new Object[0]); 130 | } else { 131 | this.field_146596_f.displayString = this.field_146596_f.displayString 132 | + I18n.format("options.off", new Object[0]); 133 | } 134 | } 135 | 136 | protected void actionPerformed(GuiButton button) throws IOException { 137 | switch (button.id) { 138 | case 0: 139 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 140 | break; 141 | 142 | case 1: 143 | boolean flag = this.mc.isIntegratedServerRunning(); 144 | boolean flag1 = this.mc.func_181540_al(); 145 | button.enabled = false; 146 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 147 | this.mc.loadWorld((WorldClient) null); 148 | 149 | if (flag) { 150 | this.mc.displayGuiScreen(new GuiMainMenu()); 151 | } else if (flag1) { 152 | RealmsBridge realmsbridge = new RealmsBridge(); 153 | realmsbridge.switchToRealms(new GuiMainMenu()); 154 | } else { 155 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 156 | } 157 | 158 | case 2: 159 | case 3: 160 | default: 161 | break; 162 | 163 | case 4: 164 | this.mc.displayGuiScreen((GuiScreen) null); 165 | this.mc.setIngameFocus(); 166 | break; 167 | 168 | case 5: 169 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 170 | break; 171 | 172 | case 6: 173 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 174 | break; 175 | case 7: 176 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 177 | break; 178 | 179 | case 1008: 180 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 181 | break; 182 | case 3000: 183 | this.mc.displayGuiScreen(new DuelsQuickPlay(this)); 184 | break; 185 | case 100: 186 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l 1v1"); 187 | break; 188 | case 101: 189 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_classic_duel"); 190 | break; 191 | case 102: 192 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_sw_duel"); 193 | break; 194 | case 103: 195 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_sw_doubles"); 196 | break; 197 | case 104: 198 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_bow_duel"); 199 | break; 200 | case 105: 201 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_uhc_duel"); 202 | break; 203 | case 106: 204 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_uhc_doubles"); 205 | break; 206 | case 107: 207 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_uhc_four"); 208 | break; 209 | case 108: 210 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_uhc_meetup"); 211 | break; 212 | case 109: 213 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_potion_duel"); 214 | break; 215 | case 110: 216 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_combo_duel"); 217 | break; 218 | case 112: 219 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_potion_duel"); 220 | break; 221 | case 113: 222 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_op_duel"); 223 | break; 224 | case 114: 225 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_op_doubles"); 226 | break; 227 | case 115: 228 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_mw_duel"); 229 | break; 230 | case 116: 231 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_mw_doubles"); 232 | break; 233 | case 117: 234 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_sumo_duel"); 235 | break; 236 | case 118: 237 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_blitz_duel"); 238 | break; 239 | case 119: 240 | Minecraft.getMinecraft().thePlayer.sendChatMessage("play duels_bowspleef_duel"); 241 | break; 242 | case 121: 243 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_bridge_duel"); 244 | break; 245 | case 122: 246 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_bridge_doubles"); 247 | break; 248 | case 123: 249 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_bridge_four"); 250 | break; 251 | case 124: 252 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_bridge_2v2v2v2"); 253 | break; 254 | case 125: 255 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play duels_bridge_3v3v3v3"); 256 | break; 257 | 258 | 259 | 260 | } 261 | } 262 | 263 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 264 | this.drawDefaultBackground(); 265 | 266 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Duels.png")); 267 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 268 | 269 | GlStateManager.pushMatrix(); 270 | float scale2 = 0.5F; 271 | 272 | GlStateManager.popMatrix(); 273 | 274 | super.drawScreen(mouseX, mouseY, partialTicks); 275 | 276 | } 277 | 278 | } 279 | -------------------------------------------------------------------------------- /QuickPlay/MegaWallsQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class MegaWallsQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public MegaWallsQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Standard", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Faceoff", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 62 | 63 | } 64 | 65 | 66 | 67 | 68 | private void func_146595_g() { 69 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 70 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 71 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 72 | 73 | if (this.field_146600_i) { 74 | this.field_146596_f.displayString = this.field_146596_f.displayString 75 | + I18n.format("options.on", new Object[0]); 76 | } else { 77 | this.field_146596_f.displayString = this.field_146596_f.displayString 78 | + I18n.format("options.off", new Object[0]); 79 | } 80 | } 81 | 82 | protected void actionPerformed(GuiButton button) throws IOException { 83 | switch (button.id) { 84 | case 0: 85 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 86 | break; 87 | 88 | case 1: 89 | boolean flag = this.mc.isIntegratedServerRunning(); 90 | boolean flag1 = this.mc.func_181540_al(); 91 | button.enabled = false; 92 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 93 | this.mc.loadWorld((WorldClient) null); 94 | 95 | if (flag) { 96 | this.mc.displayGuiScreen(new GuiMainMenu()); 97 | } else if (flag1) { 98 | RealmsBridge realmsbridge = new RealmsBridge(); 99 | realmsbridge.switchToRealms(new GuiMainMenu()); 100 | } else { 101 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 102 | } 103 | 104 | case 2: 105 | case 3: 106 | default: 107 | break; 108 | 109 | case 4: 110 | this.mc.displayGuiScreen((GuiScreen) null); 111 | this.mc.setIngameFocus(); 112 | break; 113 | 114 | case 5: 115 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 116 | break; 117 | 118 | case 6: 119 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 120 | break; 121 | case 7: 122 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 123 | break; 124 | 125 | case 1008: 126 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 127 | break; 128 | case 3000: 129 | this.mc.displayGuiScreen(new MegaWallsQuickPlay(this)); 130 | break; 131 | case 100: 132 | break; 133 | case 101: 134 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play mw_standard"); 135 | break; 136 | case 102: 137 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play mw_face_off"); 138 | break; 139 | 140 | 141 | 142 | } 143 | } 144 | 145 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 146 | this.drawDefaultBackground(); 147 | 148 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/MegaWalls.png")); 149 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 150 | 151 | GlStateManager.pushMatrix(); 152 | float scale2 = 0.5F; 153 | 154 | GlStateManager.popMatrix(); 155 | 156 | super.drawScreen(mouseX, mouseY, partialTicks); 157 | 158 | } 159 | 160 | } 161 | -------------------------------------------------------------------------------- /QuickPlay/ModQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.mods.impl; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.gui.hud.HUDConfigScreen; 12 | import century.guis.quickplay.ArcadeQuickPlay; 13 | import century.guis.quickplay.BedwarsQuickPlay; 14 | import century.guis.quickplay.BlitzSGQuickPlay; 15 | import century.guis.quickplay.BuildBattleQuickPlay; 16 | import century.guis.quickplay.ClassicGamesQuickPlay; 17 | import century.guis.quickplay.CopsAndCrimsQuickPlay; 18 | import century.guis.quickplay.DuelsQuickPlay; 19 | import century.guis.quickplay.MegaWallsQuickPlay; 20 | import century.guis.quickplay.MurderMysteryQuickPlay; 21 | import century.guis.quickplay.SkywarsQuickPlay; 22 | import century.guis.quickplay.SmashHeroesQuickPlay; 23 | import century.guis.quickplay.TNTQuickPlay; 24 | import century.guis.quickplay.UHCQuickPlay; 25 | import century.guis.quickplay.WarlordsQuickPlay; 26 | import net.minecraft.client.Minecraft; 27 | import net.minecraft.client.gui.Gui; 28 | import net.minecraft.client.gui.GuiButton; 29 | import net.minecraft.client.gui.GuiMainMenu; 30 | import net.minecraft.client.gui.GuiMultiplayer; 31 | import net.minecraft.client.gui.GuiOptions; 32 | import net.minecraft.client.gui.GuiScreen; 33 | import net.minecraft.client.gui.GuiShareToLan; 34 | import net.minecraft.client.gui.GuiYesNo; 35 | import net.minecraft.client.gui.TransparentButton; 36 | import net.minecraft.client.gui.achievement.GuiAchievements; 37 | import net.minecraft.client.gui.achievement.GuiStats; 38 | import net.minecraft.client.multiplayer.WorldClient; 39 | import net.minecraft.client.renderer.GlStateManager; 40 | import net.minecraft.client.renderer.OpenGlHelper; 41 | import net.minecraft.client.renderer.RenderHelper; 42 | import net.minecraft.client.renderer.entity.RenderManager; 43 | import net.minecraft.client.resources.I18n; 44 | import net.minecraft.entity.EntityLivingBase; 45 | import net.minecraft.realms.RealmsBridge; 46 | import net.minecraft.util.ChatComponentText; 47 | import net.minecraft.util.ChatComponentTranslation; 48 | import net.minecraft.util.IChatComponent; 49 | import net.minecraft.util.ResourceLocation; 50 | import net.minecraft.world.WorldSettings; 51 | 52 | public class ModQuickPlay extends GuiScreen { 53 | private final GuiScreen field_146598_addd; 54 | 55 | private GuiButton field_146596_f; 56 | private GuiButton field_146597_g; 57 | private String field_146599_h = "survival"; 58 | private boolean field_146600_i; 59 | 60 | public ModQuickPlay(GuiScreen p_i1055_1_ddd) { 61 | this.field_146598_addd = p_i1055_1_ddd; 62 | } 63 | 64 | public void initGui() { 65 | 66 | int i = 24; 67 | int j = this.height / 4 - 147; 68 | 69 | GuiButton guibutton; 70 | 71 | this.buttonList 72 | .add(new TransparentButton(10001, this.width / 2 - 303, j + 63 + 10, 53, 55, I18n.format("", new Object[0]))); // Main 73 | // Lobby 74 | this.buttonList 75 | .add(new TransparentButton(10002, this.width / 2 - 303, j + 63 + 76, 53, 55, I18n.format("", new Object[0]))); // Build 76 | // Battle 77 | this.buttonList 78 | .add(new TransparentButton(10003, this.width / 2 - 303, j + 63 + 143, 53, 55, I18n.format("", new Object[0]))); // Housing 79 | this.buttonList 80 | .add(new TransparentButton(10004, this.width / 2 - 303, j + 63 + 207, 53, 55, I18n.format("", new Object[0]))); // Skyblock 81 | this.buttonList 82 | .add(new TransparentButton(10005, this.width / 2 - 303, j + 63 + 270, 53, 55, I18n.format("", new Object[0]))); // TNT 83 | 84 | // ------------------------------------------------------------------------------------------------------------------ 85 | 86 | this.buttonList 87 | .add(new TransparentButton(10006, this.width / 2 - 145, j + 63 + 10, 53, 55, I18n.format("", new Object[0]))); // Arcade 88 | this.buttonList 89 | .add(new TransparentButton(10007, this.width / 2 - 145, j + 63 + 76, 53, 55, I18n.format("", new Object[0]))); // Classic 90 | // Lobby 91 | this.buttonList 92 | .add(new TransparentButton(10008, this.width / 2 - 145, j + 63 + 143, 53, 55, I18n.format("", new Object[0]))); // Mega 93 | // Walls 94 | this.buttonList 95 | .add(new TransparentButton(10009, this.width / 2 - 145, j + 63 + 207, 53, 55, I18n.format("", new Object[0]))); // SkyWars 96 | this.buttonList 97 | .add(new TransparentButton(10010, this.width / 2 - 145, j + 63 + 270, 53, 55, I18n.format("", new Object[0]))); // UHC 98 | // Champions 99 | 100 | // ------------------------------------------------------------------------------------------------------------------ 101 | 102 | this.buttonList 103 | .add(new TransparentButton(10011, this.width / 2 - 3, j + 63 + 10, 53, 55, I18n.format("", new Object[0]))); // Bedwars 104 | this.buttonList 105 | .add(new TransparentButton(10012, this.width / 2 - 3, j + 63 + 76, 53, 55, I18n.format("", new Object[0]))); // Cops 106 | // And 107 | // Crims 108 | this.buttonList 109 | .add(new TransparentButton(10013, this.width / 2 - 3, j + 63 + 143, 53, 55, I18n.format("", new Object[0]))); // Murder 110 | // Mystery 111 | this.buttonList 112 | .add(new TransparentButton(10014, this.width / 2 - 3, j + 63 + 207, 53, 55, I18n.format("", new Object[0]))); // Smash 113 | // Heroes 114 | this.buttonList 115 | .add(new TransparentButton(10015, this.width / 2 - 3, j + 63 + 270, 53, 55, I18n.format("", new Object[0]))); // Warlords 116 | 117 | // ------------------------------------------------------------------------------------------------------------------ 118 | 119 | this.buttonList 120 | .add(new TransparentButton(10016, this.width / 2 + 153, j + 63 + 10, 53, 55, I18n.format("", new Object[0]))); // Blitz 121 | // SG 122 | this.buttonList 123 | .add(new TransparentButton(10017, this.width / 2 + 153, j + 63 + 76, 53, 55, I18n.format("", new Object[0]))); // Duels 124 | this.buttonList 125 | .add(new TransparentButton(10018, this.width / 2 + 153, j + 63 + 143, 53, 55, I18n.format("", new Object[0]))); // Prototype 126 | this.buttonList 127 | .add(new TransparentButton(10019, this.width / 2 + 153, j + 63 + 207, 53, 55, I18n.format("", new Object[0]))); // The 128 | // Pit 129 | } 130 | 131 | private void func_146595_g() { 132 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 133 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 134 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 135 | 136 | if (this.field_146600_i) { 137 | this.field_146596_f.displayString = this.field_146596_f.displayString 138 | + I18n.format("options.on", new Object[0]); 139 | } else { 140 | this.field_146596_f.displayString = this.field_146596_f.displayString 141 | + I18n.format("options.off", new Object[0]); 142 | } 143 | } 144 | 145 | protected void actionPerformed(GuiButton button) throws IOException { 146 | switch (button.id) { 147 | case 0: 148 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 149 | break; 150 | 151 | case 1: 152 | boolean flag = this.mc.isIntegratedServerRunning(); 153 | boolean flag1 = this.mc.func_181540_al(); 154 | button.enabled = false; 155 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 156 | this.mc.loadWorld((WorldClient) null); 157 | 158 | if (flag) { 159 | this.mc.displayGuiScreen(new GuiMainMenu()); 160 | } else if (flag1) { 161 | RealmsBridge realmsbridge = new RealmsBridge(); 162 | realmsbridge.switchToRealms(new GuiMainMenu()); 163 | } else { 164 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 165 | } 166 | 167 | case 2: 168 | case 3: 169 | default: 170 | break; 171 | 172 | case 4: 173 | this.mc.displayGuiScreen((GuiScreen) null); 174 | this.mc.setIngameFocus(); 175 | break; 176 | 177 | case 5: 178 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 179 | break; 180 | 181 | case 6: 182 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 183 | break; 184 | case 7: 185 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 186 | break; 187 | 188 | case 8: 189 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 190 | break; 191 | // ------------------------------------------------------------------------------------------------------------------ 192 | case 10001: 193 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/lobby"); 194 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/lobby"); 195 | break; 196 | case 10002: 197 | this.mc.displayGuiScreen(new BuildBattleQuickPlay(this)); 198 | break; 199 | case 10003: 200 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/home"); 201 | break; 202 | case 10004: 203 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/skyblock"); 204 | break; 205 | case 10005: 206 | this.mc.displayGuiScreen(new TNTQuickPlay(this)); 207 | break; 208 | // ------------------------------------------------------------------------------------------------------------------ 209 | case 10006: 210 | this.mc.displayGuiScreen(new ArcadeQuickPlay(this)); 211 | break; 212 | case 10007: 213 | this.mc.displayGuiScreen(new ClassicGamesQuickPlay(this)); 214 | break; 215 | case 10008: 216 | this.mc.displayGuiScreen(new MegaWallsQuickPlay(this)); 217 | break; 218 | case 10009: 219 | this.mc.displayGuiScreen(new SkywarsQuickPlay(this)); 220 | break; 221 | case 10010: 222 | this.mc.displayGuiScreen(new UHCQuickPlay(this)); 223 | break; 224 | 225 | // ------------------------------------------------------------------------------------------------------------------ 226 | 227 | case 10011: 228 | this.mc.displayGuiScreen(new BedwarsQuickPlay(this)); 229 | break; 230 | case 10012: 231 | this.mc.displayGuiScreen(new CopsAndCrimsQuickPlay(this)); 232 | break; 233 | case 10013: 234 | this.mc.displayGuiScreen(new MurderMysteryQuickPlay(this)); 235 | break; 236 | case 10014: 237 | this.mc.displayGuiScreen(new SmashHeroesQuickPlay(this)); 238 | break; 239 | case 10015: 240 | this.mc.displayGuiScreen(new WarlordsQuickPlay(this)); 241 | break; 242 | 243 | // ------------------------------------------------------------------------------------------------------------------ 244 | 245 | case 10016: 246 | this.mc.displayGuiScreen(new BlitzSGQuickPlay(this)); 247 | break; 248 | case 10017: 249 | this.mc.displayGuiScreen(new DuelsQuickPlay(this)); 250 | break; 251 | case 10018: 252 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l ptl"); 253 | break; 254 | case 10019: 255 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play pit"); 256 | break; 257 | case 10020: 258 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play pit"); 259 | break; 260 | 261 | // ------------------------------------------------------------------------------------------------------------------ 262 | 263 | } 264 | } 265 | 266 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 267 | this.drawDefaultBackground(); 268 | 269 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/MainLobby.png")); 270 | Gui.drawModalRectWithCustomSizedTexture(this.width / +36, this.height / 8 - 30, -1, 0, 53, 53, 53, 53); 271 | this.drawString(fontRendererObj, "Main Lobby", this.width / +3 - 130, this.height / 8 - 10, 272 | -Color.darkGray.getRGB()); 273 | 274 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Arcade.png")); 275 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 15, this.height / 8 - 30, -1, 0, 53, 53, 53, 53); 276 | this.drawString(fontRendererObj, "Arcade", this.width / +2 - 76, this.height / 8 - 10, 277 | -Color.darkGray.getRGB()); 278 | 279 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Bedwars.png")); 280 | Gui.drawModalRectWithCustomSizedTexture(this.width / +2 - 3, this.height / 8 - 30, -1, 0, 53, 53, 53, 53); 281 | this.drawString(fontRendererObj, "Bedwars", this.width / +2 + 60, this.height / 8 - 10, 282 | -Color.darkGray.getRGB()); 283 | 284 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Blitz.png")); 285 | Gui.drawModalRectWithCustomSizedTexture(this.width / +2 + 153, this.height / 8 - 30, -1, 0, 53, 53, 53, 53); 286 | this.drawString(fontRendererObj, "Blitz SG", this.width / +1 - 104, this.height / 8 - 10, 287 | -Color.darkGray.getRGB()); 288 | 289 | // ------------------------------------------------------------------------------------------------------------------ 290 | 291 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/BuildBattle.png")); 292 | Gui.drawModalRectWithCustomSizedTexture(this.width / +36, this.height / 8 + 35, -1, 0, 53, 53, 53, 53); 293 | this.drawString(fontRendererObj, "Build Battle", this.width / +3 - 130, this.height / 8 + 55, 294 | -Color.darkGray.getRGB()); 295 | 296 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/ClassicLobby.png")); 297 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 15, this.height / 8 + 35, -1, 0, 53, 53, 53, 53); 298 | this.drawString(fontRendererObj, "Classic Games", this.width / +2 - 79, this.height / 8 + 55, 299 | -Color.darkGray.getRGB()); 300 | 301 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/CopsAndCrims.png")); 302 | Gui.drawModalRectWithCustomSizedTexture(this.width / +2 - 3, this.height / 8 + 35, -1, 0, 53, 53, 53, 53); 303 | this.drawString(fontRendererObj, "Cops And Crims", this.width / +2 + 60, this.height / 8 + 55, 304 | -Color.darkGray.getRGB()); 305 | 306 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Duels.png")); 307 | Gui.drawModalRectWithCustomSizedTexture(this.width / +2 + 153, this.height / 8 + 35, -1, 0, 53, 53, 53, 53); 308 | this.drawString(fontRendererObj, "Duels", this.width / +1 - 104, this.height / 8 + 55, 309 | -Color.darkGray.getRGB()); 310 | 311 | // ------------------------------------------------------------------------------------------------------------------ 312 | 313 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Housing.png")); 314 | Gui.drawModalRectWithCustomSizedTexture(this.width / +36, this.height / 8 + 100, -1, 0, 53, 53, 53, 53); 315 | this.drawString(fontRendererObj, "Housing", this.width / +3 - 130, this.height / 8 + 119, 316 | -Color.darkGray.getRGB()); 317 | 318 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/MegaWalls.png")); 319 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 15, this.height / 8 + 100, -1, 0, 53, 53, 53, 53); 320 | this.drawString(fontRendererObj, "Mega Walls", this.width / +2 - 79, this.height / 8 + 119, 321 | -Color.darkGray.getRGB()); 322 | 323 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/MurderMystery.png")); 324 | Gui.drawModalRectWithCustomSizedTexture(this.width / +2 - 3, this.height / 8 + 100, -1, 0, 53, 53, 53, 53); 325 | this.drawString(fontRendererObj, "Murder Mystery", this.width / +2 + 60, this.height / 8 + 119, 326 | -Color.darkGray.getRGB()); 327 | 328 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Prototype.png")); 329 | Gui.drawModalRectWithCustomSizedTexture(this.width / +2 + 153, this.height / 8 + 100, -1, 0, 53, 53, 53, 53); 330 | this.drawString(fontRendererObj, "Prototype", this.width / +1 - 104, this.height / 8 + 119, 331 | -Color.darkGray.getRGB()); 332 | 333 | // ------------------------------------------------------------------------------------------------------------------ 334 | 335 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Skyblock.png")); 336 | Gui.drawModalRectWithCustomSizedTexture(this.width / +36, this.height / 8 + 165, -1, 0, 53, 53, 53, 53); 337 | this.drawString(fontRendererObj, "Skyblock", this.width / +3 - 130, this.height / 8 + 185, 338 | -Color.darkGray.getRGB()); 339 | 340 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/SkyWars.png")); 341 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 15, this.height / 8 + 165, -1, 0, 53, 53, 53, 53); 342 | this.drawString(fontRendererObj, "Skywars", this.width / +2 - 79, this.height / 8 + 185, 343 | -Color.darkGray.getRGB()); 344 | 345 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/SmashHeroes.png")); 346 | Gui.drawModalRectWithCustomSizedTexture(this.width / +2 - 3, this.height / 8 + 165, -1, 0, 53, 53, 53, 53); 347 | this.drawString(fontRendererObj, "Smash Heroes", this.width / +2 + 60, this.height / 8 + 185, 348 | -Color.darkGray.getRGB()); 349 | 350 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Pit.png")); 351 | Gui.drawModalRectWithCustomSizedTexture(this.width / +2 + 153, this.height / 8 + 165, -1, 0, 53, 53, 53, 53); 352 | this.drawString(fontRendererObj, "The Pit", this.width / +1 - 104, this.height / 8 + 185, 353 | -Color.darkGray.getRGB()); 354 | 355 | // ------------------------------------------------------------------------------------------------------------------ 356 | 357 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/TNT.png")); 358 | Gui.drawModalRectWithCustomSizedTexture(this.width / +36, this.height / 8 + 230, -1, 0, 53, 53, 53, 53); 359 | this.drawString(fontRendererObj, "TNT Games", this.width / +3 - 130, this.height / 8 + 251, 360 | -Color.darkGray.getRGB()); 361 | 362 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/UHC.png")); 363 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 15, this.height / 8 + 230, -1, 0, 53, 53, 53, 53); 364 | this.drawString(fontRendererObj, "UHC Champions", this.width / +2 - 79, this.height / 8 + 251, 365 | -Color.darkGray.getRGB()); 366 | 367 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Warlords.png")); 368 | Gui.drawModalRectWithCustomSizedTexture(this.width / +2 - 3, this.height / 8 + 230, -1, 0, 53, 53, 53, 53); 369 | this.drawString(fontRendererObj, "Warlords", this.width / +2 + 60, this.height / 8 + 251, 370 | -Color.darkGray.getRGB()); 371 | 372 | // ------------------------------------------------------------------------------------------------------------------ 373 | 374 | GlStateManager.pushMatrix(); 375 | 376 | GL11.glEnable(GL11.GL_BLEND); 377 | GL11.glDisable(GL11.GL_BLEND); 378 | GlStateManager.popMatrix(); 379 | 380 | super.drawScreen(mouseX, mouseY, partialTicks); 381 | 382 | } 383 | 384 | public void openQuickPlay() { 385 | mc.displayGuiScreen(new ModQuickPlay(this)); 386 | } 387 | 388 | } 389 | -------------------------------------------------------------------------------- /QuickPlay/MurderMysteryQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class MurderMysteryQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public MurderMysteryQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Classic", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Double Up", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("Assasins", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(104, this.width / 4+117, this.height / 2 + 50, 80, 20, I18n.format("Infection", new Object[0]))); 64 | 65 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 66 | 67 | 68 | 69 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 70 | 71 | } 72 | 73 | 74 | 75 | 76 | private void func_146595_g() { 77 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 78 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 79 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 80 | 81 | if (this.field_146600_i) { 82 | this.field_146596_f.displayString = this.field_146596_f.displayString 83 | + I18n.format("options.on", new Object[0]); 84 | } else { 85 | this.field_146596_f.displayString = this.field_146596_f.displayString 86 | + I18n.format("options.off", new Object[0]); 87 | } 88 | } 89 | 90 | protected void actionPerformed(GuiButton button) throws IOException { 91 | switch (button.id) { 92 | case 0: 93 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 94 | break; 95 | 96 | case 1: 97 | boolean flag = this.mc.isIntegratedServerRunning(); 98 | boolean flag1 = this.mc.func_181540_al(); 99 | button.enabled = false; 100 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 101 | this.mc.loadWorld((WorldClient) null); 102 | 103 | if (flag) { 104 | this.mc.displayGuiScreen(new GuiMainMenu()); 105 | } else if (flag1) { 106 | RealmsBridge realmsbridge = new RealmsBridge(); 107 | realmsbridge.switchToRealms(new GuiMainMenu()); 108 | } else { 109 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 110 | } 111 | 112 | case 2: 113 | case 3: 114 | default: 115 | break; 116 | 117 | case 4: 118 | this.mc.displayGuiScreen((GuiScreen) null); 119 | this.mc.setIngameFocus(); 120 | break; 121 | 122 | case 5: 123 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 124 | break; 125 | 126 | case 6: 127 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 128 | break; 129 | case 7: 130 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 131 | break; 132 | 133 | case 1008: 134 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 135 | break; 136 | case 3000: 137 | this.mc.displayGuiScreen(new MurderMysteryQuickPlay(this)); 138 | break; 139 | case 100: 140 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l mm"); 141 | break; 142 | case 101: 143 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play murder_classic"); 144 | break; 145 | case 102: 146 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play murder_double_up"); 147 | break; 148 | case 103: 149 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play murder_assassins"); 150 | break; 151 | case 104: 152 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play murder_infection"); 153 | break; 154 | } 155 | } 156 | 157 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 158 | this.drawDefaultBackground(); 159 | 160 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/MurderMystery.png")); 161 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 162 | 163 | GlStateManager.pushMatrix(); 164 | float scale2 = 0.5F; 165 | 166 | GlStateManager.popMatrix(); 167 | 168 | super.drawScreen(mouseX, mouseY, partialTicks); 169 | 170 | } 171 | 172 | } 173 | -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/Arcade.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/Arcade.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/Bedwars.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/Bedwars.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/Blitz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/Blitz.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/BuildBattle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/BuildBattle.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/ClassicLobby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/ClassicLobby.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/CopsAndCrims.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/CopsAndCrims.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/Duels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/Duels.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/Housing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/Housing.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/MainLobby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/MainLobby.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/MegaWalls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/MegaWalls.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/MurderMystery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/MurderMystery.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/Pit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/Pit.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/Prototype.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/Prototype.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/SkyWars.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/SkyWars.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/Skyblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/Skyblock.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/SmashHeroes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/SmashHeroes.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/TNT.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/TNT.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/UHC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/UHC.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/Warlords.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/Warlords.png -------------------------------------------------------------------------------- /QuickPlay/QuickPlay/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sauq/mcp-snippets/b7abf16bb843ed05e2c6db19bdf587c5b12fd50b/QuickPlay/QuickPlay/test.png -------------------------------------------------------------------------------- /QuickPlay/README.md: -------------------------------------------------------------------------------- 1 | # Quick Play 2 | - This took me ages so if you could subscribe (https://www.youtube.com/channel/UCasgtGl0LX5gTgvVAFpvr5g) That would be great! I upload alot of MCP and other useful things! 3 | 4 | - Crediting would be nice but you dont have to! 5 | - If you get any erros with GuiClientMenu just remove everything to do with it. If you need further support DM Me on Discord: Sauq#6292 6 | 7 | ## Instructions: 8 | - Put the QuickPlay folder with images in your client assets folder 9 | - Open the TransparentButton Folder and put the class in your client/src/net/minecraft/client/gui/ 10 | - Make a Keybind in GameSettings.java called CLIENT_QUICKPLAY 11 | - Put all of the remaining classes into your mod packages 12 | - Add this to the top of your Client.java class: private ModQuickPlay modQuickPlay; 13 | - Add this to your Client.java in your onTick method 14 | 15 | if (Minecraft.getMinecraft().gameSettings.CLIENT_QUICKPLAY.isPressed()) { 16 | Minecraft.getMinecraft().displayGuiScreen(new ModQuickPlay(modQuickPlay)); 17 | } 18 | 19 | - Click your set keybind in game and it should come up! 20 | 21 | 22 | ![image](https://user-images.githubusercontent.com/69165251/116797025-23317100-aad9-11eb-82e0-b7402f472b05.png) 23 | -------------------------------------------------------------------------------- /QuickPlay/SkywarsQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class SkywarsQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public SkywarsQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Solo Normal", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Solo Insane", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("Teams Normal", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(104, this.width / 4+117, this.height / 2 + 50, 80, 20, I18n.format("Teams Insane", new Object[0]))); 64 | 65 | this.buttonList.add(new GuiButton(105, this.width / 4+117, this.height / 2 + 80, 80, 20, I18n.format("Ranked", new Object[0]))); 66 | 67 | this.buttonList.add(new GuiButton(106, this.width / 4+117, this.height / 2 + 110, 80, 20, I18n.format("Mega", new Object[0]))); 68 | 69 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 70 | 71 | 72 | 73 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 74 | 75 | } 76 | 77 | 78 | 79 | 80 | private void func_146595_g() { 81 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 82 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 83 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 84 | 85 | if (this.field_146600_i) { 86 | this.field_146596_f.displayString = this.field_146596_f.displayString 87 | + I18n.format("options.on", new Object[0]); 88 | } else { 89 | this.field_146596_f.displayString = this.field_146596_f.displayString 90 | + I18n.format("options.off", new Object[0]); 91 | } 92 | } 93 | 94 | protected void actionPerformed(GuiButton button) throws IOException { 95 | switch (button.id) { 96 | case 0: 97 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 98 | break; 99 | 100 | case 1: 101 | boolean flag = this.mc.isIntegratedServerRunning(); 102 | boolean flag1 = this.mc.func_181540_al(); 103 | button.enabled = false; 104 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 105 | this.mc.loadWorld((WorldClient) null); 106 | 107 | if (flag) { 108 | this.mc.displayGuiScreen(new GuiMainMenu()); 109 | } else if (flag1) { 110 | RealmsBridge realmsbridge = new RealmsBridge(); 111 | realmsbridge.switchToRealms(new GuiMainMenu()); 112 | } else { 113 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 114 | } 115 | 116 | case 2: 117 | case 3: 118 | default: 119 | break; 120 | 121 | case 4: 122 | this.mc.displayGuiScreen((GuiScreen) null); 123 | this.mc.setIngameFocus(); 124 | break; 125 | 126 | case 5: 127 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 128 | break; 129 | 130 | case 6: 131 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 132 | break; 133 | case 7: 134 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 135 | break; 136 | 137 | case 1008: 138 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 139 | break; 140 | case 3000: 141 | this.mc.displayGuiScreen(new SkywarsQuickPlay(this)); 142 | break; 143 | case 100: 144 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l s"); 145 | break; 146 | case 101: 147 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play solo_normal"); 148 | break; 149 | case 102: 150 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play solo_insane"); 151 | break; 152 | case 103: 153 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play teams_normal"); 154 | break; 155 | case 104: 156 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play teams_insane"); 157 | break; 158 | case 105: 159 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play ranked_normal"); 160 | break; 161 | case 106: 162 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play mega_normal"); 163 | break; 164 | 165 | 166 | } 167 | } 168 | 169 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 170 | this.drawDefaultBackground(); 171 | 172 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/SkyWars.png")); 173 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 174 | 175 | GlStateManager.pushMatrix(); 176 | float scale2 = 0.5F; 177 | 178 | GlStateManager.popMatrix(); 179 | 180 | super.drawScreen(mouseX, mouseY, partialTicks); 181 | 182 | } 183 | 184 | } 185 | -------------------------------------------------------------------------------- /QuickPlay/SmashHeroesQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class SmashHeroesQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public SmashHeroesQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Solo 1v1v1v1", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Teams 2v2", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("Teams 2v2v2", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(104, this.width / 4+117, this.height / 2 + 50, 80, 20, I18n.format("1v1 Mode", new Object[0]))); 64 | 65 | this.buttonList.add(new GuiButton(105, this.width / 4+117, this.height / 2 + 80, 80, 20, I18n.format("Friends 1v1v1v1", new Object[0]))); 66 | 67 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 68 | 69 | 70 | 71 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 72 | 73 | } 74 | 75 | 76 | 77 | 78 | private void func_146595_g() { 79 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 80 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 81 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 82 | 83 | if (this.field_146600_i) { 84 | this.field_146596_f.displayString = this.field_146596_f.displayString 85 | + I18n.format("options.on", new Object[0]); 86 | } else { 87 | this.field_146596_f.displayString = this.field_146596_f.displayString 88 | + I18n.format("options.off", new Object[0]); 89 | } 90 | } 91 | 92 | protected void actionPerformed(GuiButton button) throws IOException { 93 | switch (button.id) { 94 | case 0: 95 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 96 | break; 97 | 98 | case 1: 99 | boolean flag = this.mc.isIntegratedServerRunning(); 100 | boolean flag1 = this.mc.func_181540_al(); 101 | button.enabled = false; 102 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 103 | this.mc.loadWorld((WorldClient) null); 104 | 105 | if (flag) { 106 | this.mc.displayGuiScreen(new GuiMainMenu()); 107 | } else if (flag1) { 108 | RealmsBridge realmsbridge = new RealmsBridge(); 109 | realmsbridge.switchToRealms(new GuiMainMenu()); 110 | } else { 111 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 112 | } 113 | 114 | case 2: 115 | case 3: 116 | default: 117 | break; 118 | 119 | case 4: 120 | this.mc.displayGuiScreen((GuiScreen) null); 121 | this.mc.setIngameFocus(); 122 | break; 123 | 124 | case 5: 125 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 126 | break; 127 | 128 | case 6: 129 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 130 | break; 131 | case 7: 132 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 133 | break; 134 | 135 | case 1008: 136 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 137 | break; 138 | case 3000: 139 | this.mc.displayGuiScreen(new SmashHeroesQuickPlay(this)); 140 | break; 141 | case 100: 142 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l smash"); 143 | break; 144 | case 101: 145 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play super_smash_solo_normal"); 146 | break; 147 | case 102: 148 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play super_smash_2v2_normal"); 149 | break; 150 | case 103: 151 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play super_smash_teams_normal"); 152 | break; 153 | case 104: 154 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play super_smash_1v1_normal"); 155 | break; 156 | case 105: 157 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play super_smash_friends_normal"); 158 | break; 159 | } 160 | } 161 | 162 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 163 | this.drawDefaultBackground(); 164 | 165 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/SmashHeroes.png")); 166 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 167 | 168 | GlStateManager.pushMatrix(); 169 | float scale2 = 0.5F; 170 | 171 | GlStateManager.popMatrix(); 172 | 173 | super.drawScreen(mouseX, mouseY, partialTicks); 174 | 175 | } 176 | 177 | } 178 | -------------------------------------------------------------------------------- /QuickPlay/TNTQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class TNTQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public TNTQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("TNT Run", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("PVP Run", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("Bow Spleef", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(104, this.width / 4+117, this.height / 2 + 50, 80, 20, I18n.format("TNT Tag", new Object[0]))); 64 | 65 | this.buttonList.add(new GuiButton(105, this.width / 4+117, this.height / 2 + 80, 80, 20, I18n.format("TNT Wizards", new Object[0]))); 66 | 67 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 68 | 69 | 70 | 71 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 72 | 73 | } 74 | 75 | 76 | 77 | 78 | private void func_146595_g() { 79 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 80 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 81 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 82 | 83 | if (this.field_146600_i) { 84 | this.field_146596_f.displayString = this.field_146596_f.displayString 85 | + I18n.format("options.on", new Object[0]); 86 | } else { 87 | this.field_146596_f.displayString = this.field_146596_f.displayString 88 | + I18n.format("options.off", new Object[0]); 89 | } 90 | } 91 | 92 | protected void actionPerformed(GuiButton button) throws IOException { 93 | switch (button.id) { 94 | case 0: 95 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 96 | break; 97 | 98 | case 1: 99 | boolean flag = this.mc.isIntegratedServerRunning(); 100 | boolean flag1 = this.mc.func_181540_al(); 101 | button.enabled = false; 102 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 103 | this.mc.loadWorld((WorldClient) null); 104 | 105 | if (flag) { 106 | this.mc.displayGuiScreen(new GuiMainMenu()); 107 | } else if (flag1) { 108 | RealmsBridge realmsbridge = new RealmsBridge(); 109 | realmsbridge.switchToRealms(new GuiMainMenu()); 110 | } else { 111 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 112 | } 113 | 114 | case 2: 115 | case 3: 116 | default: 117 | break; 118 | 119 | case 4: 120 | this.mc.displayGuiScreen((GuiScreen) null); 121 | this.mc.setIngameFocus(); 122 | break; 123 | 124 | case 5: 125 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 126 | break; 127 | 128 | case 6: 129 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 130 | break; 131 | case 7: 132 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 133 | break; 134 | 135 | case 1008: 136 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 137 | break; 138 | case 3000: 139 | this.mc.displayGuiScreen(new TNTQuickPlay(this)); 140 | break; 141 | case 100: 142 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l tnt"); 143 | break; 144 | case 101: 145 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play tnt_tntrun"); 146 | break; 147 | case 102: 148 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play tnt_pvprun"); 149 | break; 150 | case 103: 151 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play tnt_bowspleef"); 152 | break; 153 | case 104: 154 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play tnt_tntag"); 155 | break; 156 | case 105: 157 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play tnt_capture"); 158 | break; 159 | 160 | 161 | } 162 | } 163 | 164 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 165 | this.drawDefaultBackground(); 166 | 167 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/TNT.png")); 168 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 169 | 170 | GlStateManager.pushMatrix(); 171 | float scale2 = 0.5F; 172 | 173 | GlStateManager.popMatrix(); 174 | 175 | super.drawScreen(mouseX, mouseY, partialTicks); 176 | 177 | } 178 | 179 | } 180 | -------------------------------------------------------------------------------- /QuickPlay/TransparentButton/TransparentButton.java: -------------------------------------------------------------------------------- 1 | package net.minecraft.client.gui; 2 | import net.minecraft.client.Minecraft; 3 | import net.minecraft.client.renderer.GlStateManager; 4 | 5 | public class TransparentButton extends GuiButton { 6 | 7 | private int buttonId, x, y, widthIn, heightIn; 8 | private String buttonText; 9 | 10 | public TransparentButton(int buttonId, int x, int y, int widthIn, int heightIn, String buttonText) { 11 | super(buttonId, x, y, widthIn, heightIn, buttonText); 12 | 13 | this.x = x; 14 | this.y = y; 15 | this.widthIn = widthIn; 16 | this.heightIn = heightIn; 17 | this.buttonText = buttonText; 18 | } 19 | 20 | public void drawButton(Minecraft mc, int mouseX, int mouseY) { 21 | if (this.visible) { 22 | FontRenderer fontrenderer = mc.fontRendererObj; 23 | mc.getTextureManager().bindTexture(buttonTextures); 24 | GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); 25 | this.hovered = mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width 26 | && mouseY < this.yPosition + this.height; 27 | int i = this.getHoverState(this.hovered); 28 | GlStateManager.enableBlend(); 29 | GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0); 30 | GlStateManager.blendFunc(770, 771); 31 | int clr = 0x44000000; 32 | if(this.hovered) { 33 | clr = 0x54000000; 34 | } 35 | this.mouseDragged(mc, mouseX, mouseY); 36 | int j = 14737632; 37 | if (!this.enabled) { 38 | j = 10526880; 39 | } else if (this.hovered) { 40 | j = 16777120; 41 | } 42 | this.drawCenteredString(fontrenderer, this.displayString, this.xPosition + this.width / 2,this.yPosition + (this.height - 8) / 2, 0xffffff); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /QuickPlay/UHCQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class UHCQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public UHCQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Lobby", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Solo", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Teams", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(103, this.width / 4+117, this.height / 2 + 20, 80, 20, I18n.format("Events Mode", new Object[0]))); 62 | 63 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 64 | 65 | 66 | 67 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 68 | 69 | } 70 | 71 | 72 | 73 | 74 | private void func_146595_g() { 75 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 76 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 77 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 78 | 79 | if (this.field_146600_i) { 80 | this.field_146596_f.displayString = this.field_146596_f.displayString 81 | + I18n.format("options.on", new Object[0]); 82 | } else { 83 | this.field_146596_f.displayString = this.field_146596_f.displayString 84 | + I18n.format("options.off", new Object[0]); 85 | } 86 | } 87 | 88 | protected void actionPerformed(GuiButton button) throws IOException { 89 | switch (button.id) { 90 | case 0: 91 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 92 | break; 93 | 94 | case 1: 95 | boolean flag = this.mc.isIntegratedServerRunning(); 96 | boolean flag1 = this.mc.func_181540_al(); 97 | button.enabled = false; 98 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 99 | this.mc.loadWorld((WorldClient) null); 100 | 101 | if (flag) { 102 | this.mc.displayGuiScreen(new GuiMainMenu()); 103 | } else if (flag1) { 104 | RealmsBridge realmsbridge = new RealmsBridge(); 105 | realmsbridge.switchToRealms(new GuiMainMenu()); 106 | } else { 107 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 108 | } 109 | 110 | case 2: 111 | case 3: 112 | default: 113 | break; 114 | 115 | case 4: 116 | this.mc.displayGuiScreen((GuiScreen) null); 117 | this.mc.setIngameFocus(); 118 | break; 119 | 120 | case 5: 121 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 122 | break; 123 | 124 | case 6: 125 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 126 | break; 127 | case 7: 128 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 129 | break; 130 | 131 | case 1008: 132 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 133 | break; 134 | case 3000: 135 | this.mc.displayGuiScreen(new UHCQuickPlay(this)); 136 | break; 137 | case 100: 138 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l hc"); 139 | break; 140 | case 101: 141 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play uhc_solo"); 142 | break; 143 | case 102: 144 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play uhc_teams"); 145 | break; 146 | case 103: 147 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play /play uhc_events"); 148 | break; 149 | 150 | 151 | } 152 | } 153 | 154 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 155 | this.drawDefaultBackground(); 156 | 157 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/UHC.png")); 158 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 159 | 160 | GlStateManager.pushMatrix(); 161 | float scale2 = 0.5F; 162 | 163 | GlStateManager.popMatrix(); 164 | 165 | super.drawScreen(mouseX, mouseY, partialTicks); 166 | 167 | } 168 | 169 | } 170 | -------------------------------------------------------------------------------- /QuickPlay/WarlordsQuickPlay.java: -------------------------------------------------------------------------------- 1 | package century.guis.quickplay; 2 | 3 | import java.awt.Color; 4 | import java.io.IOException; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import org.lwjgl.opengl.GL11; 9 | 10 | import CenturyClient.Client; 11 | import century.guis.GUIClientMenu; 12 | import century.mods.impl.ModQuickPlay; 13 | import net.minecraft.client.Minecraft; 14 | import net.minecraft.client.gui.Gui; 15 | import net.minecraft.client.gui.GuiButton; 16 | import net.minecraft.client.gui.GuiMainMenu; 17 | import net.minecraft.client.gui.GuiMultiplayer; 18 | import net.minecraft.client.gui.GuiOptions; 19 | import net.minecraft.client.gui.GuiScreen; 20 | import net.minecraft.client.gui.GuiShareToLan; 21 | import net.minecraft.client.gui.GuiYesNo; 22 | import net.minecraft.client.gui.achievement.GuiAchievements; 23 | import net.minecraft.client.gui.achievement.GuiStats; 24 | import net.minecraft.client.multiplayer.WorldClient; 25 | import net.minecraft.client.renderer.GlStateManager; 26 | import net.minecraft.client.renderer.OpenGlHelper; 27 | import net.minecraft.client.renderer.RenderHelper; 28 | import net.minecraft.client.renderer.entity.RenderManager; 29 | import net.minecraft.client.resources.I18n; 30 | import net.minecraft.entity.EntityLivingBase; 31 | import net.minecraft.realms.RealmsBridge; 32 | import net.minecraft.util.ChatComponentText; 33 | import net.minecraft.util.ChatComponentTranslation; 34 | import net.minecraft.util.IChatComponent; 35 | import net.minecraft.util.ResourceLocation; 36 | import net.minecraft.world.WorldSettings; 37 | 38 | public class WarlordsQuickPlay extends GuiScreen { 39 | private final GuiScreen field_146598_aaaaa; 40 | 41 | 42 | private GuiButton field_146596_f; 43 | private GuiButton field_146597_g; 44 | private String field_146599_h = "survival"; 45 | private boolean field_146600_i; 46 | 47 | public WarlordsQuickPlay(GuiScreen p_i1055_1_dada_) { 48 | this.field_146598_aaaaa = p_i1055_1_dada_; 49 | } 50 | 51 | public void initGui() { 52 | 53 | GuiButton guibutton; 54 | 55 | this.buttonList.add(new GuiButton(100, this.width / 4+117, this.height / 2 - 70, 80, 20, I18n.format("Capture The Flag", new Object[0]))); 56 | 57 | this.buttonList.add(new GuiButton(101, this.width / 4+117, this.height / 2 - 40, 80, 20, I18n.format("Domination", new Object[0]))); 58 | 59 | this.buttonList.add(new GuiButton(102, this.width / 4+117, this.height / 2 - 10, 80, 20, I18n.format("Team Deathmatch", new Object[0]))); 60 | 61 | this.buttonList.add(new GuiButton(1008, this.width / 2 - -222, this.height / 2 + 140, 80, 20, I18n.format("Back", new Object[0]))); 62 | 63 | 64 | 65 | //this.buttonList.add(new GuiButton(1024, this.width / 2 - 40, this.height / 2 + 50, 80, 20, I18n.format(Slime, new Object[0]))); 66 | 67 | } 68 | 69 | 70 | 71 | 72 | private void func_146595_g() { 73 | this.field_146597_g.displayString = I18n.format("selectWorld.gameMode", new Object[0]) + " " 74 | + I18n.format("selectWorld.gameMode." + this.field_146599_h, new Object[0]); 75 | this.field_146596_f.displayString = I18n.format("selectWorld.allowCommands", new Object[0]) + " "; 76 | 77 | if (this.field_146600_i) { 78 | this.field_146596_f.displayString = this.field_146596_f.displayString 79 | + I18n.format("options.on", new Object[0]); 80 | } else { 81 | this.field_146596_f.displayString = this.field_146596_f.displayString 82 | + I18n.format("options.off", new Object[0]); 83 | } 84 | } 85 | 86 | protected void actionPerformed(GuiButton button) throws IOException { 87 | switch (button.id) { 88 | case 0: 89 | this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); 90 | break; 91 | 92 | case 1: 93 | boolean flag = this.mc.isIntegratedServerRunning(); 94 | boolean flag1 = this.mc.func_181540_al(); 95 | button.enabled = false; 96 | this.mc.theWorld.sendQuittingDisconnectingPacket(); 97 | this.mc.loadWorld((WorldClient) null); 98 | 99 | if (flag) { 100 | this.mc.displayGuiScreen(new GuiMainMenu()); 101 | } else if (flag1) { 102 | RealmsBridge realmsbridge = new RealmsBridge(); 103 | realmsbridge.switchToRealms(new GuiMainMenu()); 104 | } else { 105 | this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu())); 106 | } 107 | 108 | case 2: 109 | case 3: 110 | default: 111 | break; 112 | 113 | case 4: 114 | this.mc.displayGuiScreen((GuiScreen) null); 115 | this.mc.setIngameFocus(); 116 | break; 117 | 118 | case 5: 119 | this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); 120 | break; 121 | 122 | case 6: 123 | this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); 124 | break; 125 | case 7: 126 | this.mc.displayGuiScreen(new GuiShareToLan(this)); 127 | break; 128 | 129 | case 1008: 130 | this.mc.displayGuiScreen(new ModQuickPlay(this)); 131 | break; 132 | case 3000: 133 | this.mc.displayGuiScreen(new WarlordsQuickPlay(this)); 134 | break; 135 | case 100: 136 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/l w"); 137 | break; 138 | case 101: 139 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play warlords_ctf_mini"); 140 | break; 141 | case 102: 142 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play warlords_domination"); 143 | break; 144 | case 103: 145 | Minecraft.getMinecraft().thePlayer.sendChatMessage("/play warlords_team_deathmatch"); 146 | break; 147 | 148 | 149 | } 150 | } 151 | 152 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { 153 | this.drawDefaultBackground(); 154 | 155 | this.mc.getTextureManager().bindTexture(new ResourceLocation("QuickPlay/Warlords.png")); 156 | Gui.drawModalRectWithCustomSizedTexture(this.width / +4 + 130, this.height / 8 - 5, -1, 0, 53, 53, 53, 53); 157 | 158 | GlStateManager.pushMatrix(); 159 | float scale2 = 0.5F; 160 | 161 | GlStateManager.popMatrix(); 162 | 163 | super.drawScreen(mouseX, mouseY, partialTicks); 164 | 165 | } 166 | 167 | } 168 | -------------------------------------------------------------------------------- /Save Custom Keybind/GameSettings.java: -------------------------------------------------------------------------------- 1 | //in the Class GameSettings.java go to the method GameSettings make sure that you put addClientKeybinds() before loadOptions() 2 | 3 | //In this order 4 | addClientKeybinds(); 5 | this.loadOptions(); 6 | -------------------------------------------------------------------------------- /Save Custom Keybind/README.md: -------------------------------------------------------------------------------- 1 | # Save Custom Keybinds 2 | - Go to GameSettings.java 3 | - Go to the method GameSettings make sure that you put addClientKeybinds() before loadOptions() 4 | - Credit is not needed 5 | -------------------------------------------------------------------------------- /Skin Changer Cosmetic/README.md: -------------------------------------------------------------------------------- 1 | # Skin Changer Cosmetic 2 | - Create a new class called skinChanger 3 | - Go to the class RenderPlayer and add it there 4 | - Credit is not needed 5 | -------------------------------------------------------------------------------- /Skin Changer Cosmetic/skinChanger.java: -------------------------------------------------------------------------------- 1 | package clientname.cosmetics.skinchanger; 2 | 3 | import clientname.Client; 4 | import net.minecraft.client.Minecraft; 5 | import net.minecraft.client.entity.AbstractClientPlayer; 6 | import net.minecraft.client.model.ModelBase; 7 | import net.minecraft.client.model.ModelPlayer; 8 | import net.minecraft.client.model.ModelSlime; 9 | import net.minecraft.client.renderer.GlStateManager; 10 | import net.minecraft.client.renderer.entity.RenderPlayer; 11 | import net.minecraft.client.renderer.entity.layers.LayerRenderer; 12 | import net.minecraft.util.ResourceLocation; 13 | 14 | public class SkinChangerArmy implements LayerRenderer{ 15 | private final RenderPlayer armyRenderer; 16 | private ModelBase armyModel = new ModelPlayer(0, true); 17 | 18 | public SkinChangerArmy(RenderPlayer renderPlayer) { 19 | this.armyRenderer = renderPlayer; 20 | this.armyModel = renderPlayer.getMainModel(); 21 | } 22 | 23 | @Override 24 | public void doRenderLayer(AbstractClientPlayer entitylivingbaseIn, float p_1771412111, float p_1771413111, 25 | float partialTicks, float p_1771415111, float p_1771416111, float p_1771417111, float scale) { 26 | if(Client.SkinChangerArmy) { 27 | String ign = Minecraft.getMinecraft().getSession().getProfile().getName(); 28 | if (entitylivingbaseIn.getName().equals(ign) && !entitylivingbaseIn.isInvisible()) { 29 | Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("army.png")); 30 | GlStateManager.enableNormalize(); 31 | GlStateManager.enableBlend(); 32 | GlStateManager.blendFunc(770, 771); 33 | this.armyModel.setModelAttributes(this.armyRenderer.getMainModel()); 34 | this.armyModel.render(entitylivingbaseIn, p_1771412111, p_1771413111, p_1771415111, p_1771416111, p_1771417111, scale); 35 | GlStateManager.disableBlend(); 36 | GlStateManager.disableNormalize(); 37 | } 38 | 39 | } 40 | 41 | } 42 | 43 | @Override 44 | public boolean shouldCombineTextures() { 45 | return true; 46 | } 47 | 48 | } 49 | --------------------------------------------------------------------------------