Class ServerboundMovePlayerPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundMovePlayerPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
- Direct Known Subclasses:
ServerboundMovePlayerPacket.Pos
,ServerboundMovePlayerPacket.PosRot
,ServerboundMovePlayerPacket.Rot
,ServerboundMovePlayerPacket.StatusOnly
public abstract class ServerboundMovePlayerPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ServerboundMovePlayerPacket
(double x, double y, double z, float yRot, float xRot, boolean onGround, boolean hasPos, boolean hasRot) -
Method Summary
Modifier and TypeMethodDescriptiondouble
getX
(double defaultValue) float
getXRot
(float defaultValue) double
getY
(double defaultValue) float
getYRot
(float defaultValue) double
getZ
(double defaultValue) void
handle
(ServerGamePacketListener handler) Passes this Packet on to the NetHandler for processing.boolean
boolean
boolean
abstract PacketType
<? extends ServerboundMovePlayerPacket> type()
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.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
x
protected final double x -
y
protected final double y -
z
protected final double z -
yRot
protected final float yRot -
xRot
protected final float xRot -
onGround
protected final boolean onGround -
hasPos
protected final boolean hasPos -
hasRot
protected final boolean hasRot
-
-
Constructor Details
-
ServerboundMovePlayerPacket
protected ServerboundMovePlayerPacket(double x, double y, double z, float yRot, float xRot, boolean onGround, boolean hasPos, boolean hasRot)
-
-
Method Details
-
type
- Specified by:
type
in interfacePacket<ServerGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getX
public double getX(double defaultValue) -
getY
public double getY(double defaultValue) -
getZ
public double getZ(double defaultValue) -
getYRot
public float getYRot(float defaultValue) -
getXRot
public float getXRot(float defaultValue) -
isOnGround
public boolean isOnGround() -
hasPosition
public boolean hasPosition() -
hasRotation
public boolean hasRotation()
-