public class NetworkPlayerInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
displayHealth |
private ITextComponent |
displayName |
private com.mojang.authlib.GameProfile |
gameProfile |
private GameType |
gameType |
private long |
healthBlinkTime |
private int |
lastHealth |
private long |
lastHealthTime |
(package private) java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,ResourceLocation> |
playerTextures |
private boolean |
playerTexturesLoaded |
private long |
renderVisibilityId |
private int |
responseTime |
private java.lang.String |
skinType |
Constructor and Description |
---|
NetworkPlayerInfo(com.mojang.authlib.GameProfile profile) |
NetworkPlayerInfo(SPacketPlayerListItem.AddPlayerData entry) |
Modifier and Type | Method and Description |
---|---|
int |
getDisplayHealth() |
ITextComponent |
getDisplayName() |
com.mojang.authlib.GameProfile |
getGameProfile() |
GameType |
getGameType() |
long |
getHealthBlinkTime() |
int |
getLastHealth() |
long |
getLastHealthTime() |
ResourceLocation |
getLocationCape() |
ResourceLocation |
getLocationElytra() |
ResourceLocation |
getLocationSkin() |
ScorePlayerTeam |
getPlayerTeam() |
long |
getRenderVisibilityId() |
int |
getResponseTime() |
java.lang.String |
getSkinType() |
boolean |
hasLocationSkin() |
protected void |
loadPlayerTextures() |
void |
setDisplayHealth(int p_178857_1_) |
void |
setDisplayName(ITextComponent displayNameIn) |
protected void |
setGameType(GameType gameMode) |
void |
setHealthBlinkTime(long p_178844_1_) |
void |
setLastHealth(int p_178836_1_) |
void |
setLastHealthTime(long p_178846_1_) |
void |
setRenderVisibilityId(long p_178843_1_) |
protected void |
setResponseTime(int latency) |
private final com.mojang.authlib.GameProfile gameProfile
java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,ResourceLocation> playerTextures
private GameType gameType
private int responseTime
private boolean playerTexturesLoaded
private java.lang.String skinType
private ITextComponent displayName
private int lastHealth
private int displayHealth
private long lastHealthTime
private long healthBlinkTime
private long renderVisibilityId
public NetworkPlayerInfo(com.mojang.authlib.GameProfile profile)
public NetworkPlayerInfo(SPacketPlayerListItem.AddPlayerData entry)
public com.mojang.authlib.GameProfile getGameProfile()
public GameType getGameType()
protected void setGameType(GameType gameMode)
public int getResponseTime()
protected void setResponseTime(int latency)
public boolean hasLocationSkin()
public java.lang.String getSkinType()
public ResourceLocation getLocationSkin()
@Nullable public ResourceLocation getLocationCape()
@Nullable public ResourceLocation getLocationElytra()
@Nullable public ScorePlayerTeam getPlayerTeam()
protected void loadPlayerTextures()
public void setDisplayName(@Nullable ITextComponent displayNameIn)
@Nullable public ITextComponent getDisplayName()
public int getLastHealth()
public void setLastHealth(int p_178836_1_)
public int getDisplayHealth()
public void setDisplayHealth(int p_178857_1_)
public long getLastHealthTime()
public void setLastHealthTime(long p_178846_1_)
public long getHealthBlinkTime()
public void setHealthBlinkTime(long p_178844_1_)
public long getRenderVisibilityId()
public void setRenderVisibilityId(long p_178843_1_)