Package net.minecraft.client.multiplayer
Class PlayerInfo
java.lang.Object
net.minecraft.client.multiplayer.PlayerInfo
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private GameType
private long
private int
private long
private int
private static final org.slf4j.Logger
private final SignedMessageValidator
private boolean
private final com.mojang.authlib.GameProfile
private final ProfilePublicKey
private long
private String
private Component
private final Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,
ResourceLocation> -
Constructor Summary
ConstructorDescriptionPlayerInfo
(ClientboundPlayerInfoPacket.PlayerUpdate p_233762_, SignatureValidator p_233763_, boolean p_242970_) -
Method Summary
Modifier and TypeMethodDescriptionint
long
int
long
int
com.mojang.authlib.GameProfile
long
getTeam()
boolean
boolean
protected void
void
setDisplayHealth
(int p_105332_) protected void
setGameMode
(GameType p_105318_) void
setHealthBlinkTime
(long p_105329_) void
setLastHealth
(int p_105327_) void
setLastHealthTime
(long p_105316_) protected void
setLatency
(int p_105314_) void
setRenderVisibilityId
(long p_105334_) void
setTabListDisplayName
(Component p_105324_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
profile
private final com.mojang.authlib.GameProfile profile -
textureLocations
private final Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,ResourceLocation> textureLocations -
gameMode
-
latency
private int latency -
pendingTextures
private boolean pendingTextures -
skinModel
-
tabListDisplayName
-
lastHealth
private int lastHealth -
displayHealth
private int displayHealth -
lastHealthTime
private long lastHealthTime -
healthBlinkTime
private long healthBlinkTime -
renderVisibilityId
private long renderVisibilityId -
profilePublicKey
-
messageValidator
-
-
Constructor Details
-
PlayerInfo
public PlayerInfo(ClientboundPlayerInfoPacket.PlayerUpdate p_233762_, SignatureValidator p_233763_, boolean p_242970_)
-
-
Method Details
-
getProfile
public com.mojang.authlib.GameProfile getProfile() -
getProfilePublicKey
-
getMessageValidator
-
getGameMode
-
setGameMode
-
getLatency
public int getLatency() -
setLatency
protected void setLatency(int p_105314_) -
isCapeLoaded
public boolean isCapeLoaded() -
isSkinLoaded
public boolean isSkinLoaded() -
getModelName
-
getSkinLocation
-
getCapeLocation
-
getElytraLocation
-
getTeam
-
registerTextures
protected void registerTextures() -
setTabListDisplayName
-
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_)
-