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
official xy
intermediary net/minecraft/class_2743
named net/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket
  • Field Details

    • id

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

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

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

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

    • EntityVelocityUpdateS2CPacket

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

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

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

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Luo;a(Lsf;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lxy;a(Lur;)V
      intermediary method_11817 Lnet/minecraft/class_2743;method_11817(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getId

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

      public int getVelocityX()
      Mappings:
      Namespace Name Mixin selector
      official c Lxy;c()I
      intermediary method_11815 Lnet/minecraft/class_2743;method_11815()I
      named getVelocityX Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;getVelocityX()I
    • getVelocityY

      public int getVelocityY()
      Mappings:
      Namespace Name Mixin selector
      official d Lxy;d()I
      intermediary method_11816 Lnet/minecraft/class_2743;method_11816()I
      named getVelocityY Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;getVelocityY()I
    • getVelocityZ

      public int getVelocityZ()
      Mappings:
      Namespace Name Mixin selector
      official e Lxy;e()I
      intermediary method_11819 Lnet/minecraft/class_2743;method_11819()I
      named getVelocityZ Lnet/minecraft/network/packet/s2c/play/EntityVelocityUpdateS2CPacket;getVelocityZ()I