Advertisement
Guest User

GuiModTileEntity

a guest
Sep 17th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. public class GuiModTileEntity extends GuiContainer{
  2.    
  3.     private int tabX = 270;
  4.     private int tabY = 220;
  5.     private ModTileEntity te;
  6.    
  7.     public GuiModTileEntity(IInventory playerInv, ModTileEntity te) {
  8.         super(new ContainerModTileEntity(playerInv, te));
  9.  
  10.         this.xSize = 274;
  11.         this.ySize = 224;
  12.         this.te = te;
  13.     }
  14.  
  15.     @Override
  16.     protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
  17.        
  18.     }
  19.    
  20.     @Override
  21.     protected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick)
  22.     {
  23.         super.mouseClickMove(mouseX, mouseY, clickedMouseButton, timeSinceLastClick);
  24.        
  25.         switch(clickedMouseButton){
  26.        
  27.         case 0:{
  28.             this.te.setRow(1);//Right now, it just sets it to 1 for testing.
  29.         }
  30.        
  31.        
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement