net.minecraft.network.protocol.game

public record ClientboundDamageEventPacket

implements Packet<ClientGamePacketListener>

acl
net.minecraft.network.protocol.game.ClientboundDamageEventPacket
net.minecraft.class_8143
net.minecraft.network.packet.s2c.play.EntityDamageS2CPacket
net.minecraft.network.protocol.game.ClientboundDamageEventPacket

Field summary

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

Constructor summary

ModifierConstructor
public (Entity entity, DamageSource damageSource)
private (RegistryFriendlyByteBuf buf)
public (int arg0, Holder<DamageType> arg1, int arg2, int arg3, Optional<Vec3> arg4)

Method summary

Modifier and TypeMethod
private static void
a(vl arg0, int arg1)
writeOptionalEntityId(FriendlyByteBuf arg0, int arg1)
method_49072(class_2540 arg0, int arg1)
writeOffsetVarInt(PacketByteBuf buf, int value)
private static int
a(vl arg0)
readOptionalEntityId(FriendlyByteBuf arg0)
method_49075(class_2540 arg0)
readOffsetVarInt(PacketByteBuf buf)
private void
a(wa arg0)
write(RegistryFriendlyByteBuf arg0)
method_55873(class_9129 arg0)
write(RegistryByteBuf buf)
public PacketType<ClientboundDamageEventPacket>
a()
type()
method_65080()
getPacketType()
public void
a(abl arg0)
handle(ClientGamePacketListener arg0)
method_49074(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public DamageSource
a(dgj arg0)
getSource(Level arg0)
method_49071(class_1937 arg0)
createDamageSource(World world)
public int
b()
entityId()
comp_1267()
entityId()
public Holder<DamageType>
e()
sourceType()
comp_1268()
sourceType()
public int
f()
sourceCauseId()
comp_1269()
sourceCauseId()
public int
g()
sourceDirectId()
comp_1270()
sourceDirectId()
public Optional<Vec3>
h()
sourcePosition()
comp_1271()
sourcePosition()