diff --git a/src/main/java/blusunrize/immersiveengineering/client/gui/ClientBlockEntityScreen.java b/src/main/java/blusunrize/immersiveengineering/client/gui/ClientBlockEntityScreen.java index ad7dcc0a3a..d19b851ba7 100644 --- a/src/main/java/blusunrize/immersiveengineering/client/gui/ClientBlockEntityScreen.java +++ b/src/main/java/blusunrize/immersiveengineering/client/gui/ClientBlockEntityScreen.java @@ -35,20 +35,14 @@ protected void init() this.guiTop = (this.height-this.ySize)/2; } - protected abstract void drawGuiContainerBackgroundLayer(GuiGraphics graphics, int mouseX, int mouseY, float partialTick); - protected abstract void drawGuiContainerForegroundLayer(GuiGraphics graphics, int mouseX, int mouseY, float partialTick); @Override public void render(GuiGraphics graphics, int mx, int my, float partial) { - // Background texture - drawGuiContainerBackgroundLayer(graphics, mx, my, partial); - - // Buttons + // Background & widgets super.render(graphics, mx, my, partial); - - // Foreground + // Additional foreground elements drawGuiContainerForegroundLayer(graphics, mx, my, partial); } diff --git a/src/main/java/blusunrize/immersiveengineering/client/gui/MachineInterfaceScreen.java b/src/main/java/blusunrize/immersiveengineering/client/gui/MachineInterfaceScreen.java index 28fbce2c6e..b242a33c8f 100644 --- a/src/main/java/blusunrize/immersiveengineering/client/gui/MachineInterfaceScreen.java +++ b/src/main/java/blusunrize/immersiveengineering/client/gui/MachineInterfaceScreen.java @@ -221,7 +221,7 @@ private void sendInputColor(DyeColor col) } @Override - protected void drawGuiContainerBackgroundLayer(GuiGraphics graphics, int mouseX, int mouseY, float partialTick) + public void renderBackground(GuiGraphics graphics, int mouseX, int mouseY, float partialTick) { if(availableChecks==null) graphics.blit(TEXTURE, guiLeft, guiTop+(ySize-74)/2, 112, 80, xSize, 106); diff --git a/src/main/java/blusunrize/immersiveengineering/client/gui/RedstoneConnectorScreen.java b/src/main/java/blusunrize/immersiveengineering/client/gui/RedstoneConnectorScreen.java index 003d2905c3..9cbc53e718 100644 --- a/src/main/java/blusunrize/immersiveengineering/client/gui/RedstoneConnectorScreen.java +++ b/src/main/java/blusunrize/immersiveengineering/client/gui/RedstoneConnectorScreen.java @@ -76,12 +76,6 @@ public void sendConfig(String key, int value) PacketDistributor.SERVER.noArg().send(new MessageBlockEntitySync(blockEntity, message)); } - @Override - protected void drawGuiContainerBackgroundLayer(GuiGraphics graphics, int mouseX, int mouseY, float partialTick) - { - - } - @Override protected void drawGuiContainerForegroundLayer(GuiGraphics graphics, int mouseX, int mouseY, float partialTick) { diff --git a/src/main/java/blusunrize/immersiveengineering/client/gui/RedstoneProbeScreen.java b/src/main/java/blusunrize/immersiveengineering/client/gui/RedstoneProbeScreen.java index ddd4d7ffd9..a5aa44c0f4 100644 --- a/src/main/java/blusunrize/immersiveengineering/client/gui/RedstoneProbeScreen.java +++ b/src/main/java/blusunrize/immersiveengineering/client/gui/RedstoneProbeScreen.java @@ -74,12 +74,6 @@ private void sendConfig(String key, int value) PacketDistributor.SERVER.noArg().send(new MessageBlockEntitySync(blockEntity, message)); } - @Override - protected void drawGuiContainerBackgroundLayer(GuiGraphics graphics, int mouseX, int mouseY, float partialTick) - { - - } - @Override protected void drawGuiContainerForegroundLayer(GuiGraphics graphics, int mouseX, int mouseY, float partialTick) {