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/VehicleMoveC2SPacket
intermediary net/minecraft/class_2833
official ahg
named position
intermediary comp_3350
official b
named yaw
intermediary comp_3351
official c
named pitch
intermediary comp_3352
official d
named onGround
intermediary comp_3353
official e
  • 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.
    • onGround Link icon

      private final boolean onGround
      The field for the onGround record component.
    • CODEC Link icon

      public static final PacketCodec<PacketByteBuf,VehicleMoveC2SPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48202 Lnet/minecraft/class_2833;field_48202:Lnet/minecraft/class_9139;
      official a Lahg;a:Lyn;
  • Constructor Details Link icon

    • VehicleMoveC2SPacket Link icon

      public VehicleMoveC2SPacket(Vec3d vec3d, float float2, float float3, boolean bool)
  • Method Details Link icon

    • fromVehicle Link icon

      public static VehicleMoveC2SPacket fromVehicle(Entity vehicle)
      Mappings:
      Namespace Name Mixin selector
      named fromVehicle Lnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;fromVehicle(Lnet/minecraft/entity/Entity;)Lnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;
      intermediary method_65307 Lnet/minecraft/class_2833;method_65307(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2833;
      official a Lahg;a(Lbum;)Lahg;
    • getPacketType Link icon

      public PacketType<VehicleMoveC2SPacket> getPacketType()
      Specified by:
      getPacketType in interface Packet<ServerPlayPacketListener>
      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(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
      intermediary method_12278 Lnet/minecraft/class_2833;method_12278(Lnet/minecraft/class_2792;)V
      official a Lahg;a(Lagg;)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
    • onGround Link icon

      public boolean onGround()
      Returns the value of the onGround record component.
      Returns:
      the value of the onGround record component