mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Deduplicate a bunch of code pertaining to drawing the background layer
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user