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

@@ -63,13 +63,6 @@ public class GuiChanceMachine<RECIPE extends ChanceMachineRecipe<RECIPE>> extend
super.drawGuiContainerForegroundLayer(mouseX, mouseY);
}
@Override
protected void drawGuiContainerBackgroundLayer(float partialTick, int mouseX, int mouseY) {
mc.renderEngine.bindTexture(getGuiLocation());
drawDefaultTexturedModalRect();
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
}
@Override
protected ResourceLocation getGuiLocation() {
return tileEntity.guiLocation;