2020-12-03 19:13:11 +01:00
|
|
|
package de.ellpeck.actuallyadditions.client.screens;
|
|
|
|
|
|
|
|
import com.mojang.blaze3d.matrix.MatrixStack;
|
|
|
|
import de.ellpeck.actuallyadditions.common.container.DrillContainer;
|
2020-12-03 20:08:33 +01:00
|
|
|
import de.ellpeck.actuallyadditions.common.utilities.ScreenHelper;
|
2020-12-03 19:13:11 +01:00
|
|
|
import net.minecraft.entity.player.PlayerInventory;
|
2020-12-03 20:08:33 +01:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
2020-12-03 19:13:11 +01:00
|
|
|
import net.minecraft.util.text.ITextComponent;
|
|
|
|
|
2020-12-03 20:08:33 +01:00
|
|
|
public class DrillScreen extends WtfMojangScreen<DrillContainer> {
|
|
|
|
private static final ResourceLocation background = ScreenHelper.getGuiLocation("gui_drill");
|
|
|
|
|
2020-12-03 19:13:11 +01:00
|
|
|
public DrillScreen(DrillContainer screenContainer, PlayerInventory inv, ITextComponent titleIn) {
|
|
|
|
super(screenContainer, inv, titleIn);
|
2020-12-03 20:08:33 +01:00
|
|
|
|
|
|
|
this.xSize = 176;
|
|
|
|
this.ySize = 54 + 86;
|
|
|
|
|
|
|
|
this.titleY += 90;
|
2020-12-03 19:13:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void drawGuiContainerBackgroundLayer(MatrixStack matrixStack, float partialTicks, int x, int y) {
|
2020-12-03 20:08:33 +01:00
|
|
|
getMinecraft().getTextureManager().bindTexture(ScreenHelper.INVENTORY_GUI);
|
|
|
|
blit(matrixStack, this.guiLeft, this.guiTop + 54, 0, 0, 176, 86);
|
2020-12-03 19:13:11 +01:00
|
|
|
|
2020-12-03 20:08:33 +01:00
|
|
|
getMinecraft().getTextureManager().bindTexture(background);
|
|
|
|
blit(matrixStack, this.guiLeft, this.guiTop, 0, 0, 176, 54);
|
2020-12-03 19:13:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {
|
|
|
|
super.render(matrixStack, mouseX, mouseY, partialTicks);
|
|
|
|
}
|
|
|
|
}
|