Record Class ClientboundMoveVehiclePacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundMoveVehiclePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public record ClientboundMoveVehiclePacket(PositionAndRotation movingTo)
extends Record
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PositionAndRotationThe field for themovingTorecord component.static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundMoveVehiclePacket> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aClientboundMoveVehiclePacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ClientboundMoveVehiclePacketfromEntity(Entity entity) voidhandle(ClientGamePacketListener listener) final inthashCode()Returns a hash code value for this object.movingTo()Returns the value of themovingTorecord component.final StringtoString()Returns a string representation of this record class.type()Methods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
movingTo
The field for themovingTorecord component. -
STREAM_CODEC
-
-
Constructor Details
-
ClientboundMoveVehiclePacket
Creates an instance of aClientboundMoveVehiclePacketrecord class.- Parameters:
movingTo- the value for themovingTorecord component
-
-
Method Details
-
fromEntity
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
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). -
movingTo
Returns the value of themovingTorecord component.- Returns:
- the value of the
movingTorecord component
-