Class WrapperPlayServerPlayerInfoUpdate.PlayerInfo
java.lang.Object
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerInfoUpdate.PlayerInfo
- Enclosing class:
WrapperPlayServerPlayerInfoUpdate
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerInfo(UserProfile profile) PlayerInfo(UserProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable net.kyori.adventure.text.Component displayName, @Nullable RemoteChatSession chatSession) PlayerInfo(UserProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable net.kyori.adventure.text.Component displayName, @Nullable RemoteChatSession chatSession, int listOrder) PlayerInfo(UserProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable net.kyori.adventure.text.Component displayName, @Nullable RemoteChatSession chatSession, int listOrder, boolean showHat) PlayerInfo(UUID profileId) -
Method Summary
Modifier and TypeMethodDescription@Nullable RemoteChatSession@Nullable net.kyori.adventure.text.ComponentintintAdded with 1.21.2booleanisListed()booleanAdded with 1.21.4voidsetChatSession(@Nullable RemoteChatSession chatSession) voidsetDisplayName(@Nullable net.kyori.adventure.text.Component displayName) voidsetGameMode(GameMode gameMode) voidsetGameProfile(UserProfile gameProfile) voidsetLatency(int latency) voidsetListed(boolean listed) voidsetListOrder(int listOrder) Added with 1.21.2voidsetShowHat(boolean showHat) Added with 1.21.4
-
Constructor Details
-
PlayerInfo
-
PlayerInfo
-
PlayerInfo
public PlayerInfo(UserProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable @Nullable net.kyori.adventure.text.Component displayName, @Nullable @Nullable RemoteChatSession chatSession) -
PlayerInfo
public PlayerInfo(UserProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable @Nullable net.kyori.adventure.text.Component displayName, @Nullable @Nullable RemoteChatSession chatSession, int listOrder) -
PlayerInfo
public PlayerInfo(UserProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable @Nullable net.kyori.adventure.text.Component displayName, @Nullable @Nullable RemoteChatSession chatSession, int listOrder, boolean showHat)
-
-
Method Details
-
getProfileId
-
getGameProfile
-
isListed
public boolean isListed() -
getLatency
public int getLatency() -
getGameMode
-
getDisplayName
@Nullable public @Nullable net.kyori.adventure.text.Component getDisplayName() -
getChatSession
-
getListOrder
public int getListOrder()Added with 1.21.2 -
isShowHat
public boolean isShowHat()Added with 1.21.4 -
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
-
setListOrder
public void setListOrder(int listOrder) Added with 1.21.2 -
setShowHat
public void setShowHat(boolean showHat) Added with 1.21.4
-