Class PlayerSpawnS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PlayerSpawnS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class PlayerSpawnS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerSpawnS2CPacket()
PlayerSpawnS2CPacket(PlayerEntity player)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
int
getId()
byte
getPitch()
UUID
getPlayerUuid()
double
getX()
double
getY()
byte
getYaw()
double
getZ()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
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.Packet
isWritingErrorSkippable
-
Field Details
-
id
private int id -
uuid
-
x
private double x -
y
private double y -
z
private double z -
yaw
private byte yaw -
pitch
private byte pitch
-
-
Constructor Details
-
PlayerSpawnS2CPacket
public PlayerSpawnS2CPacket() -
PlayerSpawnS2CPacket
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
getId
@Environment(CLIENT) public int getId() -
getPlayerUuid
-
getX
@Environment(CLIENT) public double getX() -
getY
@Environment(CLIENT) public double getY() -
getZ
@Environment(CLIENT) public double getZ() -
getYaw
@Environment(CLIENT) public byte getYaw() -
getPitch
@Environment(CLIENT) public byte getPitch()
-