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 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.
|
Collection<TabListEntry> |
getEntries()
Returns an immutable
Collection of the TabListEntrys in the tab list. |
Optional<TabListEntry> |
removeEntry(UUID uuid)
|
void |
setHeaderAndFooter(Component header,
Component footer)
Sets the tab list header and footer for the player.
|
void setHeaderAndFooter(Component header, 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 theOptional containing the removed TabListEntry if present, otherwise
Optional.empty()Collection<TabListEntry> getEntries()
Collection of the TabListEntrys in the tab list.Collection of tab list entries@Deprecated TabListEntry buildEntry(GameProfile profile, @Nullable Component displayName, int latency, int gameMode)
TabListEntry.Builder instead.profile - profiledisplayName - display namelatency - latencygameMode - game mode