Class WrapperPlayServerPlayerInfoUpdate.PlayerInfo
java.lang.Object
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerInfoUpdate.PlayerInfo
- Enclosing class:
WrapperPlayServerPlayerInfoUpdate
-
Constructor Summary
ConstructorDescriptionPlayerInfo
(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.Component
int
int
Added with 1.21.2boolean
isListed()
boolean
Added with 1.21.4void
setChatSession
(@Nullable RemoteChatSession chatSession) void
setDisplayName
(@Nullable net.kyori.adventure.text.Component displayName) void
setGameMode
(GameMode gameMode) void
setGameProfile
(UserProfile gameProfile) void
setLatency
(int latency) void
setListed
(boolean listed) void
setListOrder
(int listOrder) Added with 1.21.2void
setShowHat
(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
-