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()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.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:
-
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:
-
build
- Returns:
- the constructed
TabListEntry
-