Class PlayerInfo

java.lang.Object
net.minecraft.client.multiplayer.PlayerInfo

public class PlayerInfo extends Object
  • Field Details

    • profile

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

      private final Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,ResourceLocation> textureLocations
    • gameMode

      private GameType gameMode
    • latency

      private int latency
    • pendingTextures

      private boolean pendingTextures
    • skinModel

      @Nullable private String skinModel
    • tabListDisplayName

      @Nullable private Component tabListDisplayName
    • lastHealth

      private int lastHealth
    • displayHealth

      private int displayHealth
    • lastHealthTime

      private long lastHealthTime
    • healthBlinkTime

      private long healthBlinkTime
    • renderVisibilityId

      private long renderVisibilityId
  • Constructor Details

  • Method Details

    • getProfile

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

      @Nullable public GameType getGameMode()
    • setGameMode

      protected void setGameMode(GameType p_105318_)
    • getLatency

      public int getLatency()
    • setLatency

      protected void setLatency(int p_105314_)
    • isCapeLoaded

      public boolean isCapeLoaded()
    • isSkinLoaded

      public boolean isSkinLoaded()
    • getModelName

      public String getModelName()
    • getSkinLocation

      public ResourceLocation getSkinLocation()
    • getCapeLocation

      @Nullable public ResourceLocation getCapeLocation()
    • getElytraLocation

      @Nullable public ResourceLocation getElytraLocation()
    • getTeam

      @Nullable public PlayerTeam getTeam()
    • registerTextures

      protected void registerTextures()
    • setTabListDisplayName

      public void setTabListDisplayName(@Nullable Component p_105324_)
    • getTabListDisplayName

      @Nullable public Component getTabListDisplayName()
    • getLastHealth

      public int getLastHealth()
    • setLastHealth

      public void setLastHealth(int p_105327_)
    • getDisplayHealth

      public int getDisplayHealth()
    • setDisplayHealth

      public void setDisplayHealth(int p_105332_)
    • getLastHealthTime

      public long getLastHealthTime()
    • setLastHealthTime

      public void setLastHealthTime(long p_105316_)
    • getHealthBlinkTime

      public long getHealthBlinkTime()
    • setHealthBlinkTime

      public void setHealthBlinkTime(long p_105329_)
    • getRenderVisibilityId

      public long getRenderVisibilityId()
    • setRenderVisibilityId

      public void setRenderVisibilityId(long p_105334_)