public static class TabListEntry.Builder extends Object
TabListEntrys.TabListEntry| Modifier and Type | Method and Description |
|---|---|
TabListEntry |
build()
|
TabListEntry.Builder |
displayName(net.kyori.text.Component displayName)
Deprecated.
Use
displayName(Component) instead |
TabListEntry.Builder |
displayName(@Nullable net.kyori.adventure.text.Component displayName)
Sets the displayed name of the
TabListEntry. |
TabListEntry.Builder |
gameMode(int gameMode)
Sets the game mode of the
TabListEntry. |
TabListEntry.Builder |
latency(int latency)
Sets the latency of the
TabListEntry. |
TabListEntry.Builder |
profile(GameProfile profile)
Sets the
GameProfile of the TabListEntry. |
TabListEntry.Builder |
tabList(TabList tabList)
|
public TabListEntry.Builder tabList(TabList tabList)
TabList for this entry, the entry will only be able to be added to
that specific TabList.tabList - to setthis, for chainingpublic TabListEntry.Builder profile(GameProfile profile)
GameProfile of the TabListEntry.profile - to setthis, for chainingTabListEntry.getProfile()@Deprecated public TabListEntry.Builder displayName(net.kyori.text.Component displayName)
displayName(Component) insteadTabListEntry.displayName - to setthis, for chainingTabListEntry.getDisplayName()public TabListEntry.Builder displayName(@Nullable net.kyori.adventure.text.Component displayName)
TabListEntry.displayName - to setthis, for chaining()public TabListEntry.Builder latency(int latency)
TabListEntry.latency - to setthis, for chainingTabListEntry.getLatency()public TabListEntry.Builder gameMode(int gameMode)
TabListEntry.gameMode - to setthis, for chainingTabListEntry.getGameMode()public TabListEntry build()
TabListEntry