Class WrapperPlayServerPlayerInfo.PlayerData
java.lang.Object
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerInfo.PlayerData
- Enclosing class:
WrapperPlayServerPlayerInfo
-
Constructor Summary
ConstructorDescriptionPlayerData
(@Nullable net.kyori.adventure.text.Component displayName, @Nullable UserProfile userProfile, @Nullable GameMode gameMode, int ping) PlayerData
(@Nullable net.kyori.adventure.text.Component displayName, @Nullable UserProfile userProfile, @Nullable GameMode gameMode, @Nullable SignatureData signatureData, int ping) -
Method Summary
Modifier and TypeMethodDescription@Nullable net.kyori.adventure.text.Component
@Nullable GameMode
int
getPing()
@Nullable UserProfile
getUser()
void
setDisplayName
(@Nullable net.kyori.adventure.text.Component displayName) void
setGameMode
(@Nullable GameMode gameMode) void
setPing
(int ping) void
setSignatureData
(SignatureData signatureData) void
setUser
(@Nullable UserProfile userProfile) void
setUserProfile
(UserProfile userProfile)
-
Constructor Details
-
PlayerData
public PlayerData(@Nullable @Nullable net.kyori.adventure.text.Component displayName, @Nullable @Nullable UserProfile userProfile, @Nullable @Nullable GameMode gameMode, @Nullable @Nullable SignatureData signatureData, int ping) -
PlayerData
public PlayerData(@Nullable @Nullable net.kyori.adventure.text.Component displayName, @Nullable @Nullable UserProfile userProfile, @Nullable @Nullable GameMode gameMode, int ping)
-
-
Method Details
-
getUserProfile
-
setUserProfile
-
getSignatureData
-
setSignatureData
-
getUser
-
setUser
-
getGameMode
-
setGameMode
-
getPing
public int getPing() -
setPing
public void setPing(int ping) -
getDisplayName
@Nullable public @Nullable net.kyori.adventure.text.Component getDisplayName() -
setDisplayName
public void setDisplayName(@Nullable @Nullable net.kyori.adventure.text.Component displayName)
-