Sorry, but: Facepalm. That does not help really I need the place where you actually get the InventoryPlayer. What you showed just passes it down to the container.
Sorry, but: Facepalm. That does not help really I need the place where you actually get the InventoryPlayer. What you showed just passes it down to the container.
What exactly do you mean by that? I don't exactly understand what you mean by "where you get the InventoryPlayer".
What exactly do you mean by that? I don't exactly understand what you mean by "where you get the InventoryPlayer".
Somewhere in your code you have to actually get the Inventory from the EntityPlayer. For example like this (can be wrong, I don't have eclipse open atm):
Somewhere in your code you have to actually get the Inventory from the EntityPlayer. For example like this (can be wrong, I don't have eclipse open atm):
Thats what I need. And please not only one line, please post everything that could be relevant. That makes helping a lot easier.
Do you mean this? Sorry, I haven't slept for a while and I'm kinda out of it xP
public boolean blockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
{
InventoryPlayer ip = new InventoryPlayer(par5EntityPlayer);
Minecraft mc = ModLoader.getMinecraftInstance();
if (par1World.isRemote)
{
return true;
}
else
{
ModLoader.openGUI(par5EntityPlayer, new GemGui(ip, par1World));
return true;
}
}
The only problem I've got right now is that I can't see my own inventory. It's just blank boxes no matter what.
Here's my container code, let me know if you need anything else:
Created here:
What exactly do you mean by that? I don't exactly understand what you mean by "where you get the InventoryPlayer".
Do you mean this? Sorry, I haven't slept for a while and I'm kinda out of it xP
ohhhh. Thanks so much I've been working so long on that. +rep