Record Class ServerDataPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.ServerDataPacket
- All Implemented Interfaces:
SendablePacket, ServerPacket, ServerPacket.Play
public record ServerDataPacket(Component motd, byte @Nullable [] iconBase64)
extends Record
implements ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServerDataPacket(Component motd, byte @Nullable [] iconBase64) Creates an instance of aServerDataPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte @Nullable []Returns the value of theiconBase64record component.motd()Returns the value of themotdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ServerDataPacket
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
motd
Returns the value of themotdrecord component.- Returns:
- the value of the
motdrecord component
-
iconBase64
Returns the value of theiconBase64record component.- Returns:
- the value of the
iconBase64record component
-