Class ClientboundAddPlayerPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundAddPlayerPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientboundAddPlayerPacket(FriendlyByteBuf p_178570_)
ClientboundAddPlayerPacket(Player p_131596_)
-
Method Summary
Modifier and TypeMethodDescriptionint
double
getX()
byte
getxRot()
double
getY()
byte
getyRot()
double
getZ()
void
handle(ClientGamePacketListener p_131602_)
void
write(FriendlyByteBuf p_131605_)
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
-
Field Details
-
entityId
private final int entityId -
playerId
-
x
private final double x -
y
private final double y -
z
private final double z -
yRot
private final byte yRot -
xRot
private final byte xRot
-
-
Constructor Details
-
ClientboundAddPlayerPacket
-
ClientboundAddPlayerPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getEntityId
public int getEntityId() -
getPlayerId
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getyRot
public byte getyRot() -
getxRot
public byte getxRot()
-