mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-21 20:42:26 +00:00
Move general background drawing into mantle
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user