Class SPlayerListItemPacket.AddPlayerData
- java.lang.Object
-
- net.minecraft.network.play.server.SPlayerListItemPacket.AddPlayerData
-
- Enclosing class:
- SPlayerListItemPacket
public class SPlayerListItemPacket.AddPlayerData extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ITextComponent
displayName
private GameType
gameMode
private int
latency
private com.mojang.authlib.GameProfile
profile
-
Constructor Summary
Constructors Constructor Description AddPlayerData(com.mojang.authlib.GameProfile p_i46663_2_, int p_i46663_3_, GameType p_i46663_4_, ITextComponent p_i46663_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITextComponent
getDisplayName()
GameType
getGameMode()
int
getLatency()
com.mojang.authlib.GameProfile
getProfile()
java.lang.String
toString()
-
-
-
Field Detail
-
latency
private final int latency
-
gameMode
private final GameType gameMode
-
profile
private final com.mojang.authlib.GameProfile profile
-
displayName
private final ITextComponent displayName
-
-
Constructor Detail
-
AddPlayerData
public AddPlayerData(com.mojang.authlib.GameProfile p_i46663_2_, int p_i46663_3_, @Nullable GameType p_i46663_4_, @Nullable ITextComponent p_i46663_5_)
-
-
Method Detail
-
getProfile
public com.mojang.authlib.GameProfile getProfile()
-
getLatency
public int getLatency()
-
getGameMode
public GameType getGameMode()
-
getDisplayName
@Nullable public ITextComponent getDisplayName()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-