Jump to content

[1.8] Accessing TileEntity from gui? [SOLVED]


Atijaf

Recommended Posts

I have a variable within my TileEntity that is used to determine which items are shown.  This variable will be changed within the gui.

 

GuiModTileEntity

public class GuiModTileEntity extends GuiContainer{

private int tabX = 250;
private int tabY = 220;

public GuiModTileEntity(IInventory playerInv, ModTileEntity te) {
        super(new ContainerModTileEntity(playerInv, te));

        this.xSize = 274;
        this.ySize = 224;
    }

    @Override
    protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
    	
    }
    
/** THIS METHOD */
    @Override
    protected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick)
    {
    	//Set variable within ModTileEntity?
    }
    
}

 

How can I access the current tile entity that is activated, or should I go about it a different way?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.