Deduplicate a bunch of code pertaining to drawing the background layer

This commit is contained in:
pupnewfster committed 2019-07-08 11:47:06 -04:00
1 parent 323eaf9c38
commit a7b29c209f
61 files changed
+51 -429

No files matched your search

@@ -40,10 +40,7 @@ public class GuiDynamicTank extends GuiEmbeddedGaugeTile<TileEntityDynamicTank>
}
@Override
protected void drawGuiContainerBackgroundLayer(float partialTick, int mouseX, int mouseY) {
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
mc.renderEngine.bindTexture(getGuiLocation());
drawDefaultTexturedModalRect();
protected void drawGuiContainerBackgroundLayer(int guiWidth, int guiHeight, int xAxis, int yAxis) {
int scaledFluidLevel = tileEntity.getScaledFluidLevel(58);
if (scaledFluidLevel > 0 && tileEntity.structure != null) {
displayGauge(7, 14, scaledFluidLevel, tileEntity.structure.fluidStored, 0);