This commit is contained in:
boy0001 2015-04-11 14:07:19 +10:00
parent 6ec4668177
commit 09424c30b4
5 changed files with 13 additions and 6 deletions

View file

@ -146,6 +146,14 @@ public class PlotSquared {
return new LinkedHashSet<>(newplots);
}
public static Set<Plot> getPlotsRaw() {
final ArrayList<Plot> newplots = new ArrayList<>();
for (final Entry<String, HashMap<PlotId, Plot>> entry : plots.entrySet()) {
newplots.addAll(entry.getValue().values());
}
return new LinkedHashSet<>(newplots);
}
public static ArrayList<Plot> sortPlots(Collection<Plot> plots) {
ArrayList<Plot> newPlots = new ArrayList<>();
newPlots.addAll(plots);