Record Class PacketParser.Client
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.PacketParser.Client
- All Implemented Interfaces:
PacketParser<ClientPacket>
- Enclosing interface:
PacketParser<T>
public static record PacketParser.Client(PacketRegistry<ClientPacket> handshake, PacketRegistry<ClientPacket> status, PacketRegistry<ClientPacket> login, PacketRegistry<ClientPacket> configuration, PacketRegistry<ClientPacket> play)
extends Record
implements PacketParser<ClientPacket>
-
Nested Class Summary
Nested classes/interfaces inherited from interface PacketParser
PacketParser.Client, PacketParser.Server -
Constructor Summary
ConstructorsConstructorDescriptionClient()Client(PacketRegistry<ClientPacket> handshake, PacketRegistry<ClientPacket> status, PacketRegistry<ClientPacket> login, PacketRegistry<ClientPacket> configuration, PacketRegistry<ClientPacket> play) Creates an instance of aClientrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandshakerecord component.final inthashCode()Returns a hash code value for this object.login()Returns the value of theloginrecord component.play()Returns the value of theplayrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PacketParser
parse, stateRegistry
-
Constructor Details
-
Client
public Client() -
Client
public Client(PacketRegistry<ClientPacket> handshake, PacketRegistry<ClientPacket> status, PacketRegistry<ClientPacket> login, PacketRegistry<ClientPacket> configuration, PacketRegistry<ClientPacket> play) Creates an instance of aClientrecord class.- Parameters:
handshake- the value for thehandshakerecord componentstatus- the value for thestatusrecord componentlogin- the value for theloginrecord componentconfiguration- the value for theconfigurationrecord componentplay- the value for theplayrecord component
-
-
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). -
handshake
Returns the value of thehandshakerecord component.- Specified by:
handshakein interfacePacketParser<ClientPacket>- Returns:
- the value of the
handshakerecord component
-
status
Returns the value of thestatusrecord component.- Specified by:
statusin interfacePacketParser<ClientPacket>- Returns:
- the value of the
statusrecord component
-
login
Returns the value of theloginrecord component.- Specified by:
loginin interfacePacketParser<ClientPacket>- Returns:
- the value of the
loginrecord component
-
configuration
Returns the value of theconfigurationrecord component.- Specified by:
configurationin interfacePacketParser<ClientPacket>- Returns:
- the value of the
configurationrecord component
-
play
Returns the value of theplayrecord component.- Specified by:
playin interfacePacketParser<ClientPacket>- Returns:
- the value of the
playrecord component
-