net.minecraft.network.packet.s2c.play

public record EntityDamageS2CPacket

implements Packet<ClientPlayPacketListener>

acl
net.minecraft.network.protocol.game.ClientboundDamageEventPacket
net.minecraft.class_8143
net.minecraft.network.packet.s2c.play.EntityDamageS2CPacket
net.minecraft.unmapped.C_jpgyajxg
net.minecraft.network.packet.s2c.play.DamageEventS2CPacket
net.minecraft.src.C_268363_

Field summary

Modifier and TypeField
private final int
b
entityId
comp_1267
entityId
f_pcfmftes
entityId
f_268504_
private final RegistryEntry<DamageType>
c
sourceType
comp_1268
sourceType
f_ydjbuwni
sourceType
f_316647_
private final int
d
sourceCauseId
comp_1269
sourceCauseId
f_tlwxqfqt
sourceCauseId
f_268559_
private final int
e
sourceDirectId
comp_1270
sourceDirectId
f_ctguupjk
sourceDirectId
f_268649_
private final Optional<Vec3d>
f
sourcePosition
comp_1271
sourcePosition
f_fiphmbzp
sourcePosition
f_268712_
public static final PacketCodec<RegistryByteBuf, EntityDamageS2CPacket>
a
STREAM_CODEC
field_47921
CODEC
f_uogivfby
CODEC
f_315470_

Constructor summary

ModifierConstructor
public (Entity entity, DamageSource damageSource)
private (RegistryByteBuf buf)
public (int entityId, RegistryEntry<DamageType> sourceType, int sourceCauseId, int sourceDirectId, Optional<Vec3d> sourcePosition)

Method summary

Modifier and TypeMethod
private static void
a(vl o, int o)
writeOptionalEntityId(FriendlyByteBuf arg0, int arg1)
method_49072(class_2540 arg0, int arg1)
writeOffsetVarInt(PacketByteBuf buf, int value)
m_bmxthmjk(C_idfydwco arg0, int arg1)
writeOptionalEntityId(PacketByteBuf buf, int id)
m_269073_(C_4983_ p_270812_, int p_270852_)
private static int
a(vl o)
readOptionalEntityId(FriendlyByteBuf arg0)
method_49075(class_2540 arg0)
readOffsetVarInt(PacketByteBuf buf)
m_brkyiulx(C_idfydwco arg0)
readOptionalEntityId(PacketByteBuf buf)
m_269135_(C_4983_ p_270462_)
private void
a(wa arg0)
write(RegistryFriendlyByteBuf arg0)
method_55873(class_9129 arg0)
write(RegistryByteBuf buf)
m_reafxsgv(C_bngyzsts arg0)
write(RegistryByteBuf buf)
m_269009_(C_313350_ arg0)
public PacketType<EntityDamageS2CPacket>
a()
type()
method_65080()
getPacketType()
m_bbocywrf()
getType()
m_5779_()
public void
a(abl arg0)
handle(ClientGamePacketListener arg0)
method_49074(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
m_gfczvayz(C_rbfddnlp arg0)
apply(ClientPlayPacketListener arg0)
m_5797_(C_5031_ arg0)
public DamageSource
a(dgj arg0)
getSource(Level arg0)
method_49071(class_1937 arg0)
createDamageSource(World world)
m_xjoqztmw(C_cdctfzbn arg0)
getDamageSource(World world)
m_269591_(C_1596_ arg0)
public int
b()
entityId()
comp_1267()
entityId()
m_olblxwsq()
entityId()
f_268504_()
public RegistryEntry<DamageType>
e()
sourceType()
comp_1268()
sourceType()
m_surnfvoe()
sourceType()
f_316647_()
public int
f()
sourceCauseId()
comp_1269()
sourceCauseId()
m_nqmxcxai()
sourceCauseId()
f_268559_()
public int
g()
sourceDirectId()
comp_1270()
sourceDirectId()
m_fxnxbkis()
sourceDirectId()
f_268649_()
public Optional<Vec3d>
h()
sourcePosition()
comp_1271()
sourcePosition()
m_xeieojvu()
sourcePosition()
f_268712_()