net.minecraft.network.protocol.game

public record ClientboundDamageEventPacket

implements Packet<ClientGamePacketListener>

act
net.minecraft.network.protocol.game.ClientboundDamageEventPacket
net.minecraft.class_8143
net.minecraft.unmapped.C_jpgyajxg
net.minecraft.network.packet.s2c.play.EntityDamageS2CPacket
net.minecraft.network.packet.s2c.play.DamageEventS2CPacket

Field summary

Modifier and TypeField
private final int
b
entityId
comp_1267
f_pcfmftes
entityId
entityId
private final Holder<DamageType>
c
sourceType
comp_1268
f_ydjbuwni
sourceType
sourceType
private final int
d
sourceCauseId
comp_1269
f_tlwxqfqt
sourceCauseId
sourceCauseId
private final int
e
sourceDirectId
comp_1270
f_ctguupjk
sourceDirectId
sourceDirectId
private final Optional<Vec3>
f
sourcePosition
comp_1271
f_fiphmbzp
sourcePosition
sourcePosition
public static final StreamCodec<RegistryFriendlyByteBuf, ClientboundDamageEventPacket>
a
STREAM_CODEC
field_47921
f_uogivfby
CODEC
CODEC

Constructor summary

ModifierConstructor
public (Entity entity, DamageSource damageSource)
private (RegistryFriendlyByteBuf buf)
public (int entityId, Holder<DamageType> sourceType, int sourceCauseId, int sourceDirectId, Optional<Vec3> sourcePosition)

Method summary

Modifier and TypeMethod
private static void
a(vu arg0, int arg1)
writeOptionalEntityId(FriendlyByteBuf arg0, int arg1)
method_49072(class_2540 arg0, int arg1)
m_bmxthmjk(C_idfydwco arg0, int arg1)
writeOffsetVarInt(PacketByteBuf buf, int value)
writeOptionalEntityId(PacketByteBuf buf, int id)
private static int
a(vu arg0)
readOptionalEntityId(FriendlyByteBuf arg0)
method_49075(class_2540 arg0)
m_brkyiulx(C_idfydwco arg0)
readOffsetVarInt(PacketByteBuf buf)
readOptionalEntityId(PacketByteBuf buf)
private void
a(wj arg0)
write(RegistryFriendlyByteBuf arg0)
method_55873(class_9129 arg0)
m_reafxsgv(C_bngyzsts arg0)
write(RegistryByteBuf buf)
write(RegistryByteBuf buf)
public PacketType<ClientboundDamageEventPacket>
a()
type()
method_65080()
m_bbocywrf()
getPacketType()
getType()
public void
a(abu arg0)
handle(ClientGamePacketListener arg0)
method_49074(class_2602 arg0)
m_gfczvayz(C_rbfddnlp arg0)
apply(ClientPlayPacketListener arg0)
apply(ClientPlayPacketListener arg0)
public DamageSource
a(dja arg0)
getSource(Level arg0)
method_49071(class_1937 arg0)
m_xjoqztmw(C_cdctfzbn arg0)
createDamageSource(World world)
getDamageSource(World world)
public int
b()
entityId()
comp_1267()
m_olblxwsq()
entityId()
entityId()
public Holder<DamageType>
e()
sourceType()
comp_1268()
m_surnfvoe()
sourceType()
sourceType()
public int
f()
sourceCauseId()
comp_1269()
m_nqmxcxai()
sourceCauseId()
sourceCauseId()
public int
g()
sourceDirectId()
comp_1270()
m_fxnxbkis()
sourceDirectId()
sourceDirectId()
public Optional<Vec3>
h()
sourcePosition()
comp_1271()
m_xeieojvu()
sourcePosition()
sourcePosition()