Record Class ClientVehicleMovePacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientVehicleMovePacket
- All Implemented Interfaces:
ClientPacket
public record ClientVehicleMovePacket(Pos position, boolean onGround)
extends Record
implements ClientPacket
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientVehicleMovePacket(Pos position, boolean onGround) Creates an instance of aClientVehicleMovePacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanonGround()Returns the value of theonGroundrecord component.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientVehicleMovePacket
Creates an instance of aClientVehicleMovePacketrecord class.- Parameters:
position- the value for thepositionrecord componentonGround- the value for theonGroundrecord 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. -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
onGround
public boolean onGround()Returns the value of theonGroundrecord component.- Returns:
- the value of the
onGroundrecord component
-