Class PlayerListEntry

java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.PlayerListEntry

public class PlayerListEntry extends Object
  • Constructor Details

    • PlayerListEntry

      public PlayerListEntry(UUID profileId)
    • PlayerListEntry

      public PlayerListEntry(@NonNull @NonNull UUID profileId, @Nullable GameProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable net.kyori.adventure.text.Component displayName, UUID sessionId, long expiresAt, @Nullable PublicKey publicKey, byte @Nullable [] keySignature)
  • Method Details

    • getProfileId

      @NonNull public @NonNull UUID getProfileId()
    • getProfile

      public @Nullable GameProfile getProfile()
    • isListed

      public boolean isListed()
    • getLatency

      public int getLatency()
    • getGameMode

      public GameMode getGameMode()
    • getDisplayName

      public @Nullable net.kyori.adventure.text.Component getDisplayName()
    • getSessionId

      public UUID getSessionId()
    • getExpiresAt

      public long getExpiresAt()
    • getPublicKey

      public @Nullable PublicKey getPublicKey()
    • getKeySignature

      public byte @Nullable [] getKeySignature()
    • setProfile

      public void setProfile(@Nullable GameProfile profile)
    • setListed

      public void setListed(boolean listed)
    • setLatency

      public void setLatency(int latency)
    • setGameMode

      public void setGameMode(GameMode gameMode)
    • setDisplayName

      public void setDisplayName(@Nullable net.kyori.adventure.text.Component displayName)
    • setSessionId

      public void setSessionId(UUID sessionId)
    • setExpiresAt

      public void setExpiresAt(long expiresAt)
    • setPublicKey

      public void setPublicKey(@Nullable PublicKey publicKey)
    • setKeySignature

      public void setKeySignature(byte @Nullable [] keySignature)
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object