mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
SPIGOT-3238: Add Server.advancementIterator
By: md_5 <git@md-5.net>
This commit is contained in:
parent
75a18fd5ad
commit
5dcd2db4e8
2 changed files with 18 additions and 0 deletions
|
@ -1144,6 +1144,16 @@ public final class Bukkit {
|
|||
return server.getAdvancement(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
|
|
@ -936,6 +936,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
|
||||
|
|
Loading…
Add table
Reference in a new issue