Record Class VehicleMoveS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.VehicleMoveS2CPacket
- Record Components:
position-yaw-pitch-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record VehicleMoveS2CPacket(Vec3d position, float yaw, float pitch)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/VehicleMoveS2CPacketintermediary net/minecraft/class_2692official aebnamed positionintermediary comp_3347official bnamed yawintermediary comp_3348official cnamed pitchintermediary comp_3349official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<PacketByteBuf, VehicleMoveS2CPacket> 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(ClientPlayPacketListener clientPlayPacketListener) final booleanIndicates whether some other object is "equal to" this one.static VehicleMoveS2CPacketfromVehicle(Entity vehicle) final inthashCode()Returns a hash code value for this object.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. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/s2c/play/VehicleMoveS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_47943Lnet/minecraft/class_2692;field_47943:Lnet/minecraft/class_9139;official aLaeb;a:Lze;
-
-
Constructor Details
-
VehicleMoveS2CPacket
-
-
Method Details
-
fromVehicle
- Mappings:
Namespace Name Mixin selector named fromVehicleLnet/minecraft/network/packet/s2c/play/VehicleMoveS2CPacket;fromVehicle(Lnet/minecraft/entity/Entity;)Lnet/minecraft/network/packet/s2c/play/VehicleMoveS2CPacket;intermediary method_65305Lnet/minecraft/class_2692;method_65305(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2692;official aLaeb;a(Lbxe;)Laeb;
-
getPacketType
- Specified by:
getPacketTypein interfacePacket<ClientPlayPacketListener>- 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<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/s2c/play/VehicleMoveS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)Vintermediary method_11672Lnet/minecraft/class_2692;method_11672(Lnet/minecraft/class_2602;)Vofficial aLaeb;a(Lacf;)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
-