Record Class Status
java.lang.Object
java.lang.Record
net.minestom.server.ping.Status
public record Status(Component description, byte @Nullable [] favicon, Status.VersionInfo versionInfo, @Nullable Status.PlayerInfo playerInfo, boolean enforcesSecureChat)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final recordstatic final record -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStatus(Component description, byte @Nullable [] favicon, Status.VersionInfo versionInfo, @Nullable Status.PlayerInfo playerInfo, boolean enforcesSecureChat) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Status.Builderbuilder()static Status.BuilderReturns the value of thedescriptionrecord component.booleanReturns the value of theenforcesSecureChatrecord component.final booleanIndicates whether some other object is "equal to" this one.byte @Nullable []favicon()Returns the value of thefaviconrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theplayerInforecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theversionInforecord component.
-
Field Details
-
FAVICON_CODEC
-
CODEC
-
-
Constructor Details
-
Status
public Status(Component description, byte @Nullable [] favicon, Status.VersionInfo versionInfo, @Nullable @Nullable Status.PlayerInfo playerInfo, boolean enforcesSecureChat) Creates an instance of aStatusrecord class.- Parameters:
description- the value for thedescriptionrecord componentfavicon- the value for thefaviconrecord componentversionInfo- the value for theversionInforecord componentplayerInfo- the value for theplayerInforecord componentenforcesSecureChat- the value for theenforcesSecureChatrecord component
-
-
Method Details
-
builder
-
builder
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
favicon
Returns the value of thefaviconrecord component.- Returns:
- the value of the
faviconrecord component
-
versionInfo
Returns the value of theversionInforecord component.- Returns:
- the value of the
versionInforecord component
-
playerInfo
Returns the value of theplayerInforecord component.- Returns:
- the value of the
playerInforecord component
-
enforcesSecureChat
public boolean enforcesSecureChat()Returns the value of theenforcesSecureChatrecord component.- Returns:
- the value of the
enforcesSecureChatrecord component
-