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/VehicleMoveS2CPacket
intermediary net/minecraft/class_2692
official adi
named position
intermediary comp_3347
official b
named yaw
intermediary comp_3348
official c
named pitch
intermediary comp_3349
official d
  • Field Details Link icon

    • position Link icon

      private final Vec3d position
      The field for the position record component.
    • yaw Link icon

      private final float yaw
      The field for the yaw record component.
    • pitch Link icon

      private final float pitch
      The field for the pitch record component.
    • CODEC Link icon

      public static final PacketCodec<PacketByteBuf,VehicleMoveS2CPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/VehicleMoveS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47943 Lnet/minecraft/class_2692;field_47943:Lnet/minecraft/class_9139;
      official a Ladi;a:Lyn;
  • Constructor Details Link icon

    • VehicleMoveS2CPacket Link icon

      public VehicleMoveS2CPacket(Vec3d vec3d, float float2, float float3)
  • Method Details Link icon

    • fromVehicle Link icon

      public static VehicleMoveS2CPacket fromVehicle(Entity vehicle)
      Mappings:
      Namespace Name Mixin selector
      named fromVehicle Lnet/minecraft/network/packet/s2c/play/VehicleMoveS2CPacket;fromVehicle(Lnet/minecraft/entity/Entity;)Lnet/minecraft/network/packet/s2c/play/VehicleMoveS2CPacket;
      intermediary method_65305 Lnet/minecraft/class_2692;method_65305(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2692;
      official a Ladi;a(Lbum;)Ladi;
    • getPacketType Link icon

      public PacketType<VehicleMoveS2CPacket> getPacketType()
      Specified by:
      getPacketType in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketType Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;
      intermediary method_65080 Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;
      official a Lyw;a()Lyy;
    • apply Link icon

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/s2c/play/VehicleMoveS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_11672 Lnet/minecraft/class_2692;method_11672(Lnet/minecraft/class_2602;)V
      official a Ladi;a(Labl;)V
    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • position Link icon

      public Vec3d position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • yaw Link icon

      public float yaw()
      Returns the value of the yaw record component.
      Returns:
      the value of the yaw record component
    • pitch Link icon

      public float pitch()
      Returns the value of the pitch record component.
      Returns:
      the value of the pitch record component