Class PlayerListEntry

java.lang.Object
net.minecraft.client.network.PlayerListEntry

@Environment(CLIENT)
public class PlayerListEntry
extends Object
  • Field Details

    • profile

      private final com.mojang.authlib.GameProfile profile
    • textures

      private final Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,​Identifier> textures
    • gameMode

      private GameMode gameMode
    • latency

      private int latency
    • texturesLoaded

      private boolean texturesLoaded
    • model

      @Nullable private String model
    • displayName

      @Nullable private Text 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

  • Method Details

    • getProfile

      public com.mojang.authlib.GameProfile getProfile()
    • getGameMode

      @Nullable public GameMode getGameMode()
    • setGameMode

      protected void setGameMode​(GameMode gameMode)
    • 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

      public String getModel()
    • getSkinTexture

      public Identifier getSkinTexture()
    • getCapeTexture

      @Nullable public Identifier getCapeTexture()
    • getElytraTexture

      @Nullable public Identifier getElytraTexture()
    • getScoreboardTeam

      @Nullable public Team getScoreboardTeam()
    • loadTextures

      protected void loadTextures()
    • setDisplayName

      public void setDisplayName​(@Nullable Text displayName)
    • getDisplayName

      @Nullable public Text 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)