Set<BlockData> goals = Sets.newHashSet();
for (AutoRefGoal goal : team.getTeamGoals())
{
if (!goal.hasItem()) continue;
ItemStatus is = goal.getItemStatus();
if (is == ItemStatus.TARGET || is == ItemStatus.CARRYING) continue;
goals.add(goal.getItem());
}
if (goals.isEmpty()) return null;