//Null riding entity, don't open GUI in this case
if(((ID >= 6 && ID <= 10) || ID == 12) && player.ridingEntity == null) return null;
switch(ID)
{
case 0: return new GuiDriveableCrafting(player.inventory, world, x, y, z);
case 1: return new GuiDriveableRepair(player);
case 2: return new GuiGunModTable(player.inventory, world);
case 5: return new GuiGunBox(player.inventory, ((BlockGunBox)world.getBlock(x, y, z)).type);
case 6: return new GuiDriveableInventory(player.inventory, world, ((EntitySeat)player.ridingEntity).driveable, 0);
case 7: return new GuiDriveableInventory(player.inventory, world, ((EntitySeat)player.ridingEntity).driveable, 1);