Class PlayerMoveC2SPacket

java.lang.Object
net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket
All Implemented Interfaces:
Packet<ServerPlayPacketListener>
Direct Known Subclasses:
PlayerMoveC2SPacket.Full, PlayerMoveC2SPacket.LookAndOnGround, PlayerMoveC2SPacket.OnGroundOnly, PlayerMoveC2SPacket.PositionAndOnGround

public abstract class PlayerMoveC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket
intermediary net/minecraft/class_2828
official ail
  • Field Details

    • CHANGE_POSITION_FLAG

      private static final int CHANGE_POSITION_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CHANGE_POSITION_FLAG Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;CHANGE_POSITION_FLAG:I
      intermediary field_52336 Lnet/minecraft/class_2828;field_52336:I
      official j Lail;j:I
    • CHANGE_LOOK_FLAG

      private static final int CHANGE_LOOK_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CHANGE_LOOK_FLAG Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;CHANGE_LOOK_FLAG:I
      intermediary field_52337 Lnet/minecraft/class_2828;field_52337:I
      official k Lail;k:I
    • x

      protected final double x
      Mappings:
      Namespace Name Mixin selector
      named x Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;x:D
      intermediary field_12889 Lnet/minecraft/class_2828;field_12889:D
      official a Lail;a:D
    • y

      protected final double y
      Mappings:
      Namespace Name Mixin selector
      named y Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;y:D
      intermediary field_12886 Lnet/minecraft/class_2828;field_12886:D
      official b Lail;b:D
    • z

      protected final double z
      Mappings:
      Namespace Name Mixin selector
      named z Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;z:D
      intermediary field_12884 Lnet/minecraft/class_2828;field_12884:D
      official c Lail;c:D
    • yaw

      protected final float yaw
      Mappings:
      Namespace Name Mixin selector
      named yaw Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;yaw:F
      intermediary field_12887 Lnet/minecraft/class_2828;field_12887:F
      official d Lail;d:F
    • pitch

      protected final float pitch
      Mappings:
      Namespace Name Mixin selector
      named pitch Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;pitch:F
      intermediary field_12885 Lnet/minecraft/class_2828;field_12885:F
      official e Lail;e:F
    • onGround

      protected final boolean onGround
      Mappings:
      Namespace Name Mixin selector
      named onGround Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;onGround:Z
      intermediary field_29179 Lnet/minecraft/class_2828;field_29179:Z
      official f Lail;f:Z
    • horizontalCollision

      protected final boolean horizontalCollision
      Mappings:
      Namespace Name Mixin selector
      named horizontalCollision Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;horizontalCollision:Z
      intermediary field_52335 Lnet/minecraft/class_2828;field_52335:Z
      official g Lail;g:Z
    • changePosition

      protected final boolean changePosition
      Mappings:
      Namespace Name Mixin selector
      named changePosition Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changePosition:Z
      intermediary field_12890 Lnet/minecraft/class_2828;field_12890:Z
      official h Lail;h:Z
    • changeLook

      protected final boolean changeLook
      Mappings:
      Namespace Name Mixin selector
      named changeLook Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changeLook:Z
      intermediary field_12888 Lnet/minecraft/class_2828;field_12888:Z
      official i Lail;i:Z
  • Constructor Details

    • PlayerMoveC2SPacket

      protected PlayerMoveC2SPacket(double x, double y, double z, float yaw, float pitch, boolean onGround, boolean horizontalCollision, boolean changePosition, boolean changeLook)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;<init>(DDDFFZZZZ)V
      intermediary <init> Lnet/minecraft/class_2828;<init>(DDDFFZZZZ)V
      official <init> Lail;<init>(DDDFFZZZZ)V
  • Method Details

    • toFlag

      static int toFlag(boolean changePosition, boolean changeLook)
      Mappings:
      Namespace Name Mixin selector
      named toFlag Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;toFlag(ZZ)I
      intermediary method_61223 Lnet/minecraft/class_2828;method_61223(ZZ)I
      official a Lail;a(ZZ)I
    • changePosition

      static boolean changePosition(int flag)
      Mappings:
      Namespace Name Mixin selector
      named changePosition Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changePosition(I)Z
      intermediary method_61222 Lnet/minecraft/class_2828;method_61222(I)Z
      official a Lail;a(I)Z
    • changeLook

      static boolean changeLook(int flag)
      Mappings:
      Namespace Name Mixin selector
      named changeLook Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changeLook(I)Z
      intermediary method_61224 Lnet/minecraft/class_2828;method_61224(I)Z
      official b Lail;b(I)Z
    • getPacketId

      public abstract PacketType<? extends PlayerMoveC2SPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ServerPlayPacketListener>
      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 Laac;a()Laae;
    • apply

      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/PlayerMoveC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
      intermediary method_12272 Lnet/minecraft/class_2828;method_12272(Lnet/minecraft/class_2792;)V
      official a Lail;a(Lahm;)V
    • getX

      public double getX(double currentX)
      Mappings:
      Namespace Name Mixin selector
      named getX Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getX(D)D
      intermediary method_12269 Lnet/minecraft/class_2828;method_12269(D)D
      official a Lail;a(D)D
    • getY

      public double getY(double currentY)
      Mappings:
      Namespace Name Mixin selector
      named getY Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getY(D)D
      intermediary method_12268 Lnet/minecraft/class_2828;method_12268(D)D
      official b Lail;b(D)D
    • getZ

      public double getZ(double currentZ)
      Mappings:
      Namespace Name Mixin selector
      named getZ Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getZ(D)D
      intermediary method_12274 Lnet/minecraft/class_2828;method_12274(D)D
      official c Lail;c(D)D
    • getYaw

      public float getYaw(float currentYaw)
      Mappings:
      Namespace Name Mixin selector
      named getYaw Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getYaw(F)F
      intermediary method_12271 Lnet/minecraft/class_2828;method_12271(F)F
      official a Lail;a(F)F
    • getPitch

      public float getPitch(float currentPitch)
      Mappings:
      Namespace Name Mixin selector
      named getPitch Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getPitch(F)F
      intermediary method_12270 Lnet/minecraft/class_2828;method_12270(F)F
      official b Lail;b(F)F
    • isOnGround

      public boolean isOnGround()
      Mappings:
      Namespace Name Mixin selector
      named isOnGround Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;isOnGround()Z
      intermediary method_12273 Lnet/minecraft/class_2828;method_12273()Z
      official b Lail;b()Z
    • horizontalCollision

      public boolean horizontalCollision()
      Mappings:
      Namespace Name Mixin selector
      named horizontalCollision Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;horizontalCollision()Z
      intermediary method_61225 Lnet/minecraft/class_2828;method_61225()Z
      official e Lail;e()Z
    • changesPosition

      public boolean changesPosition()
      Mappings:
      Namespace Name Mixin selector
      named changesPosition Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changesPosition()Z
      intermediary method_36171 Lnet/minecraft/class_2828;method_36171()Z
      official f Lail;f()Z
    • changesLook

      public boolean changesLook()
      Mappings:
      Namespace Name Mixin selector
      named changesLook Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changesLook()Z
      intermediary method_36172 Lnet/minecraft/class_2828;method_36172()Z
      official g Lail;g()Z