Add getEntry to TabList.java
This commit is contained in:
@@ -61,6 +61,15 @@ public interface TabList {
|
||||
*/
|
||||
boolean containsEntry(UUID uuid);
|
||||
|
||||
/**
|
||||
* Retrieves the tab list entry associated with the given uuid.
|
||||
*
|
||||
* @param uuid The player's {@link UUID} the {@link TabListEntry} is in reference to.
|
||||
* @return {@code Optional.empty()} if the player is not present in the provided player's
|
||||
* {@link TabList} otherwise a present {@link TabListEntry} in relation to the player.
|
||||
*/
|
||||
Optional<TabListEntry> getEntry(UUID uuid);
|
||||
|
||||
/**
|
||||
* Returns an immutable {@link Collection} of the {@link TabListEntry}s in the tab list.
|
||||
*
|
||||
|
Reference in New Issue
Block a user