Skip to content

Commit 82db47f

Browse files
committed
4
1 parent a2cd9f2 commit 82db47f

File tree

4 files changed

+56
-49
lines changed

4 files changed

+56
-49
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
releases/
1010
*zip
1111
*.class
12-
*install*.jar
12+
*-install*.jar
1313
*install*.exe
1414
patches/Start.java.patch
1515
installer/out/

patches/net/minecraft/client/gui/GuiIngame.java.patch

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
private static final String __OBFID = "CL_00000661";
8282

8383
public GuiIngame(Minecraft p_i46379_1_)
84-
@@ -78,21 +88,48 @@
84+
@@ -78,21 +88,49 @@
8585
this.streamIndicator = new GuiStreamIndicator(this.mc);
8686
}
8787

@@ -108,6 +108,7 @@
108108
+ GL11.glDisable(GL11.GL_BLEND);
109109
+ GL11.glEnable(GL11.GL_DEPTH_TEST);
110110
+ GL11.glEnable(GL11.GL_LIGHTING);
111+
+ GL11.glEnable(GL11.GL_ALPHA_TEST);
111112
+
112113
+ GL11.glColorMask(true, true, true, true); // ENABLE CHANIGNG UNDERLYING ALPHA VALUE
113114
+ }
@@ -133,7 +134,7 @@
133134
}
134135
else
135136
{
136-
@@ -103,59 +140,77 @@
137+
@@ -103,59 +141,77 @@
137138

138139
if (this.mc.gameSettings.thirdPersonView == 0 && var9 != null && var9.getItem() == Item.getItemFromBlock(Blocks.pumpkin))
139140
{
@@ -242,7 +243,7 @@
242243
GL11.glDisable(GL11.GL_BLEND);
243244
}
244245

245-
@@ -175,7 +230,7 @@
246+
@@ -175,7 +231,7 @@
246247
}
247248

248249
var12 = (int)(220.0F * var33) << 24 | 1052704;
@@ -251,7 +252,7 @@
251252
GL11.glEnable(GL11.GL_ALPHA_TEST);
252253
GL11.glEnable(GL11.GL_DEPTH_TEST);
253254
this.mc.mcProfiler.endSection();
254-
@@ -183,7 +238,7 @@
255+
@@ -183,7 +239,7 @@
255256

256257
var32 = 16777215;
257258
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
@@ -260,7 +261,7 @@
260261
int var14;
261262
int var15;
262263
int var16;
263-
@@ -198,7 +253,7 @@
264+
@@ -198,7 +254,7 @@
264265
var34 = this.mc.thePlayer.getHorseJumpPower();
265266
var38 = 182;
266267
var14 = (int)(var34 * (float)(var38 + 1));
@@ -269,7 +270,7 @@
269270
this.drawTexturedModalRect(var11, var15, 0, 84, var38, 5);
270271

