public void toAllInRadius(WorldServer world,Vec3d pos,double radius){
  double maxDistance=radius * radius + radius * radius + radius * radius;
  toAll(world.getPlayers(EntityPlayerMP.class,null));
}

public void toAllInRadius ( WorldServer world , Vec3d pos , double radius ) { double maxDistance = radius * radius + radius * radius + radius * radius ; toAll ( world . getPlayers ( EntityPlayerMP . class , null ) ) ; }
sends this packet to all the players in the world within the radius
