Hello out there,
I'm trying to port a mod to 1.3.2 and having some trouble displaying a gui on right click of an item.
My solution so far looks like this:
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player)
{
if (!fIsServer)
{
ModLoader.getMinecraftInstance().displayGuiScreen(new GuiBookOfTeleportation(world, player));
}
return itemStack;
}
This is kind of working but behaves weirdly. I think the proper way to do this is putting some code into the client proxy method getClientGuiElement but that is never called. Do I have to register this somewhere?
I want to display a gui screen inherited from GuiScreen with some buttons and a GuiSlot showing some text.
How is this done properly?
Many thanks in advance,
dhalek