271272
if (var14 > 0)
272-
@@ -218,7 +273,7 @@
273+
@@ -218,7 +274,7 @@
273274
{
274275
var38 = 182;
275276
var14 = (int)(this.mc.thePlayer.experience * (float)(var38 + 1));
@@ -278,7 +279,7 @@
278279
this.drawTexturedModalRect(var11, var15, 0, 64, var38, 5);
279280

280281
if (var14 > 0)
281-
@@ -235,8 +290,8 @@
282+
@@ -235,8 +291,8 @@
282283
boolean var39 = false;
283284
var14 = var39 ? 16777215 : 8453920;
284285
String var43 = "" + this.mc.thePlayer.experienceLevel;
@@ -289,7 +290,7 @@
289290
boolean var18 = false;
290291
var8.drawString(var43, var16 + 1, var17, 0);
291292
var8.drawString(var43, var16 - 1, var17, 0);
292-
@@ -256,8 +311,8 @@
293+
@@ -256,8 +312,8 @@
293294
if (this.remainingHighlightTicks > 0 && this.highlightingItemStack != null)
294295
{
295296
var35 = this.highlightingItemStack.getDisplayName();
@@ -300,7 +301,7 @@
300301

301302
if (!this.mc.playerController.shouldDrawHUD())
302303
{
303-
@@ -300,7 +355,7 @@
304+
@@ -300,7 +356,7 @@
304305
}
305306

306307
var13 = var8.getStringWidth(var35);
@@ -309,7 +310,7 @@
309310
this.mc.mcProfiler.endSection();
310311
}
311312

312-
@@ -312,26 +367,44 @@
313+
@@ -312,26 +368,44 @@
313314
{
314315
this.mc.mcProfiler.startSection("debug");
315316
GL11.glPushMatrix();
@@ -364,7 +365,7 @@
364365
int var25 = MathHelper.floor_double((double)(this.mc.thePlayer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
365366
this.drawString(var8, "f: " + var25 + " (" + Direction.directions[var25] + ") / " + MathHelper.wrapAngleTo180_float(this.mc.thePlayer.rotationYaw), 2, 88, 14737632);
366367

367-
@@ -347,11 +420,29 @@
368+
@@ -347,11 +421,29 @@
368369
{
369370
this.drawString(var8, String.format("shader: %s", new Object[] {this.mc.entityRenderer.getShaderGroup().getShaderGroupName()}), 2, 112, 14737632);
370371
}
@@ -395,7 +396,7 @@
395396
if (this.recordPlayingUpFor > 0)
396397
{
397398
this.mc.mcProfiler.startSection("overlayMessage");
398-
@@ -366,7 +457,7 @@
399+
@@ -366,7 +458,7 @@
399400
if (var13 > 8)
400401
{
401402
GL11.glPushMatrix();
@@ -404,7 +405,7 @@
404405
GL11.glEnable(GL11.GL_BLEND);
405406
OpenGlHelper.glBlendFunc(770, 771, 1, 0);
406407
var14 = 16777215;
407-
@@ -388,14 +479,14 @@
408+
@@ -388,14 +480,14 @@
408409

409410
if (var37 != null)
410411
{
@@ -421,7 +422,7 @@
421422
this.mc.mcProfiler.startSection("chat");
422423
this.persistantChatGUI.drawChat(this.updateCounter);
423424
this.mc.mcProfiler.endSection();
424-
@@ -422,7 +513,7 @@
425+
@@ -422,7 +514,7 @@
425426
var46 = 150;
426427
}
427428

@@ -430,7 +431,7 @@
430431
byte var47 = 10;
431432
drawRect(var19 - 1, var47 - 1, var19 + var46 * var17, var47 + 9 * var16, Integer.MIN_VALUE);
432433

433-
@@ -501,9 +592,10 @@
434+
@@ -501,9 +593,10 @@
434435
{
435436
this.streamIndicator.render((int)(p_152126_1_ - 10.0F), 10);
436437
}
@@ -444,7 +445,7 @@
444445
Scoreboard var5 = p_96136_1_.getScoreboard();
445446
Collection var6 = var5.getSortedScores(p_96136_1_);
446447

447-
@@ -549,9 +641,10 @@
448+
@@ -549,9 +642,10 @@
448449
}
449450
}
450451
}
@@ -458,7 +459,7 @@
458459
boolean var3 = this.mc.thePlayer.hurtResistantTime / 3 % 2 == 1;
459460

460461
if (this.mc.thePlayer.hurtResistantTime < 10)
461-
@@ -559,52 +652,52 @@
462+
@@ -559,52 +653,52 @@
462463
var3 = false;
463464
}
464465

@@ -535,7 +536,7 @@
535536
{
536537
this.drawTexturedModalRect(var23, var18, 16, 9, 9, 9);
537538
}
538-
@@ -616,7 +709,7 @@
539+
@@ -616,7 +710,7 @@
539540
int var26;
540541
int var27;
541542

@@ -544,7 +545,7 @@
544545
{
545546
var23 = 16;
546547

547-
@@ -636,16 +729,16 @@
548+
@@ -636,16 +730,16 @@
548549
var24 = 1;
549550
}
550551

@@ -565,7 +566,7 @@
565566
{
566567
var27 -= 2;
567568
}
568-
@@ -661,12 +754,12 @@
569+
@@ -661,12 +755,12 @@
569570

570571
if (var3)
571572
{
@@ -580,7 +581,7 @@
580581
{
581582
this.drawTexturedModalRect(var26, var27, var23 + 63, 9 * var28, 9, 9);
582583
}
583-
@@ -674,7 +767,7 @@
584+
@@ -674,7 +768,7 @@
584585

585586
if (var19 > 0.0F)
586587
{
@@ -589,7 +590,7 @@
589590
{
590591
this.drawTexturedModalRect(var26, var27, var23 + 153, 9 * var28, 9, 9);
591592
}
592-
@@ -687,22 +780,22 @@
593+
@@ -687,22 +781,22 @@
593594
}
594595
else
595596
{
@@ -616,7 +617,7 @@
616617
{
617618
this.mc.mcProfiler.endStartSection("food");
618619

619-
@@ -718,7 +811,7 @@
620+
@@ -718,7 +812,7 @@
620621
var38 = 13;
621622
}
622623

@@ -625,7 +626,7 @@
625626
{
626627
var36 = var13 + (this.rand.nextInt(3) - 1);
627628
}
628-
@@ -733,32 +826,32 @@
629+
@@ -733,32 +827,32 @@
629630

630631
if (var6)
631632
{
@@ -664,7 +665,7 @@
664665
var36 = (int)Math.ceil((double)var35.getHealth());
665666
float var37 = var35.getMaxHealth();
666667
var26 = (int)(var37 + 0.5F) / 2;
667-
@@ -830,7 +923,9 @@
668+
@@ -830,7 +924,9 @@
668669
/**
669670
* Renders dragon's (boss) health on the HUD
670671
*/
@@ -675,7 +676,7 @@
675676
{
676677
if (BossStatus.bossName != null && BossStatus.statusBarTime > 0)
677678
{
678-
@@ -856,9 +951,15 @@
679+
@@ -856,9 +952,15 @@
679680
this.mc.getTextureManager().bindTexture(icons);
680681
}
681682
}
@@ -693,7 +694,7 @@
693694
GL11.glDisable(GL11.GL_DEPTH_TEST);
694695
GL11.glDepthMask(false);
695696
OpenGlHelper.glBlendFunc(770, 771, 1, 0);
696-
@@ -881,8 +982,15 @@
697+
@@ -881,8 +983,15 @@
697698
/**
698699
* Renders the vignette. Args: vignetteBrightness, width, height
699700
*/
@@ -710,7 +711,7 @@
710711
p_73829_1_ = 1.0F - p_73829_1_;
711712

712713
if (p_73829_1_ < 0.0F)
713-
@@ -913,44 +1021,22 @@
714+
@@ -913,44 +1022,22 @@
714715
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
715716
OpenGlHelper.glBlendFunc(770, 771, 1, 0);
716717
}
@@ -765,7 +766,7 @@
765766
{
766767
ItemStack var5 = this.mc.thePlayer.inventory.mainInventory[p_73832_1_];
767768

768-
@@ -1039,4 +1125,23 @@
769+
@@ -1039,4 +1126,23 @@
769770
{
770771
return this.updateCounter;
771772
}

patches/net/minecraft/client/gui/GuiScreen.java.patch

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import net.minecraft.util.EnumChatFormatting;
1818
import org.lwjgl.input.Keyboard;
1919
import org.lwjgl.input.Mouse;
20-
@@ -44,13 +49,20 @@
20+
@@ -44,13 +49,22 @@
2121
public boolean allowUserInput;
2222

2323
/** The FontRenderer used by GuiScreen */
@@ -36,10 +36,12 @@
3636
+
3737
+ public boolean pressShiftFake;
3838
+
39+
+ public int mouseX, mouseY;
40+
+
3941
/**
4042
* Incremented when the game is in touchscreen mode and the screen is tapped, decremented if the screen isn't
4143
* tapped. Does not appear to be used.
42-
@@ -84,6 +96,10 @@
44+
@@ -84,6 +98,10 @@
4345
{
4446
if (keyCode == 1)
4547
{
@@ -50,7 +52,7 @@
5052
this.mc.displayGuiScreen((GuiScreen)null);
5153
this.mc.setIngameFocus();
5254
}
53-
@@ -142,21 +158,37 @@
55+
@@ -142,21 +160,37 @@
5456
var4.set(var5, EnumChatFormatting.GRAY + (String)var4.get(var5));
5557
}
5658
}
@@ -92,7 +94,7 @@
9294
if (!textLines.isEmpty())
9395
{
9496
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
95-
@@ -169,7 +201,9 @@
97+
@@ -169,7 +203,9 @@
9698
while (var5.hasNext())
9799
{
98100
String var6 = (String)var5.next();
@@ -103,7 +105,7 @@
103105

104106
if (var7 > var4)
105107
{
106-
@@ -214,7 +248,9 @@
108+
@@ -214,7 +250,9 @@
107109
for (int var12 = 0; var12 < textLines.size(); ++var12)
108110
{
109111
String var13 = (String)textLines.get(var12);
@@ -114,7 +116,7 @@
114116

115117
if (var12 == 0)
116118
{
117-
@@ -246,10 +282,26 @@
119+
@@ -246,10 +284,26 @@
118120

119121
if (var5.mousePressed(this.mc, mouseX, mouseY))
120122
{
@@ -145,7 +147,7 @@
145147
}
146148
}
147149
}
148-
@@ -285,8 +337,22 @@
150+
@@ -285,8 +339,22 @@
149151
this.fontRendererObj = mc.fontRendererObj;
150152
this.width = width;
151153
this.height = height;
@@ -170,7 +172,7 @@
170172
}
171173

172174
/**
173-
@@ -302,7 +368,14 @@
175+
@@ -302,7 +370,14 @@
174176
if (Mouse.isCreated())
175177
{
176178
while (Mouse.next())
@@ -186,7 +188,7 @@
186188
this.handleMouseInput();
187189
}
188190
}
189-
@@ -321,9 +394,23 @@
191+
@@ -321,9 +396,23 @@
190192
*/
191193
public void handleMouseInput()
192194
{
@@ -205,14 +207,14 @@
205207
+ mouseOffsetX = -1;
206208
+ mouseOffsetY = -1;
207209
+
208-
+ int var1 = getMouseX();
209-
+ int var2 = getMouseY();
210+
+ int var1 =mouseX = getMouseX();
211+
+ int var2 = mouseY= getMouseY();
210212
int var3 = Mouse.getEventButton();
211213
+ /** END MINECRIFT */
212214

213215
if (Mouse.getEventButtonState())
214216
{
215-
@@ -388,8 +475,17 @@
217+
@@ -388,8 +477,17 @@
216218
{
217219
if (this.mc.theWorld != null)
218220
{
@@ -230,7 +232,7 @@
230232
else
231233
{
232234
this.drawBackground(tint);
233-
@@ -441,4 +537,82 @@
235+
@@ -441,4 +539,82 @@
234236
{
235237
return Keyboard.isKeyDown(42) || Keyboard.isKeyDown(54);
236238
}

0 commit comments

Comments
 (0)