Class TabListEntry.Builder
java.lang.Object
com.velocitypowered.api.proxy.player.TabListEntry.Builder
- Enclosing interface:
- TabListEntry
Represents a builder which creates
TabListEntrys.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()chatSession(ChatSession chatSession) Sets theIdentifiedKeyof theTabListEntry.displayName(@Nullable Component displayName) Sets the displayed name of theTabListEntry.gameMode(int gameMode) Sets the game mode of theTabListEntry.latency(int latency) Sets the latency of theTabListEntry.listed(boolean listed) Sets whether this entry should be visible.listOrder(int order) Sets the order/priority of this entry in the tab list.profile(GameProfile profile) Sets theGameProfileof theTabListEntry.
-
Method Details
-
tabList
Sets the parentTabListfor this entry, the entry will only be able to be added to that specificTabList.- Parameters:
tabList- to set- Returns:
this, for chaining
-
profile
Sets theGameProfileof theTabListEntry.- Parameters:
profile- to set- Returns:
this, for chaining- See Also:
-
chatSession
Sets theIdentifiedKeyof theTabListEntry.This only works for players currently not connected to this proxy.
For any player currently connected to this proxy this will be filled automatically.
Will ignore mismatching key revisions data.
- Parameters:
chatSession- session to set- Returns:
this, for chaining- See Also:
-
displayName
Sets the displayed name of theTabListEntry.- Parameters:
displayName- to set- Returns:
this, for chaining- See Also:
-
latency
Sets the latency of theTabListEntry.- Parameters:
latency- to set- Returns:
this, for chaining- See Also:
-
gameMode
Sets the game mode of theTabListEntry.- Parameters:
gameMode- to set- Returns:
this, for chaining- See Also:
-
listed
Sets whether this entry should be visible.- Parameters:
listed- to set- Returns:
- ${code this}, for chaining
- See Also:
-
listOrder
Sets the order/priority of this entry in the tab list.- Parameters:
order- to set- Returns:
- ${code this}, for chaining
- See Also:
- Since Minecraft:
- 1.21.2
-
build
- Returns:
- the constructed
TabListEntry
-