Record Class ClientUpdateCommandBlockPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientUpdateCommandBlockPacket
- All Implemented Interfaces:
ClientPacket
public record ClientUpdateCommandBlockPacket(Point blockPosition, String command, ClientUpdateCommandBlockPacket.Mode mode, byte flags)
extends Record
implements ClientPacket
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientUpdateCommandBlockPacket(Point blockPosition, String command, ClientUpdateCommandBlockPacket.Mode mode, byte flags) Creates an instance of aClientUpdateCommandBlockPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockPositionrecord component.command()Returns the value of thecommandrecord component.final booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientUpdateCommandBlockPacket
public ClientUpdateCommandBlockPacket(Point blockPosition, String command, ClientUpdateCommandBlockPacket.Mode mode, byte flags) Creates an instance of aClientUpdateCommandBlockPacketrecord class.- Parameters:
blockPosition- the value for theblockPositionrecord componentcommand- the value for thecommandrecord componentmode- the value for themoderecord componentflags- the value for theflagsrecord 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. -
blockPosition
Returns the value of theblockPositionrecord component.- Returns:
- the value of the
blockPositionrecord component
-
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-