public static class TabListEntry.Builder extends Object
TabListEntry
s.TabListEntry
Modifier and Type | Method and Description |
---|---|
TabListEntry |
build()
|
TabListEntry.Builder |
displayName(@Nullable 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()
public TabListEntry.Builder displayName(@Nullable Component displayName)
TabListEntry
.displayName
- to setthis
, for chainingTabListEntry.getDisplayName()
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