public interface TabList
Player.| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(TabListEntry entry)
Adds a
TabListEntry to the Player's tab list. |
TabListEntry |
buildEntry(GameProfile profile,
@Nullable net.kyori.adventure.text.Component displayName,
int latency,
int gameMode)
Deprecated.
Internal usage. Use
TabListEntry.Builder instead. |
void |
clearHeaderAndFooter()
Clears the tab list header and footer for the player.
|
boolean |
containsEntry(UUID uuid)
Determines if the specified entry exists in the tab list.
|
Collection<TabListEntry> |
getEntries()
Returns an immutable
Collection of the TabListEntrys in the tab list. |
Optional<TabListEntry> |
removeEntry(UUID uuid)
|
void |
setHeaderAndFooter(net.kyori.text.Component header,
net.kyori.text.Component footer)
Deprecated.
Use
setHeaderAndFooter(Component, Component) instead |
void |
setHeaderAndFooter(net.kyori.adventure.text.Component header,
net.kyori.adventure.text.Component footer)
Sets the tab list header and footer for the player.
|
@Deprecated void setHeaderAndFooter(net.kyori.text.Component header, net.kyori.text.Component footer)
setHeaderAndFooter(Component, Component) insteadheader - the header componentfooter - the footer componentvoid setHeaderAndFooter(net.kyori.adventure.text.Component header,
net.kyori.adventure.text.Component footer)
header - the header componentfooter - the footer componentvoid clearHeaderAndFooter()
void addEntry(TabListEntry entry)
TabListEntry to the Player's tab list.entry - to add to the tab listOptional<TabListEntry> removeEntry(UUID uuid)
uuid - of the entryOptional containing the removed TabListEntry if present, otherwise
Optional.empty()boolean containsEntry(UUID uuid)
uuid - the UUID of the entrytrue if it exists, false if it does notCollection<TabListEntry> getEntries()
Collection of the TabListEntrys in the tab list.Collection of tab list entries@Deprecated TabListEntry buildEntry(GameProfile profile, @Nullable net.kyori.adventure.text.Component displayName, int latency, int gameMode)
TabListEntry.Builder instead.profile - profiledisplayName - display namelatency - latencygameMode - game mode