TileEntity te = world.getTileEntity(x, y, z);
if(te instanceof IConduitBundle) {
if(id == GuiHandler.GUI_ID_EXTERNAL_CONNECTION_SELECTOR) {
return new GuiExternalConnectionSelector((IConduitBundle) te);
}
return new GuiExternalConnection(player.inventory, (IConduitBundle) te, ForgeDirection.values()[id - GuiHandler.GUI_ID_EXTERNAL_CONNECTION_BASE]);
}
return null;
}