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/PlayerMoveC2SPacketintermediary net/minecraft/class_2828official aje
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprotected final booleanprotected final booleanprotected final booleanprotected final booleanprotected final floatprotected final doubleprotected final doubleprotected final floatprotected final double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPlayerMoveC2SPacket(double x, double y, double z, float yaw, float pitch, boolean onGround, boolean horizontalCollision, boolean changePosition, boolean changeLook) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ServerPlayPacketListener serverPlayPacketListener) (package private) static booleanchangeLook(int flag) (package private) static booleanchangePosition(int flag) booleanbooleanabstract PacketType<? extends PlayerMoveC2SPacket> floatgetPitch(float currentPitch) doublegetX(double currentX) doublegetY(double currentY) floatgetYaw(float currentYaw) doublegetZ(double currentZ) booleanboolean(package private) static inttoFlag(boolean changePosition, boolean changeLook) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
CHANGE_POSITION_FLAG
private static final int CHANGE_POSITION_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named CHANGE_POSITION_FLAGLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;CHANGE_POSITION_FLAG:Iintermediary field_52336Lnet/minecraft/class_2828;field_52336:Iofficial jLaje;j:I
-
CHANGE_LOOK_FLAG
private static final int CHANGE_LOOK_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named CHANGE_LOOK_FLAGLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;CHANGE_LOOK_FLAG:Iintermediary field_52337Lnet/minecraft/class_2828;field_52337:Iofficial kLaje;k:I
-
x
protected final double x- Mappings:
Namespace Name Mixin selector named xLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;x:Dintermediary field_12889Lnet/minecraft/class_2828;field_12889:Dofficial aLaje;a:D
-
y
protected final double y- Mappings:
Namespace Name Mixin selector named yLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;y:Dintermediary field_12886Lnet/minecraft/class_2828;field_12886:Dofficial bLaje;b:D
-
z
protected final double z- Mappings:
Namespace Name Mixin selector named zLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;z:Dintermediary field_12884Lnet/minecraft/class_2828;field_12884:Dofficial cLaje;c:D
-
yaw
protected final float yaw- Mappings:
Namespace Name Mixin selector named yawLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;yaw:Fintermediary field_12887Lnet/minecraft/class_2828;field_12887:Fofficial dLaje;d:F
-
pitch
protected final float pitch- Mappings:
Namespace Name Mixin selector named pitchLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;pitch:Fintermediary field_12885Lnet/minecraft/class_2828;field_12885:Fofficial eLaje;e:F
-
onGround
protected final boolean onGround- Mappings:
Namespace Name Mixin selector named onGroundLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;onGround:Zintermediary field_29179Lnet/minecraft/class_2828;field_29179:Zofficial fLaje;f:Z
-
horizontalCollision
protected final boolean horizontalCollision- Mappings:
Namespace Name Mixin selector named horizontalCollisionLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;horizontalCollision:Zintermediary field_52335Lnet/minecraft/class_2828;field_52335:Zofficial gLaje;g:Z
-
changePosition
protected final boolean changePosition- Mappings:
Namespace Name Mixin selector named changePositionLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changePosition:Zintermediary field_12890Lnet/minecraft/class_2828;field_12890:Zofficial hLaje;h:Z
-
changeLook
protected final boolean changeLook- Mappings:
Namespace Name Mixin selector named changeLookLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changeLook:Zintermediary field_12888Lnet/minecraft/class_2828;field_12888:Zofficial iLaje;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)Vintermediary <init>Lnet/minecraft/class_2828;<init>(DDDFFZZZZ)Vofficial <init>Laje;<init>(DDDFFZZZZ)V
-
-
Method Details
-
toFlag
static int toFlag(boolean changePosition, boolean changeLook) - Mappings:
Namespace Name Mixin selector named toFlagLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;toFlag(ZZ)Iintermediary method_61223Lnet/minecraft/class_2828;method_61223(ZZ)Iofficial aLaje;a(ZZ)I
-
changePosition
static boolean changePosition(int flag) - Mappings:
Namespace Name Mixin selector named changePositionLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changePosition(I)Zintermediary method_61222Lnet/minecraft/class_2828;method_61222(I)Zofficial aLaje;a(I)Z
-
changeLook
static boolean changeLook(int flag) - Mappings:
Namespace Name Mixin selector named changeLookLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changeLook(I)Zintermediary method_61224Lnet/minecraft/class_2828;method_61224(I)Zofficial bLaje;b(I)Z
-
getPacketType
- Specified by:
getPacketTypein interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketTypeLnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;intermediary method_65080Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;official aLaam;a()Laao;
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)Vintermediary method_12272Lnet/minecraft/class_2828;method_12272(Lnet/minecraft/class_2792;)Vofficial aLaje;a(Laie;)V
-
getX
public double getX(double currentX) - Mappings:
Namespace Name Mixin selector named getXLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getX(D)Dintermediary method_12269Lnet/minecraft/class_2828;method_12269(D)Dofficial aLaje;a(D)D
-
getY
public double getY(double currentY) - Mappings:
Namespace Name Mixin selector named getYLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getY(D)Dintermediary method_12268Lnet/minecraft/class_2828;method_12268(D)Dofficial bLaje;b(D)D
-
getZ
public double getZ(double currentZ) - Mappings:
Namespace Name Mixin selector named getZLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getZ(D)Dintermediary method_12274Lnet/minecraft/class_2828;method_12274(D)Dofficial cLaje;c(D)D
-
getYaw
public float getYaw(float currentYaw) - Mappings:
Namespace Name Mixin selector named getYawLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getYaw(F)Fintermediary method_12271Lnet/minecraft/class_2828;method_12271(F)Fofficial aLaje;a(F)F
-
getPitch
public float getPitch(float currentPitch) - Mappings:
Namespace Name Mixin selector named getPitchLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getPitch(F)Fintermediary method_12270Lnet/minecraft/class_2828;method_12270(F)Fofficial bLaje;b(F)F
-
isOnGround
public boolean isOnGround()- Mappings:
Namespace Name Mixin selector named isOnGroundLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;isOnGround()Zintermediary method_12273Lnet/minecraft/class_2828;method_12273()Zofficial bLaje;b()Z
-
horizontalCollision
public boolean horizontalCollision()- Mappings:
Namespace Name Mixin selector named horizontalCollisionLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;horizontalCollision()Zintermediary method_61225Lnet/minecraft/class_2828;method_61225()Zofficial eLaje;e()Z
-
changesPosition
public boolean changesPosition()- Mappings:
Namespace Name Mixin selector named changesPositionLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changesPosition()Zintermediary method_36171Lnet/minecraft/class_2828;method_36171()Zofficial fLaje;f()Z
-
changesLook
public boolean changesLook()- Mappings:
Namespace Name Mixin selector named changesLookLnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changesLook()Zintermediary method_36172Lnet/minecraft/class_2828;method_36172()Zofficial gLaje;g()Z
-