Provide access to GuiContainer location and dimensions (#3440)
This commit is contained in:
parent
86a772ee8c
commit
4b51536592
1 changed files with 6 additions and 5 deletions
|
@ -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 =====================================*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue