public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
switch(ID){
case 0:
if (world.getBlockTileEntity(x,y,z) instanceof TileEntityTownHall) {
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);