Class EntityVelocityUpdateS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.EntityVelocityUpdateS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class EntityVelocityUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Sent when a server modifies an entity's velocity.

If the entity is a player, ExplosionS2CPacket can be used as a replacement.

Mappings:
Namespace Name
named net/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket
intermediary net/minecraft/class_2743
official afa
  • Field Details

    • CODEC

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47981 Lnet/minecraft/class_2743;field_47981:Lnet/minecraft/class_9139;
      official a Lafa;a:Lyw;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;id:I
      intermediary field_12564 Lnet/minecraft/class_2743;field_12564:I
      official b Lafa;b:I
    • velocityX

      private final int velocityX
      Mappings:
      Namespace Name Mixin selector
      named velocityX Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;velocityX:I
      intermediary field_12563 Lnet/minecraft/class_2743;field_12563:I
      official c Lafa;c:I
    • velocityY

      private final int velocityY
      Mappings:
      Namespace Name Mixin selector
      named velocityY Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;velocityY:I
      intermediary field_12562 Lnet/minecraft/class_2743;field_12562:I
      official d Lafa;d:I
    • velocityZ

      private final int velocityZ
      Mappings:
      Namespace Name Mixin selector
      named velocityZ Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;velocityZ:I
      intermediary field_12561 Lnet/minecraft/class_2743;field_12561:I
      official e Lafa;e:I
  • Constructor Details

    • EntityVelocityUpdateS2CPacket

      public EntityVelocityUpdateS2CPacket(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;<init>(Lnet/minecraft/entity/Entity;)V
      intermediary <init> Lnet/minecraft/class_2743;<init>(Lnet/minecraft/class_1297;)V
      official <init> Lafa;<init>(Lbsq;)V
    • EntityVelocityUpdateS2CPacket

      public EntityVelocityUpdateS2CPacket(int id, Vec3d velocity)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;<init>(ILnet/minecraft/util/math/Vec3d;)V
      intermediary <init> Lnet/minecraft/class_2743;<init>(ILnet/minecraft/class_243;)V
      official <init> Lafa;<init>(ILeww;)V
    • EntityVelocityUpdateS2CPacket

      private EntityVelocityUpdateS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary <init> Lnet/minecraft/class_2743;<init>(Lnet/minecraft/class_2540;)V
      official <init> Lafa;<init>(Lvv;)V
  • Method Details

    • write

      private void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_55928 Lnet/minecraft/class_2743;method_55928(Lnet/minecraft/class_2540;)V
      official a Lafa;a(Lvv;)V
    • getPacketId

      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Lzf;a()Lzh;
    • apply

      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/EntityVelocityUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_11817 Lnet/minecraft/class_2743;method_11817(Lnet/minecraft/class_2602;)V
      official a Lafa;a(Labt;)V
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;getId()I
      intermediary method_11818 Lnet/minecraft/class_2743;method_11818()I
      official b Lafa;b()I
    • getVelocityX

      public double getVelocityX()
      Mappings:
      Namespace Name Mixin selector
      named getVelocityX Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;getVelocityX()D
      intermediary method_11815 Lnet/minecraft/class_2743;method_11815()D
      official e Lafa;e()D
    • getVelocityY

      public double getVelocityY()
      Mappings:
      Namespace Name Mixin selector
      named getVelocityY Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;getVelocityY()D
      intermediary method_11816 Lnet/minecraft/class_2743;method_11816()D
      official f Lafa;f()D
    • getVelocityZ

      public double getVelocityZ()
      Mappings:
      Namespace Name Mixin selector
      named getVelocityZ Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;getVelocityZ()D
      intermediary method_11819 Lnet/minecraft/class_2743;method_11819()D
      official g Lafa;g()D