Mappings update
This commit is contained in:
parent
3400f42962
commit
708ccc758a
82 changed files with 236 additions and 236 deletions
|
@ -53,7 +53,7 @@ public class GuiButtonHologram extends GuiButton {
|
|||
mouseY -= gui.getGuiTop();
|
||||
}
|
||||
|
||||
if (this.enabled && this.visible && mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height) {
|
||||
if (this.enabled && this.visible && mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -69,7 +69,7 @@ public class GuiButtonHologram extends GuiButton {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void func_191745_a(Minecraft p_191745_1_, int p_191745_2_, int p_191745_3_, float p_191745_4_) {
|
||||
public void drawButton(Minecraft p_191745_1_, int p_191745_2_, int p_191745_3_, float p_191745_4_) {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ public class GuiButtonPowerBar extends GuiButton {
|
|||
mouseY -= gui.getGuiTop();
|
||||
}
|
||||
|
||||
if (this.enabled && this.visible && mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height) {
|
||||
if (this.enabled && this.visible && mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height) {
|
||||
PowerSystem.bumpPowerConfig();
|
||||
return true;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ public class GuiButtonPowerBar extends GuiButton {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void func_191745_a(Minecraft p_191745_1_, int p_191745_2_, int p_191745_3_, float p_191745_4_) {
|
||||
public void drawButton(Minecraft p_191745_1_, int p_191745_2_, int p_191745_3_, float p_191745_4_) {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,15 +84,15 @@ public abstract class GuiWidget<T extends Container> extends GuiContainer {
|
|||
int y = (this.height - this.ySize) / 2;
|
||||
String name = translate.translateKey("tile.techreborn.industrialgrinder.name");
|
||||
|
||||
fontRendererObj.drawString(name, xSize / 2 - fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
fontRendererObj.drawString(translate.translateKey("container.inventory"), 8, ySize - 94, 4210752);
|
||||
fontRenderer.drawString(name, xSize / 2 - fontRenderer.getStringWidth(name) / 2, 6, 4210752);
|
||||
fontRenderer.drawString(translate.translateKey("container.inventory"), 8, ySize - 94, 4210752);
|
||||
|
||||
for (Widget widget : widgets)
|
||||
widget.drawWidget(this, x, y, mouseX, mouseY);
|
||||
}
|
||||
|
||||
public FontRenderer getFontRenderer() {
|
||||
return fontRendererObj;
|
||||
return fontRenderer;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue