mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
Added a method to get a list of tags
By: Matthew Miller <mnmiller1@me.com>
This commit is contained in:
@@ -1145,6 +1145,21 @@ public interface Server extends PluginMessageRecipient {
|
||||
*/
|
||||
<T extends Keyed> Tag<T> getTag(String registry, NamespacedKey tag, Class<T> clazz);
|
||||
|
||||
/**
|
||||
* Gets a all tags which have been defined within the server.
|
||||
* <br>
|
||||
* Server implementations are allowed to handle only the registries
|
||||
* indicated in {@link Tag}.
|
||||
* <br>
|
||||
* No guarantees are made about the mutability of the returned iterator.
|
||||
*
|
||||
* @param <T> type of the tag
|
||||
* @param registry the tag registry to look at
|
||||
* @param clazz the class of the tag entries
|
||||
* @return all defined tags
|
||||
*/
|
||||
<T extends Keyed> Iterable<Tag<T>> getTags(String registry, Class<T> clazz);
|
||||
|
||||
/**
|
||||
* Gets the specified {@link LootTable}.
|
||||
*
|
||||
|
Reference in New Issue
Block a user