Class PlayerMoveC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
- Direct Known Subclasses:
PlayerMoveC2SPacket.Both
,PlayerMoveC2SPacket.LookOnly
,PlayerMoveC2SPacket.PositionOnly
public class PlayerMoveC2SPacket extends Object implements Packet<ServerPlayPacketListener>
- Mappings:
Namespace Name official tl
intermediary net/minecraft/class_2828
named net/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlayerMoveC2SPacket.Both
static class
PlayerMoveC2SPacket.LookOnly
static class
PlayerMoveC2SPacket.PositionOnly
-
Field Summary
Fields Modifier and Type Field Description protected boolean
changeLook
protected boolean
changePosition
protected boolean
onGround
protected float
pitch
protected double
x
protected double
y
protected float
yaw
protected double
z
-
Constructor Summary
Constructors Constructor Description PlayerMoveC2SPacket()
PlayerMoveC2SPacket(boolean onGround)
-
Method Summary
Modifier and Type Method Description void
apply(ServerPlayPacketListener serverPlayPacketListener)
float
getPitch(float currentPitch)
double
getX(double currentX)
double
getY(double currentY)
float
getYaw(float currentYaw)
double
getZ(double currentZ)
boolean
isOnGround()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
x
protected double x- Mappings:
Namespace Name Mixin selector official a
Ltl;a:D
intermediary field_12889
Lnet/minecraft/class_2828;field_12889:D
named x
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;x:D
-
y
protected double y- Mappings:
Namespace Name Mixin selector official b
Ltl;b:D
intermediary field_12886
Lnet/minecraft/class_2828;field_12886:D
named y
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;y:D
-
z
protected double z- Mappings:
Namespace Name Mixin selector official c
Ltl;c:D
intermediary field_12884
Lnet/minecraft/class_2828;field_12884:D
named z
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;z:D
-
yaw
protected float yaw- Mappings:
Namespace Name Mixin selector official d
Ltl;d:F
intermediary field_12887
Lnet/minecraft/class_2828;field_12887:F
named yaw
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;yaw:F
-
pitch
protected float pitch- Mappings:
Namespace Name Mixin selector official e
Ltl;e:F
intermediary field_12885
Lnet/minecraft/class_2828;field_12885:F
named pitch
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;pitch:F
-
onGround
protected boolean onGround- Mappings:
Namespace Name Mixin selector official f
Ltl;f:Z
intermediary field_12891
Lnet/minecraft/class_2828;field_12891:Z
named onGround
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;onGround:Z
-
changePosition
protected boolean changePosition- Mappings:
Namespace Name Mixin selector official g
Ltl;g:Z
intermediary field_12890
Lnet/minecraft/class_2828;field_12890:Z
named changePosition
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changePosition:Z
-
changeLook
protected boolean changeLook- Mappings:
Namespace Name Mixin selector official h
Ltl;h:Z
intermediary field_12888
Lnet/minecraft/class_2828;field_12888:Z
named changeLook
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;changeLook:Z
-
-
Constructor Details
-
PlayerMoveC2SPacket
public PlayerMoveC2SPacket() -
PlayerMoveC2SPacket
- Mappings:
Namespace Name Mixin selector official <init>
Ltl;<init>(Z)V
intermediary <init>
Lnet/minecraft/class_2828;<init>(Z)V
named <init>
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;<init>(Z)V
-
-
Method Details
-
apply
- Specified by:
apply
in interfacePacket<ServerPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Ltl;a(Lss;)V
intermediary method_12272
Lnet/minecraft/class_2828;method_12272(Lnet/minecraft/class_2792;)V
named apply
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
-
read
- Specified by:
read
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lpa;a(Lnw;)V
intermediary method_11053
Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
named read
Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
write
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lpa;b(Lnw;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
getX
public double getX(double currentX)- Mappings:
Namespace Name Mixin selector official a
Ltl;a(D)D
intermediary method_12269
Lnet/minecraft/class_2828;method_12269(D)D
named getX
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getX(D)D
-
getY
public double getY(double currentY)- Mappings:
Namespace Name Mixin selector official b
Ltl;b(D)D
intermediary method_12268
Lnet/minecraft/class_2828;method_12268(D)D
named getY
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getY(D)D
-
getZ
public double getZ(double currentZ)- Mappings:
Namespace Name Mixin selector official c
Ltl;c(D)D
intermediary method_12274
Lnet/minecraft/class_2828;method_12274(D)D
named getZ
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getZ(D)D
-
getYaw
public float getYaw(float currentYaw)- Mappings:
Namespace Name Mixin selector official a
Ltl;a(F)F
intermediary method_12271
Lnet/minecraft/class_2828;method_12271(F)F
named getYaw
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getYaw(F)F
-
getPitch
public float getPitch(float currentPitch)- Mappings:
Namespace Name Mixin selector official b
Ltl;b(F)F
intermediary method_12270
Lnet/minecraft/class_2828;method_12270(F)F
named getPitch
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;getPitch(F)F
-
isOnGround
public boolean isOnGround()- Mappings:
Namespace Name Mixin selector official b
Ltl;b()Z
intermediary method_12273
Lnet/minecraft/class_2828;method_12273()Z
named isOnGround
Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;isOnGround()Z
-