Record Class ClientUpdateCommandBlockMinecartPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientUpdateCommandBlockMinecartPacket
- All Implemented Interfaces:
ClientPacket
public record ClientUpdateCommandBlockMinecartPacket(int entityId, String command, boolean trackOutput)
extends Record
implements ClientPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkBuffer.Type<ClientUpdateCommandBlockMinecartPacket> -
Constructor Summary
ConstructorsConstructorDescriptionClientUpdateCommandBlockMinecartPacket(int entityId, String command, boolean trackOutput) Creates an instance of aClientUpdateCommandBlockMinecartPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the value of thecommandrecord component.intentityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetrackOutputrecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientUpdateCommandBlockMinecartPacket
Creates an instance of aClientUpdateCommandBlockMinecartPacketrecord class.- Parameters:
entityId- the value for theentityIdrecord componentcommand- the value for thecommandrecord componenttrackOutput- the value for thetrackOutputrecord 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. -
entityId
public int entityId()Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-
trackOutput
public boolean trackOutput()Returns the value of thetrackOutputrecord component.- Returns:
- the value of the
trackOutputrecord component
-