Provide access to GuiContainer location and dimensions (#3440)

This commit is contained in:
mezz 2016-11-27 02:24:32 -08:00 committed by LexManos
parent 86a772ee8c
commit 4b51536592

View file

@ -127,7 +127,7 @@
{ {
this.func_184098_a(this.field_147006_u, this.field_147006_u.field_75222_d, i, ClickType.SWAP); this.func_184098_a(this.field_147006_u, this.field_147006_u.field_75222_d, i, ClickType.SWAP);
return true; return true;
@@ -689,4 +693,17 @@ @@ -689,4 +693,18 @@
this.field_146297_k.field_71439_g.func_71053_j(); this.field_146297_k.field_71439_g.func_71053_j();
} }
} }
@ -138,10 +138,11 @@
+ * Returns the slot that is currently displayed under the mouse. + * Returns the slot that is currently displayed under the mouse.
+ */ + */
+ @javax.annotation.Nullable + @javax.annotation.Nullable
+ public Slot getSlotUnderMouse() + public Slot getSlotUnderMouse() { return this.field_147006_u; }
+ { + public int getGuiLeft() { return field_147003_i; }
+ return this.field_147006_u; + public int getGuiTop() { return field_147009_r; }
+ } + public int getXSize() { return field_146999_f; }
+ public int getYSize() { return field_147000_g; }
+ +
+ /* ======================================== FORGE END =====================================*/ + /* ======================================== FORGE END =====================================*/
} }