Posted February 16, 201312 yr I'm trying to make a certain block for my mod that only processes items only when at least 1 person is checking the GUI. My subclassed TileEntity implements IInventory to get the openChest() and closeChest methods, but for some reason these aren't being triggered. Here is how I overrided the methods: @Override public void openChest() { System.out.println("Opened."); ++peopleDerpinAroundTheTable; } @Override public void closeChest() { System.out.println("Closed."); --peopleDerpinAroundTheTable; } peopleDerpinAroundTheTable is the int I'm using to track player count. When the table has confirmed the items placed follows the stored recipes, it will then check this variable during the updateEntity method to see whether to fill the progress meter or not. I'm not sure whether this is a flat-out bug somewhere, or if there need to be another bit of code I have to add to make the game call these methods. Any help with this is appreciated.
February 16, 201312 yr Author Thanks, the table works fine right now. (except for the part where it crashes as soon as it tries to process the items, but I'll fix that myself )
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.