return new GuiTownHall((TileEntityTownHall)world.getBlockTileEntity(x,y,z), player.inventory);
} else if (world.getBlockTileEntity(x,y,z) instanceof TileEntityColoniesChest) {
return new GuiColoniesChest((TileEntityColoniesChest)world.getBlockTileEntity(x,y,z), player.inventory);
}
case 4: return new GuiResearchBlock(player.inventory, (TileEntityResearchBlock) world.getBlockTileEntity(x,y,z));
case 10: return new GuiTownName((TileEntityColoniesChest)world.getBlockTileEntity(x,y,z),player.inventory);
default: return new GuiHouse((TileEntityColoniesChest)world.getBlockTileEntity(x,y,z),player.inventory);
}
}