Class CPlayerPacket
java.lang.Object
net.minecraft.network.play.client.CPlayerPacket
- All Implemented Interfaces:
IPacket<IServerPlayNetHandler>
- Direct Known Subclasses:
CPlayerPacket.PositionPacket
,CPlayerPacket.PositionRotationPacket
,CPlayerPacket.RotationPacket
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getX
(double p_186997_1_) float
getXRot
(float p_186998_1_) double
getY
(double p_186996_1_) float
getYRot
(float p_186999_1_) double
getZ
(double p_187000_1_) void
handle
(IServerPlayNetHandler p_148833_1_) boolean
void
read
(PacketBuffer p_148837_1_) void
write
(PacketBuffer p_148840_1_) 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.IPacket
isSkippable
-
Field Details
-
x
protected double x -
y
protected double y -
z
protected double z -
yRot
protected float yRot -
xRot
protected float xRot -
onGround
protected boolean onGround -
hasPos
protected boolean hasPos -
hasRot
protected boolean hasRot
-
-
Constructor Details
-
CPlayerPacket
public CPlayerPacket() -
CPlayerPacket
public CPlayerPacket(boolean p_i46875_1_)
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceIPacket<IServerPlayNetHandler>
-
read
- Specified by:
read
in interfaceIPacket<IServerPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IServerPlayNetHandler>
- Throws:
IOException
-
getX
public double getX(double p_186997_1_) -
getY
public double getY(double p_186996_1_) -
getZ
public double getZ(double p_187000_1_) -
getYRot
public float getYRot(float p_186999_1_) -
getXRot
public float getXRot(float p_186998_1_) -
isOnGround
public boolean isOnGround()
-