Record Class VehicleMoveC2SPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket
- Record Components:
position-yaw-pitch-onGround-
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public record VehicleMoveC2SPacket(Vec3d position, float yaw, float pitch, boolean onGround)
extends Record
implements Packet<ServerPlayPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/c2s/play/VehicleMoveC2SPacketintermediary net/minecraft/class_2833official aianamed positionintermediary comp_3350official bnamed yawintermediary comp_3351official cnamed pitchintermediary comp_3352official dnamed onGroundintermediary comp_3353official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<PacketByteBuf, VehicleMoveC2SPacket> private final booleanThe field for theonGroundrecord component.private final floatThe field for thepitchrecord component.private final Vec3dThe field for thepositionrecord component.private final floatThe field for theyawrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ServerPlayPacketListener serverPlayPacketListener) final booleanIndicates whether some other object is "equal to" this one.static VehicleMoveC2SPacketfromVehicle(Entity vehicle) final inthashCode()Returns a hash code value for this object.booleanonGround()Returns the value of theonGroundrecord component.floatpitch()Returns the value of thepitchrecord component.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.floatyaw()Returns the value of theyawrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
position
The field for thepositionrecord component. -
yaw
private final float yawThe field for theyawrecord component. -
pitch
private final float pitchThe field for thepitchrecord component. -
onGround
private final boolean onGroundThe field for theonGroundrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_48202Lnet/minecraft/class_2833;field_48202:Lnet/minecraft/class_9139;official aLaia;a:Lze;
-
-
Constructor Details
-
VehicleMoveC2SPacket
-
-
Method Details
-
fromVehicle
- Mappings:
Namespace Name Mixin selector named fromVehicleLnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;fromVehicle(Lnet/minecraft/entity/Entity;)Lnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;intermediary method_65307Lnet/minecraft/class_2833;method_65307(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2833;official aLaia;a(Lbxe;)Laia;
-
getPacketType
- Specified by:
getPacketTypein interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketTypeLnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;intermediary method_65080Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;official aLzo;a()Lzq;
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)Vintermediary method_12278Lnet/minecraft/class_2833;method_12278(Lnet/minecraft/class_2792;)Vofficial aLaia;a(Laha;)V
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
onGround
public boolean onGround()Returns the value of theonGroundrecord component.- Returns:
- the value of the
onGroundrecord component
-