类 ClientboundAddEntityPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundAddEntityPacket
- 所有已实现的接口:
Packet<ClientGamePacketListener>
-
字段概要
字段修饰符和类型字段说明private final int
private final int
private static final double
private static final double
private final EntityType<?>
private final UUID
private final double
private final int
private final byte
private final double
private final int
private final byte
private final byte
private final double
private final int
-
构造器概要
构造器构造器说明ClientboundAddEntityPacket
(int pId, UUID pUuid, double pX, double pY, double pZ, float pXRot, float pYRot, EntityType<?> pType, int pData, Vec3 pDeltaMovement, double pYHeadRot) ClientboundAddEntityPacket
(Entity pEntity) ClientboundAddEntityPacket
(Entity pEntity, int pData) ClientboundAddEntityPacket
(Entity pEntity, int pData, BlockPos pPos) -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable
-
字段详细资料
-
MAGICAL_QUANTIZATION
private static final double MAGICAL_QUANTIZATION- 另请参阅:
-
LIMIT
private static final double LIMIT- 另请参阅:
-
id
private final int id -
uuid
-
type
-
x
private final double x -
y
private final double y -
z
private final double z -
xa
private final int xa -
ya
private final int ya -
za
private final int za -
xRot
private final byte xRot -
yRot
private final byte yRot -
yHeadRot
private final byte yHeadRot -
data
private final int data
-
-
构造器详细资料
-
ClientboundAddEntityPacket
-
ClientboundAddEntityPacket
-
ClientboundAddEntityPacket
-
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(int pId, UUID pUuid, double pX, double pY, double pZ, float pXRot, float pYRot, EntityType<?> pType, int pData, Vec3 pDeltaMovement, double pYHeadRot) -
ClientboundAddEntityPacket
-
-
方法详细资料
-
write
- 指定者:
write
在接口中Packet<ClientGamePacketListener>
-
handle
- 指定者:
handle
在接口中Packet<ClientGamePacketListener>
-
getId
public int getId() -
getUUID
-
getType
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getXa
public double getXa() -
getYa
public double getYa() -
getZa
public double getZa() -
getXRot
public float getXRot() -
getYRot
public float getYRot() -
getYHeadRot
public float getYHeadRot() -
getData
public int getData()
-