类 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
-
字段概要
字段修饰符和类型字段说明private static final int
private static final int
protected final boolean
protected final boolean
protected final boolean
protected final boolean
protected final double
protected final float
protected final double
protected final float
protected final double
-
构造器概要
构造器限定符构造器说明protected
ServerboundMovePlayerPacket
(double p_179675_, double p_179676_, double p_179677_, float p_179678_, float p_179679_, boolean p_179680_, boolean p_179681_, boolean p_179682_, boolean p_365300_) -
方法概要
修饰符和类型方法说明double
getX
(double p_134130_) float
getXRot
(float p_134143_) double
getY
(double p_134141_) float
getYRot
(float p_134132_) double
getZ
(double p_134147_) void
handle
(ServerGamePacketListener p_134138_) boolean
boolean
boolean
boolean
(专用程序包) static int
packFlags
(boolean p_362343_, boolean p_368893_) abstract PacketType
<? extends ServerboundMovePlayerPacket> type()
(专用程序包) static boolean
unpackHorizontalCollision
(int p_366014_) (专用程序包) static boolean
unpackOnGround
(int p_362368_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
字段详细资料
-
FLAG_ON_GROUND
private static final int FLAG_ON_GROUND- 另请参阅:
-
FLAG_HORIZONTAL_COLLISION
private static final int FLAG_HORIZONTAL_COLLISION- 另请参阅:
-
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 -
horizontalCollision
protected final boolean horizontalCollision -
hasPos
protected final boolean hasPos -
hasRot
protected final boolean hasRot
-
-
构造器详细资料
-
ServerboundMovePlayerPacket
protected ServerboundMovePlayerPacket(double p_179675_, double p_179676_, double p_179677_, float p_179678_, float p_179679_, boolean p_179680_, boolean p_179681_, boolean p_179682_, boolean p_365300_)
-
-
方法详细资料
-
packFlags
static int packFlags(boolean p_362343_, boolean p_368893_) -
unpackOnGround
static boolean unpackOnGround(int p_362368_) -
unpackHorizontalCollision
static boolean unpackHorizontalCollision(int p_366014_) -
type
- 指定者:
type
在接口中Packet<ServerGamePacketListener>
-
handle
- 指定者:
handle
在接口中Packet<ServerGamePacketListener>
-
getX
public double getX(double p_134130_) -
getY
public double getY(double p_134141_) -
getZ
public double getZ(double p_134147_) -
getYRot
public float getYRot(float p_134132_) -
getXRot
public float getXRot(float p_134143_) -
isOnGround
public boolean isOnGround() -
horizontalCollision
public boolean horizontalCollision() -
hasPosition
public boolean hasPosition() -
hasRotation
public boolean hasRotation()
-