Record Class ClientSetTestBlockPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientSetTestBlockPacket
- All Implemented Interfaces:
ClientPacket
public record ClientSetTestBlockPacket(Point blockPosition, ClientSetTestBlockPacket.TestBlockMode mode, String message)
extends Record
implements ClientPacket
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientSetTestBlockPacket(Point blockPosition, ClientSetTestBlockPacket.TestBlockMode mode, String message) Creates an instance of aClientSetTestBlockPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.message()Returns the value of themessagerecord component.mode()Returns the value of themoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientSetTestBlockPacket
public ClientSetTestBlockPacket(Point blockPosition, ClientSetTestBlockPacket.TestBlockMode mode, String message) Creates an instance of aClientSetTestBlockPacketrecord class.- Parameters:
blockPosition- the value for theblockPositionrecord componentmode- the value for themoderecord componentmessage- the value for themessagerecord 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). -
blockPosition
Returns the value of theblockPositionrecord component.- Returns:
- the value of the
blockPositionrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-