Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fossils.gui;
- import fossils.blocks.containers.ContainerEgg;
- import fossils.blocks.tileentities.TileEntityEgg;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.gui.inventory.GuiContainer;
- import net.minecraft.entity.player.InventoryPlayer;
- import net.minecraft.util.ResourceLocation;
- public class GuiEgg extends GuiContainer
- {
- public final ResourceLocation texture = new ResourceLocation("fossils", "textures/gui/GuiDNASelector.png");
- public TileEntityEgg tileEntityEgg;
- public int progress;
- public GuiEgg(InventoryPlayer inventoryPlayer, TileEntityEgg tileEntityEgg)
- {
- super(new ContainerEgg(inventoryPlayer, tileEntityEgg));
- this.tileEntityEgg = tileEntityEgg;
- }
- public void drawGuiContainerBackgroundLayer(float var1, int var2, int var3)
- {
- GL11.glColor4f(1F, 1F, 1F, 1F);
- Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
- int k = (this.width - this.xSize) / 2;
- int l = (this.height - this.ySize) / 2;
- this.drawTexturedModalRect(guiLeft, guiTop, 0, 0, 176, 166);
- progress = (int) tileEntityEgg.getProgressScaled(24);
- this.drawTexturedModalRect(guiLeft + 76, guiTop + 35, 176, 0, progress, 18);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement