net.minecraft.network.packet.c2s.play

public abstract class PlayerMoveC2SPacket

implements Packet<ServerPlayPacketListener>

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket
net.minecraft.class_2828
net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket

Field summary

Modifier and TypeField
private static final int
FLAG_ON_GROUND
field_52336
CHANGE_POSITION_FLAG
private static final int
FLAG_HORIZONTAL_COLLISION
field_52337
CHANGE_LOOK_FLAG
protected final double
x
field_12889
x
protected final double
y
field_12886
y
protected final double
z
field_12884
z
protected final float
yRot
field_12887
yaw
protected final float
xRot
field_12885
pitch
protected final boolean
onGround
field_29179
onGround
protected final boolean
horizontalCollision
field_52335
horizontalCollision
protected final boolean
hasPos
field_12890
changePosition
protected final boolean
hasRot
field_12888
changeLook

Constructor summary

ModifierConstructor
protected (double x, double y, double z, float yaw, float pitch, boolean onGround, boolean horizontalCollision, boolean changePosition, boolean changeLook)

Method summary

Modifier and TypeMethod
private static int
packFlags(boolean onGround, boolean horizontalCollision)
method_61223(boolean arg0, boolean arg1)
toFlag(boolean changePosition, boolean changeLook)
private static boolean
unpackOnGround(int flags)
method_61222(int arg0)
changePosition(int flag)
private static boolean
unpackHorizontalCollision(int flags)
method_61224(int arg0)
changeLook(int flag)
public abstract PacketType<? extends PlayerMoveC2SPacket>
type()
method_65080()
getPacketType()
public void
handle(ServerGamePacketListener listener)
method_12272(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
public double
getX(double fallback)
method_12269(double arg0)
getX(double currentX)
public double
getY(double fallback)
method_12268(double arg0)
getY(double currentY)
public double
getZ(double fallback)
method_12274(double arg0)
getZ(double currentZ)
public float
getYRot(float fallback)
method_12271(float arg0)
getYaw(float currentYaw)
public float
getXRot(float fallback)
method_12270(float arg0)
getPitch(float currentPitch)
public boolean
isOnGround()
method_12273()
isOnGround()
public boolean
horizontalCollision()
method_61225()
horizontalCollision()
public boolean
hasPosition()
method_36171()
changesPosition()
public boolean
hasRotation()
method_36172()
changesLook()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)