/
GuiPipe.java
27 lines (22 loc) · 966 Bytes
/
GuiPipe.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package knightminer.inspirations.utility.client;
import knightminer.inspirations.library.Util;
import knightminer.inspirations.utility.inventory.ContainerPipe;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
import slimeknights.mantle.client.gui.GuiMultiModule;
public class GuiPipe extends GuiMultiModule {
private static final ResourceLocation BACKGROUND = Util.getResource("textures/gui/pipe.png");
public GuiPipe(ContainerPipe container) {
super(container);
}
@Override
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
drawBackground(BACKGROUND);
super.drawGuiContainerBackgroundLayer(partialTicks, mouseX, mouseY);
}
@Override
protected void drawPlayerInventoryName() {
String localizedName = Minecraft.getMinecraft().player.inventory.getDisplayName().getUnformattedText();
this.fontRenderer.drawString(localizedName, 8, this.ySize - 129 + 2, 0x404040);
}
}