Guest User

GuiFeeder2

a guest
Jan 23rd, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 KB | None | 0 0
  1. public class GuiFeeder2 extends GuiContainer{
  2.    
  3.     private IInventory playerInv;
  4.     private TileEntityFeeder te;
  5.  
  6.     public GuiFeeder2(IInventory playerInv, TileEntityFeeder te){
  7.         super(new ContainerFeeder(playerInv, te));
  8.        
  9.         this.playerInv = playerInv;
  10.         this.te = te;
  11.        
  12.         this.xSize = 176;
  13.         this.ySize = 166;
  14.     }
  15.    
  16.    
  17.    
  18.     @Override
  19.     protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
  20.         Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("calling bg"));
  21.         //GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f);
  22.         this.mc.getTextureManager().bindTexture(new ResourceLocation("sporksstuff:textures/gui/feeder.png"));
  23.         this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
  24.     }
  25.  
  26.     @Override
  27.     protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {
  28.         Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("calling fg"));
  29.     }
  30. }
Add Comment
Please, Sign In to add comment