public class SPlayerListItemPacket.AddPlayerData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ITextComponent |
displayName |
private GameType |
gamemode |
private int |
ping |
private com.mojang.authlib.GameProfile |
profile |
Constructor and Description |
---|
AddPlayerData(com.mojang.authlib.GameProfile profileIn,
int latencyIn,
GameType gameModeIn,
ITextComponent displayNameIn) |
Modifier and Type | Method and Description |
---|---|
ITextComponent |
getDisplayName() |
GameType |
getGameMode() |
int |
getPing() |
com.mojang.authlib.GameProfile |
getProfile() |
java.lang.String |
toString() |
private final int ping
private final GameType gamemode
private final com.mojang.authlib.GameProfile profile
private final ITextComponent displayName
public AddPlayerData(com.mojang.authlib.GameProfile profileIn, int latencyIn, @Nullable GameType gameModeIn, @Nullable ITextComponent displayNameIn)
public com.mojang.authlib.GameProfile getProfile()
public int getPing()
public GameType getGameMode()
@Nullable public ITextComponent getDisplayName()
public java.lang.String toString()
toString
in class java.lang.Object