These are the methods from my guiHandler:
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
switch(ID)
{
//case 0: return new ContainerDorfAnvil(player.inventory, world, x, y, z);
}
if(ID == DorfsVsGoblins.guiIDDorfAnvil)
{
return ID == DorfsVsGoblins.guiIDDorfAnvil && world.getBlockState(x, y, z) == DorfsVsGoblins.blockDorfAnvil ?
new ContainerDorfAnvil(player.inventory, world, x, y, z) : null;
}
return null;
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
switch(ID)
{
//case 0: return new GuiDorfAnvil(player.inventory, world, x, y, z);
}
if(ID == DorfsVsGoblins.guiIDDorfAnvil)
{
return ID == DorfsVsGoblins.guiIDDorfAnvil && world.getBlockState(x, y, z) == DorfsVsGoblins.blockDorfAnvil ?
new GuiDorfAnvil(player.inventory, world, x, y, z) : null;
}
return null;
}
What am I doing wrong?