Move general background drawing into mantle

This commit is contained in:
Bernhard Bonigl committed 2015-11-16 15:17:47 +01:00
1 parent 8d547a0866
commit 3c0bd7a25e
1 file changed
+7
@@ -9,6 +9,7 @@ import net.minecraft.inventory.Container;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IChatComponent;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.common.Optional;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@@ -105,6 +106,12 @@ public class GuiMultiModule extends GuiContainer implements INEIGuiHandler {
drawPlayerInventoryName();
}
protected void drawBackground(ResourceLocation background) {
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.getTextureManager().bindTexture(background);
this.drawTexturedModalRect(cornerX, cornerY, 0, 0, realWidth, realHeight);
}
protected void drawContainerName() {
ContainerMultiModule multiContainer = (ContainerMultiModule) this.inventorySlots;
IChatComponent localizedName = multiContainer.getInventoryDisplayName();