Record Class ClientSetTestBlockPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientSetTestBlockPacket
- All Implemented Interfaces:
ClientPacket
public record ClientSetTestBlockPacket(@NotNull Point blockPosition, @NotNull ClientSetTestBlockPacket.TestBlockMode mode, @NotNull String message)
extends Record
implements ClientPacket
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientSetTestBlockPacket
(@NotNull Point blockPosition, @NotNull ClientSetTestBlockPacket.TestBlockMode mode, @NotNull String message) Creates an instance of aClientSetTestBlockPacket
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Point
Returns the value of theblockPosition
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull String
message()
Returns the value of themessage
record component.mode()
Returns the value of themode
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientSetTestBlockPacket
public ClientSetTestBlockPacket(@NotNull @NotNull Point blockPosition, @NotNull @NotNull ClientSetTestBlockPacket.TestBlockMode mode, @NotNull @NotNull String message) Creates an instance of aClientSetTestBlockPacket
record class.- Parameters:
blockPosition
- the value for theblockPosition
record componentmode
- the value for themode
record componentmessage
- the value for themessage
record 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 theblockPosition
record component.- Returns:
- the value of the
blockPosition
record component
-
mode
Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-