Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.8] Accessing TileEntity from gui? [SOLVED]


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.



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;

    protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
    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

This topic is now closed to further replies.

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.