public class PlayerInfoData extends Object
| Constructor and Description |
|---|
PlayerInfoData(WrappedGameProfile profile,
int latency,
EnumWrappers.NativeGameMode gameMode,
WrappedChatComponent displayName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static EquivalentConverter<PlayerInfoData> |
getConverter()
Used to convert between NMS PlayerInfoData and the wrapper instance.
|
WrappedChatComponent |
getDisplayName()
Gets the display name of the player represented by this data.
|
EnumWrappers.NativeGameMode |
getGameMode()
Gets the GameMode of the player represented by this data.
|
int |
getLatency()
Gets the latency between the client and the server.
|
int |
getPing()
Deprecated.
Replaced by
getLatency() |
WrappedGameProfile |
getProfile()
Gets the GameProfile of the player represented by this data.
|
int |
hashCode() |
String |
toString() |
public PlayerInfoData(WrappedGameProfile profile, int latency, EnumWrappers.NativeGameMode gameMode, WrappedChatComponent displayName)
public WrappedGameProfile getProfile()
@Deprecated public int getPing()
getLatency()public int getLatency()
public EnumWrappers.NativeGameMode getGameMode()
public WrappedChatComponent getDisplayName()
public static EquivalentConverter<PlayerInfoData> getConverter()
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.