Advertisement
hassansyyid

Untitled

Nov 11th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 KB | None | 0 0
  1. package io.github.hsyyid.wilsonsmp.gui;
  2.  
  3. import io.github.hsyyid.wilsonsmp.WilsonSMP;
  4. import io.github.hsyyid.wilsonsmp.tileentities.TileEntityReadableBookshelf;
  5. import net.minecraft.client.Minecraft;
  6. import net.minecraft.client.gui.inventory.GuiContainer;
  7. import net.minecraft.entity.player.EntityPlayer;
  8. import net.minecraft.util.ResourceLocation;
  9.  
  10. public class GuiReadableBookshelf extends GuiContainer
  11. {
  12.     private static final ResourceLocation texture = new ResourceLocation(WilsonSMP.MODID, "textures/gui/readablebookshelf.png");;
  13.    
  14.     public GuiReadableBookshelf(EntityPlayer player, TileEntityReadableBookshelf locker)
  15.     {
  16.         super(locker.getNewContainer(player));
  17.         this.xSize = 176;
  18.         this.ySize = 201;
  19.     }
  20.  
  21.     @Override
  22.     protected void drawGuiContainerBackgroundLayer(float f, int x, int y)
  23.     {
  24.         Minecraft.getMinecraft().renderEngine.bindTexture(texture);
  25.         drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement