got it working WOOT
note i did change a couple things in there
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
TileEntity tileEntity = world.getTileEntity(new BlockPos(x, y, z));
switch (ID){
case TEST_CHEST:
return new ContainerTestChest(player, (TileEntityTestChest) tileEntity);
case TEST_BAG:
return new ContainerTestBag(player);
}
return null;
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
TileEntity tileEntity = world.getTileEntity(new BlockPos(x, y, z));
switch (ID) {
case TEST_CHEST:
return new gui_test_chest(new ContainerTestChest(player, (TileEntityTestChest)tileEntity), (TileEntityTestChest) tileEntity);
case TEST_BAG:
return new GuiTestBag(new ContainerTestBag(player));
}
return null;
}