public class MobSpawnS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private int |
entityTypeId |
private byte |
headYaw |
private int |
id |
private byte |
pitch |
private UUID |
uuid |
private int |
velocityX |
private int |
velocityY |
private int |
velocityZ |
private double |
x |
private double |
y |
private byte |
yaw |
private double |
z |
| Constructor and Description |
|---|
MobSpawnS2CPacket() |
MobSpawnS2CPacket(LivingEntity entity) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getEntityTypeId() |
byte |
getHeadYaw() |
int |
getId() |
byte |
getPitch() |
UUID |
getUuid() |
int |
getVelocityX() |
int |
getVelocityY() |
int |
getVelocityZ() |
double |
getX() |
double |
getY() |
byte |
getYaw() |
double |
getZ() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate int id
private UUID uuid
private int entityTypeId
private double x
private double y
private double z
private int velocityX
private int velocityY
private int velocityZ
private byte yaw
private byte pitch
private byte headYaw
public MobSpawnS2CPacket()
public MobSpawnS2CPacket(LivingEntity entity)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>@Environment(value=CLIENT) public int getId()
@Environment(value=CLIENT) public UUID getUuid()
@Environment(value=CLIENT) public int getEntityTypeId()
@Environment(value=CLIENT) public double getX()
@Environment(value=CLIENT) public double getY()
@Environment(value=CLIENT) public double getZ()
@Environment(value=CLIENT) public int getVelocityX()
@Environment(value=CLIENT) public int getVelocityY()
@Environment(value=CLIENT) public int getVelocityZ()
@Environment(value=CLIENT) public byte getYaw()
@Environment(value=CLIENT) public byte getPitch()
@Environment(value=CLIENT) public byte getHeadYaw()