Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GuiModTileEntity extends GuiContainer{
- private int tabX = 270;
- private int tabY = 220;
- private ModTileEntity te;
- public GuiModTileEntity(IInventory playerInv, ModTileEntity te) {
- super(new ContainerModTileEntity(playerInv, te));
- this.xSize = 274;
- this.ySize = 224;
- this.te = te;
- }
- @Override
- protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
- }
- @Override
- protected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick)
- {
- super.mouseClickMove(mouseX, mouseY, clickedMouseButton, timeSinceLastClick);
- switch(clickedMouseButton){
- case 0:{
- this.te.setRow(1);//Right now, it just sets it to 1 for testing.
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement