Package net.minestom.server.ping
Record Class Status
java.lang.Object
java.lang.Record
net.minestom.server.ping.Status
public record Status(@NotNull Component description, byte @Nullable [] favicon, @NotNull Status.VersionInfo versionInfo, @Nullable Status.PlayerInfo playerInfo, boolean enforcesSecureChat)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final record
static final record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStatus
(@NotNull Component description, byte @Nullable [] favicon, @NotNull Status.VersionInfo versionInfo, @Nullable Status.PlayerInfo playerInfo, boolean enforcesSecureChat) Creates an instance of aStatus
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Status.Builder
builder()
static @NotNull Status.Builder
@NotNull Component
Returns the value of thedescription
record component.boolean
Returns the value of theenforcesSecureChat
record component.final boolean
Indicates whether some other object is "equal to" this one.byte @Nullable []
favicon()
Returns the value of thefavicon
record component.final int
hashCode()
Returns a hash code value for this object.@Nullable Status.PlayerInfo
Returns the value of theplayerInfo
record component.final String
toString()
Returns a string representation of this record class.@NotNull Status.VersionInfo
Returns the value of theversionInfo
record component.
-
Field Details
-
FAVICON_CODEC
-
CODEC
-
-
Constructor Details
-
Status
public Status(@NotNull @NotNull Component description, byte @Nullable [] favicon, @NotNull @NotNull Status.VersionInfo versionInfo, @Nullable @Nullable Status.PlayerInfo playerInfo, boolean enforcesSecureChat) Creates an instance of aStatus
record class.- Parameters:
description
- the value for thedescription
record componentfavicon
- the value for thefavicon
record componentversionInfo
- the value for theversionInfo
record componentplayerInfo
- the value for theplayerInfo
record componentenforcesSecureChat
- the value for theenforcesSecureChat
record component
-
-
Method Details
-
builder
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
favicon
public byte @Nullable [] favicon()Returns the value of thefavicon
record component.- Returns:
- the value of the
favicon
record component
-
versionInfo
Returns the value of theversionInfo
record component.- Returns:
- the value of the
versionInfo
record component
-
playerInfo
Returns the value of theplayerInfo
record component.- Returns:
- the value of the
playerInfo
record component
-
enforcesSecureChat
public boolean enforcesSecureChat()Returns the value of theenforcesSecureChat
record component.- Returns:
- the value of the
enforcesSecureChat
record component
-