public interface PlayerTabInfo
TabList
.Modifier and Type | Method and Description |
---|---|
int |
getConnectionTime()
Gets the connection time for this player.
|
Text |
getDisplayName()
Gets this player's display name.
|
GameMode |
getGameMode()
Gets the
GameMode this player is in. |
String |
getName()
Gets this player's username.
|
GameProfile |
getProfile()
Gets the
GameProfile associated with this player. |
void |
setConnectionTime(int milliseconds)
Sets the connection time for this player.
|
void |
setDisplayName(Text displayName)
Sets this player's display name.
|
void |
setGameMode(GameMode gamemode)
Sets this player's gamemode.
|
void |
setName(String name)
Sets this player's username.
|
void |
setProfile(GameProfile profile)
Sets the
GameProfile associated with this player. |
int getConnectionTime()
void setConnectionTime(int milliseconds)
Bars | Time |
---|---|
0 | Less than 0 |
1 | 1000+ |
2 | 600 - 999 |
3 | 300 - 599 |
4 | 150 - 299 |
5 | 0 - 149 |
milliseconds
- The new connection time, in millisecondsGameMode getGameMode()
GameMode
this player is in.void setGameMode(GameMode gamemode)
gamemode
- The new gamemodeText getDisplayName()
void setDisplayName(Text displayName)
displayName
- The new display nameString getName()
void setName(String name)
name
- A new usernameGameProfile getProfile()
GameProfile
associated with this player.void setProfile(GameProfile profile)
GameProfile
associated with this player.
This controls the head shown next to the username on the list.profile
- The new GameProfile for this player