Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.theviolentsquirrels.questsystem.gui;
- import net.minecraft.client.renderer.GlStateManager;
- import net.minecraft.client.resources.I18n;
- import net.minecraft.entity.player.InventoryPlayer;
- import net.minecraft.util.ResourceLocation;
- import net.minecraft.world.World;
- import net.theviolentsquirrels.questsystem.Reference;
- import net.theviolentsquirrels.questsystem.inventory.ContainerSieve;
- public class GuiSieve extends ModGui {
- private static final ResourceLocation texture = new ResourceLocation(Reference.MODID, "textures/gui/sieve.png");
- public GuiSieve(InventoryPlayer playerInventory, World worldIn) {
- super (new ContainerSieve(playerInventory, worldIn));
- }
- /**
- * Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the
- * window resizes, the buttonList is cleared beforehand.
- */
- @Override
- public void initGui() {
- super.initGui();
- }
- @Override
- protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
- GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
- this.mc.getTextureManager().bindTexture(texture);
- this.drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
- }
- @Override
- protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {
- String sifting;
- int result;
- sifting = I18n.format("container.sifting");
- result = this.xSize / 2 - this.fontRendererObj.getStringWidth(sifting) / 2;
- this.fontRendererObj.drawString(sifting, result, 6, 4210752);
- this.fontRendererObj.drawString(I18n.format("container.inventory"), 8, this.ySize - 96 + 2, 4210752);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement