public interface TabListEntry
TabList.| Modifier and Type | Interface and Description |
|---|---|
static interface |
TabListEntry.Builder
Represents a builder class to create mutable
TabListEntrys. |
| Modifier and Type | Method and Description |
|---|---|
static TabListEntry.Builder |
builder()
Creates a new
TabListEntry.Builder to create TabListEntrys. |
Optional<Text> |
getDisplayName()
Gets this entry's display name.
|
GameMode |
getGameMode()
Gets the
GameMode this entry is in. |
int |
getLatency()
Gets the latency for this entry.
|
TabList |
getList()
Gets the
TabList that owns this entry. |
GameProfile |
getProfile()
Gets the
GameProfile associated with this entry. |
TabListEntry |
setDisplayName(Text displayName)
Sets this entry's display name.
|
TabListEntry |
setGameMode(GameMode gameMode)
Sets this entry's gamemode.
|
TabListEntry |
setLatency(int latency)
Sets the latency for this entry.
|
static TabListEntry.Builder builder()
TabListEntry.Builder to create TabListEntrys.TabList getList()
TabList that owns this entry.GameProfile getProfile()
GameProfile associated with this entry.Optional<Text> getDisplayName()
TabListEntry setDisplayName(@Nullable Text displayName)
displayName - The new display nameint getLatency()
TabListEntry setLatency(int latency)
The client displays connection bars based on this number.
| Bars | Time |
|---|---|
| 0 | Less than 0 |
| 1 | 1000+ |
| 2 | 600 - 999 |
| 3 | 300 - 599 |
| 4 | 150 - 299 |
| 5 | 0 - 149 |
latency - The new latency, in millisecondsGameMode getGameMode()
GameMode this entry is in.TabListEntry setGameMode(GameMode gameMode)
When using GameModes.SPECTATOR and this entry is of an
online Player, the player will have "spectator effects". Such
effects can include invisibility and noclip.
gameMode - The new gamemode