Record Class ClientPlayerDiggingPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientPlayerDiggingPacket
- All Implemented Interfaces:
ClientPacket
public record ClientPlayerDiggingPacket(ClientPlayerDiggingPacket.Status status, Point blockPosition, BlockFace blockFace, int sequence)
extends Record
implements ClientPacket
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientPlayerDiggingPacket(ClientPlayerDiggingPacket.Status status, Point blockPosition, BlockFace blockFace, int sequence) Creates an instance of aClientPlayerDiggingPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockFacerecord component.Returns the value of theblockPositionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intsequence()Returns the value of thesequencerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientPlayerDiggingPacket
public ClientPlayerDiggingPacket(ClientPlayerDiggingPacket.Status status, Point blockPosition, BlockFace blockFace, int sequence) Creates an instance of aClientPlayerDiggingPacketrecord class.- Parameters:
status- the value for thestatusrecord componentblockPosition- the value for theblockPositionrecord componentblockFace- the value for theblockFacerecord componentsequence- the value for thesequencerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
blockPosition
Returns the value of theblockPositionrecord component.- Returns:
- the value of the
blockPositionrecord component
-
blockFace
Returns the value of theblockFacerecord component.- Returns:
- the value of the
blockFacerecord component
-
sequence
public int sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-