net.minecraft.network.packet.s2c.play

public class EntitySpawnS2CPacket

implements Packet<ClientPlayPacketListener>

net.minecraft.network.protocol.game.ClientboundAddEntityPacket
net.minecraft.class_2604
net.minecraft.network.packet.s2c.play.EntitySpawnS2CPacket

Field summary

Modifier and TypeField
public static final PacketCodec<RegistryByteBuf, EntitySpawnS2CPacket>
STREAM_CODEC
field_47896
CODEC
private final int
id
field_11953
entityId
private final UUID
uuid
field_11952
uuid
private final EntityType<?>
type
field_11955
entityType
private final double
x
field_11948
x
private final double
y
field_11946
y
private final double
z
field_11956
z
private final Vec3d
movement
field_61886
velocity
private final byte
xRot
field_11947
pitch
private final byte
yRot
field_11957
yaw
private final byte
yHeadRot
field_38817
headYaw
private final int
data
field_11954
entityData

Constructor summary

ModifierConstructor
public (Entity entity, EntityTrackerEntry entityTrackerEntry)
public (Entity entity, EntityTrackerEntry entityTrackerEntry, int entityData)
public (Entity entity, int entityData, BlockPos pos)
public (int entityId, UUID uuid, double x, double y, double z, float pitch, float yaw, EntityType<?> entityType, int entityData, Vec3d velocity, double headYaw)
private (RegistryByteBuf buf)

Method summary

Modifier and TypeMethod
private void
write(RegistryFriendlyByteBuf output)
method_55855(class_9129 arg0)
write(RegistryByteBuf buf)
public PacketType<EntitySpawnS2CPacket>
type()
method_65080()
getPacketType()
public void
handle(ClientGamePacketListener listener)
method_11178(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public int
getId()
method_11167()
getEntityId()
public UUID
getUUID()
method_11164()
getUuid()
public EntityType<?>
getType()
method_11169()
getEntityType()
public double
getX()
method_11175()
getX()
public double
getY()
method_11174()
getY()
public double
getZ()
method_11176()
getZ()
public Vec3d
getMovement()
method_73084()
getVelocity()
public float
getXRot()
method_11171()
getPitch()
public float
getYRot()
method_11168()
getYaw()
public float
getYHeadRot()
method_43233()
getHeadYaw()
public int
getData()
method_11166()
getEntityData()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)