public class EntitySpawnS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private int |
entityData |
private EntityType<?> |
entityTypeId |
private int |
id |
private int |
pitch |
private UUID |
uuid |
private int |
velocityX |
private int |
velocityY |
private int |
velocityZ |
private double |
x |
private double |
y |
private int |
yaw |
private double |
z |
Constructor and Description |
---|
EntitySpawnS2CPacket() |
EntitySpawnS2CPacket(Entity entity) |
EntitySpawnS2CPacket(Entity entity,
EntityType<?> entityType,
int data,
BlockPos pos) |
EntitySpawnS2CPacket(Entity entity,
int entityData) |
EntitySpawnS2CPacket(int id,
UUID uuid,
double x,
double y,
double z,
float pitch,
float yaw,
EntityType<?> entityTypeId,
int entityData,
Vec3d velocity) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getEntityData() |
EntityType<?> |
getEntityTypeId() |
int |
getId() |
int |
getPitch() |
UUID |
getUuid() |
double |
getVelocityX() |
double |
getVelocityY() |
double |
getVelocityZ() |
double |
getX() |
double |
getY() |
int |
getYaw() |
double |
getZ() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int id
private UUID uuid
private double x
private double y
private double z
private int velocityX
private int velocityY
private int velocityZ
private int pitch
private int yaw
private EntityType<?> entityTypeId
private int entityData
public EntitySpawnS2CPacket()
public EntitySpawnS2CPacket(int id, UUID uuid, double x, double y, double z, float pitch, float yaw, EntityType<?> entityTypeId, int entityData, Vec3d velocity)
public EntitySpawnS2CPacket(Entity entity)
public EntitySpawnS2CPacket(Entity entity, int entityData)
public EntitySpawnS2CPacket(Entity entity, EntityType<?> entityType, int data, BlockPos pos)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public 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 double getX()
@Environment(value=CLIENT) public double getY()
@Environment(value=CLIENT) public double getZ()
@Environment(value=CLIENT) public double getVelocityX()
@Environment(value=CLIENT) public double getVelocityY()
@Environment(value=CLIENT) public double getVelocityZ()
@Environment(value=CLIENT) public int getPitch()
@Environment(value=CLIENT) public int getYaw()
@Environment(value=CLIENT) public EntityType<?> getEntityTypeId()
@Environment(value=CLIENT) public int getEntityData()