Package net.minecraft.client.network
Class PlayerListEntry
java.lang.Object
net.minecraft.client.network.PlayerListEntry
@Environment(CLIENT) public class PlayerListEntry extends Object
-
Field Summary
Fields Modifier and Type Field Description private TextdisplayNameprivate intfield_3736private longfield_3737private intfield_3738private longfield_3746private longfield_3747private GameModegameModeprivate intlatencyprivate Stringmodelprivate com.mojang.authlib.GameProfileprofileprivate Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,Identifier>texturesprivate booleantexturesLoaded -
Constructor Summary
Constructors Constructor Description PlayerListEntry(PlayerListS2CPacket.Entry playerListPacketEntry) -
Method Summary
Modifier and Type Method Description IdentifiergetCapeTexture()TextgetDisplayName()IdentifiergetElytraTexture()GameModegetGameMode()intgetLatency()StringgetModel()com.mojang.authlib.GameProfilegetProfile()TeamgetScoreboardTeam()IdentifiergetSkinTexture()booleanhasSkinTexture()Checks if the player represented by this entry has a custom skin.protected voidloadTextures()intmethod_2960()longmethod_2961()voidmethod_2964(long long2)voidmethod_2965(int int2)voidmethod_2972(int int2)intmethod_2973()longmethod_2974()voidmethod_2975(long long2)longmethod_2976()voidmethod_2978(long long2)voidsetDisplayName(Text displayName)protected voidsetGameMode(GameMode gameMode)protected voidsetLatency(int latency)
-
Field Details
-
profile
private final com.mojang.authlib.GameProfile profile -
textures
-
gameMode
-
latency
private int latency -
texturesLoaded
private boolean texturesLoaded -
model
-
displayName
-
field_3738
private int field_3738 -
field_3736
private int field_3736 -
field_3737
private long field_3737 -
field_3747
private long field_3747 -
field_3746
private long field_3746
-
-
Constructor Details
-
PlayerListEntry
-
-
Method Details
-
getProfile
public com.mojang.authlib.GameProfile getProfile() -
getGameMode
-
setGameMode
-
getLatency
public int getLatency() -
setLatency
protected void setLatency(int latency) -
hasSkinTexture
public boolean hasSkinTexture()Checks if the player represented by this entry has a custom skin.If the player has the default skin, this will return false.
-
getModel
-
getSkinTexture
-
getCapeTexture
-
getElytraTexture
-
getScoreboardTeam
-
loadTextures
protected void loadTextures() -
setDisplayName
-
getDisplayName
-
method_2973
public int method_2973() -
method_2972
public void method_2972(int int2) -
method_2960
public int method_2960() -
method_2965
public void method_2965(int int2) -
method_2974
public long method_2974() -
method_2978
public void method_2978(long long2) -
method_2961
public long method_2961() -
method_2975
public void method_2975(long long2) -
method_2976
public long method_2976() -
method_2964
public void method_2964(long long2)
-