blob: 7b9871b8d35f5b82b211da1a18760516516697cb (
plain) (
blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package lv.enes.mc.eris_alchemy.client;
import lv.enes.mc.eris_alchemy.Emc;
import lv.enes.mc.eris_alchemy.ErisAlchemy;
import lv.enes.mc.eris_alchemy.menu.EnergyCondenserMenu;
import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.player.Inventory;
public class EnergyCondenserScreen extends ChestLikeScreen<EnergyCondenserMenu> {
public static final ResourceLocation TEXTURE =
new ResourceLocation(ErisAlchemy.ID, "textures/gui/container/energy_condenser.png");
public static final int TEXTURE_WIDTH = 248;
public static final int TEXTURE_HEIGHT = 237;
public EnergyCondenserScreen(EnergyCondenserMenu menu, Inventory inventory, Component title) {
super(menu, inventory, title);
}
@Override
protected ResourceLocation getTexture() {
return TEXTURE;
}
@Override
protected int getTextureWidth() {
return TEXTURE_WIDTH;
}
@Override
protected int getTextureHeight() {
return TEXTURE_HEIGHT;
}
@Override
protected void renderLabels(GuiGraphics graphics, int mouseX, int mouseY) {
graphics.drawString(font, Emc.formatEmc(menu.getStoredEmc()), 28, 6, 0xFFFFFF);
}
@Override
protected boolean shouldRenderLabels() {
return false;
}
}
|