How to open a player's ender chest inventory?

I’m in the midst of trying to make a portable enderchest plugin, probably been done before, but whatever. I’ve ran into an issue, in that I don’t believe that I can fetch enderchests from the API side yet. So I’ve imported the Minecraft code, I’ve come up with this
Player p = (Player) src; EntityPlayer handle = (EntityPlayer) p; handle.getInventoryEnderChest().openInventory(handle);
That, however, doesn’t work, and I have no idea why. If someone could help me out with this, it’d be much appreciated. Thanks in advance!

In future post you your log, it maybe useful but your problem is probably that InventoryAPI is not implemented yet.

Yeah, I found help on the IRC and solved it. For those who may have this problem in the future, the thing that worked for me was handle.openGUIChest(handle.getInventoryEnderChest())

1 Like