Class NetworkPlayerInfo
- java.lang.Object
-
- net.minecraft.client.network.play.NetworkPlayerInfo
-
public class NetworkPlayerInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
displayHealth
private GameType
gameMode
private long
healthBlinkTime
private int
lastHealth
private long
lastHealthTime
private int
latency
private boolean
pendingTextures
private com.mojang.authlib.GameProfile
profile
private long
renderVisibilityId
private java.lang.String
skinModel
private ITextComponent
tabListDisplayName
private java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,ResourceLocation>
textureLocations
-
Constructor Summary
Constructors Constructor Description NetworkPlayerInfo(SPlayerListItemPacket.AddPlayerData p_i46583_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocation
getCapeLocation()
int
getDisplayHealth()
ResourceLocation
getElytraLocation()
GameType
getGameMode()
long
getHealthBlinkTime()
int
getLastHealth()
long
getLastHealthTime()
int
getLatency()
java.lang.String
getModelName()
com.mojang.authlib.GameProfile
getProfile()
long
getRenderVisibilityId()
ResourceLocation
getSkinLocation()
ITextComponent
getTabListDisplayName()
ScorePlayerTeam
getTeam()
boolean
isSkinLoaded()
protected void
registerTextures()
void
setDisplayHealth(int p_178857_1_)
protected void
setGameMode(GameType p_178839_1_)
void
setHealthBlinkTime(long p_178844_1_)
void
setLastHealth(int p_178836_1_)
void
setLastHealthTime(long p_178846_1_)
protected void
setLatency(int p_178838_1_)
void
setRenderVisibilityId(long p_178843_1_)
void
setTabListDisplayName(ITextComponent p_178859_1_)
-
-
-
Field Detail
-
profile
private final com.mojang.authlib.GameProfile profile
-
textureLocations
private final java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,ResourceLocation> textureLocations
-
gameMode
private GameType gameMode
-
latency
private int latency
-
pendingTextures
private boolean pendingTextures
-
skinModel
@Nullable private java.lang.String skinModel
-
tabListDisplayName
@Nullable private ITextComponent tabListDisplayName
-
lastHealth
private int lastHealth
-
displayHealth
private int displayHealth
-
lastHealthTime
private long lastHealthTime
-
healthBlinkTime
private long healthBlinkTime
-
renderVisibilityId
private long renderVisibilityId
-
-
Constructor Detail
-
NetworkPlayerInfo
public NetworkPlayerInfo(SPlayerListItemPacket.AddPlayerData p_i46583_1_)
-
-
Method Detail
-
getProfile
public com.mojang.authlib.GameProfile getProfile()
-
getGameMode
@Nullable public GameType getGameMode()
-
setGameMode
protected void setGameMode(GameType p_178839_1_)
-
getLatency
public int getLatency()
-
setLatency
protected void setLatency(int p_178838_1_)
-
isSkinLoaded
public boolean isSkinLoaded()
-
getModelName
public java.lang.String getModelName()
-
getSkinLocation
public ResourceLocation getSkinLocation()
-
getCapeLocation
@Nullable public ResourceLocation getCapeLocation()
-
getElytraLocation
@Nullable public ResourceLocation getElytraLocation()
-
getTeam
@Nullable public ScorePlayerTeam getTeam()
-
registerTextures
protected void registerTextures()
-
setTabListDisplayName
public void setTabListDisplayName(@Nullable ITextComponent p_178859_1_)
-
getTabListDisplayName
@Nullable public ITextComponent getTabListDisplayName()
-
getLastHealth
public int getLastHealth()
-
setLastHealth
public void setLastHealth(int p_178836_1_)
-
getDisplayHealth
public int getDisplayHealth()
-
setDisplayHealth
public void setDisplayHealth(int p_178857_1_)
-
getLastHealthTime
public long getLastHealthTime()
-
setLastHealthTime
public void setLastHealthTime(long p_178846_1_)
-
getHealthBlinkTime
public long getHealthBlinkTime()
-
setHealthBlinkTime
public void setHealthBlinkTime(long p_178844_1_)
-
getRenderVisibilityId
public long getRenderVisibilityId()
-
setRenderVisibilityId
public void setRenderVisibilityId(long p_178843_1_)
-
-