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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetX(double p_186997_1_) floatgetXRot(float p_186998_1_) doublegetY(double p_186996_1_) floatgetYRot(float p_186999_1_) doublegetZ(double p_187000_1_) voidhandle(IServerPlayNetHandler p_148833_1_) booleanvoidread(PacketBuffer p_148837_1_) voidwrite(PacketBuffer p_148840_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
handlein interfaceIPacket<IServerPlayNetHandler>
-
read
- Specified by:
readin interfaceIPacket<IServerPlayNetHandler>- Throws:
IOException
-
write
- Specified by:
writein 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()
-