diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/Bukkit.java | 10 | ||||
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java index 535f0b88..87c34743 100644 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -1145,6 +1145,16 @@ public final class Bukkit { } /** + * Get an iterator through all advancements. Advancements cannot be removed + * from this iterator, + * + * @return an advancement iterator + */ + public static Iterator<Advancement> advancementIterator() { + return server.advancementIterator(); + } + + /** * @see UnsafeValues * @return the unsafe values instance */ diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 3301ccdc..073fecd5 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -937,6 +937,14 @@ public interface Server extends PluginMessageRecipient { Advancement getAdvancement(NamespacedKey key); /** + * Get an iterator through all advancements. Advancements cannot be removed + * from this iterator, + * + * @return an advancement iterator + */ + Iterator<Advancement> advancementIterator(); + + /** * @see UnsafeValues * @return the unsafe values instance */ |