net.minecraft.network.protocol.game

public class ClientboundAddEntityPacket

implements Packet<ClientGamePacketListener>

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

Field summary

Modifier and TypeField
public static final StreamCodec<RegistryFriendlyByteBuf, ClientboundAddEntityPacket>
a
STREAM_CODEC
field_47896
CODEC
private static final double
b
MAGICAL_QUANTIZATION
field_33293
VELOCITY_SCALE
private static final double
c
LIMIT
field_33294
MAX_ABSOLUTE_VELOCITY
private final int
d
id
field_11953
entityId
private final UUID
e
uuid
field_11952
uuid
private final EntityType<?>
f
type
field_11955
entityType
private final double
g
x
field_11948
x
private final double
h
y
field_11946
y
private final double
i
z
field_11956
z
private final int
j
xa
field_11951
velocityX
private final int
k
ya
field_11950
velocityY
private final int
l
za
field_11949
velocityZ
private final byte
m
xRot
field_11947
pitch
private final byte
n
yRot
field_11957
yaw
private final byte
o
yHeadRot
field_38817
headYaw
private final int
p
data
field_11954
entityData

Constructor summary

ModifierConstructor
public (Entity entity, ServerEntity entityTrackerEntry)
public (Entity entity, ServerEntity 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, Vec3 velocity, double headYaw)
private (RegistryFriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(xg arg0)
write(RegistryFriendlyByteBuf arg0)
method_55855(class_9129 arg0)
write(RegistryByteBuf buf)
public PacketType<ClientboundAddEntityPacket>
a()
type()
method_55846()
getPacketId()
public void
a(acr arg0)
handle(ClientGamePacketListener arg0)
method_11178(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public int
b()
getId()
method_11167()
getEntityId()
public UUID
e()
getUUID()
method_11164()
getUuid()
public EntityType<?>
f()
getType()
method_11169()
getEntityType()
public double
g()
getX()
method_11175()
getX()
public double
h()
getY()
method_11174()
getY()
public double
i()
getZ()
method_11176()
getZ()
public double
j()
getXa()
method_11170()
getVelocityX()
public double
k()
getYa()
method_11172()
getVelocityY()
public double
l()
getZa()
method_11173()
getVelocityZ()
public float
m()
getXRot()
method_11171()
getPitch()
public float
n()
getYRot()
method_11168()
getYaw()
public float
o()
getYHeadRot()
method_43233()
getHeadYaw()
public int
p()
getData()
method_11166()
getEntityData()