类 ServerboundMovePlayerPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundMovePlayerPacket
- 所有已实现的接口:
Packet<ServerGamePacketListener>
- 直接已知子类:
ServerboundMovePlayerPacket.Pos
,ServerboundMovePlayerPacket.PosRot
,ServerboundMovePlayerPacket.Rot
,ServerboundMovePlayerPacket.StatusOnly
public abstract class ServerboundMovePlayerPacket
extends Object
implements Packet<ServerGamePacketListener>
-
嵌套类概要
嵌套类修饰符和类型类说明static class
static class
static class
static class
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protected
ServerboundMovePlayerPacket
(double pX, double pY, double pZ, float pYRot, float pXRot, boolean pOnGround, boolean pHasPos, boolean pHasRot) -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable, write
-
字段详细资料
-
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
-
-
构造器详细资料
-
ServerboundMovePlayerPacket
protected ServerboundMovePlayerPacket(double pX, double pY, double pZ, float pYRot, float pXRot, boolean pOnGround, boolean pHasPos, boolean pHasRot)
-
-
方法详细资料
-
handle
- 指定者:
handle
在接口中Packet<ServerGamePacketListener>
-
getX
public double getX(double pDefaultValue) -
getY
public double getY(double pDefaultValue) -
getZ
public double getZ(double pDefaultValue) -
getYRot
public float getYRot(float pDefaultValue) -
getXRot
public float getXRot(float pDefaultValue) -
isOnGround
public boolean isOnGround() -
hasPosition
public boolean hasPosition() -
hasRotation
public boolean hasRotation()
-