Class WrapperPlayServerPlayerInfoUpdate.PlayerInfo
java.lang.Object
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerInfoUpdate.PlayerInfo
- Enclosing class:
- WrapperPlayServerPlayerInfoUpdate
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerInfo(UserProfile gameProfile, boolean listed, int latency, GameMode gameMode, @Nullable net.kyori.adventure.text.Component displayName, @Nullable RemoteChatSession chatSession) -
Method Summary
Modifier and TypeMethodDescription@Nullable RemoteChatSession@Nullable net.kyori.adventure.text.ComponentintDeprecated.booleanisListed()voidsetChatSession(@Nullable RemoteChatSession chatSession) voidsetDisplayName(@Nullable net.kyori.adventure.text.Component displayName) voidsetGameMode(GameMode gameMode) voidsetGameProfile(UserProfile gameProfile) voidsetLatency(int latency) voidsetListed(boolean listed)
-
Constructor Details
-
PlayerInfo
public PlayerInfo(UserProfile gameProfile, boolean listed, int latency, GameMode gameMode, @Nullable @Nullable net.kyori.adventure.text.Component displayName, @Nullable @Nullable RemoteChatSession chatSession)
-
-
Method Details
-
getProfileId
Deprecated. -
getGameProfile
-
isListed
public boolean isListed() -
getLatency
public int getLatency() -
getGameMode
-
getDisplayName
@Nullable public @Nullable net.kyori.adventure.text.Component getDisplayName() -
getChatSession
-
setGameProfile
-
setListed
public void setListed(boolean listed) -
setLatency
public void setLatency(int latency) -
setGameMode
-
setDisplayName
public void setDisplayName(@Nullable @Nullable net.kyori.adventure.text.Component displayName) -
setChatSession
-