net.minecraft.world.damagesource

public record DamageType

brm
net.minecraft.world.damagesource.DamageType
net.minecraft.class_8110
net.minecraft.entity.damage.DamageType
net.minecraft.src.C_268380_
net.minecraft.world.damagesource.DamageType

Field summary

Modifier and TypeField
private final String
d
msgId
comp_1242
msgId
f_268677_
private final DamageScaling
e
scaling
comp_1243
scaling
f_268501_
private final float
f
exhaustion
comp_1244
exhaustion
f_268663_
private final DamageEffects
g
effects
comp_1245
effects
f_268686_
private final DeathMessageType
h
deathMessageType
comp_1246
deathMessageType
f_268472_
public static final com.mojang.serialization.Codec<DamageType>
a
DIRECT_CODEC
field_42318
CODEC
f_314803_
public static final com.mojang.serialization.Codec<Holder<DamageType>>
b
CODEC
field_51565
ENTRY_CODEC
f_336772_
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<DamageType>>
c
STREAM_CODEC
field_51932
ENTRY_PACKET_CODEC
f_337254_

Constructor summary

ModifierConstructor
public (String msgId, DamageScaling scaling, float exhaustion)
public (String msgId, DamageScaling scaling, float exhaustion, DamageEffects effects)
public (String msgId, float exhaustion, DamageEffects effects)
public (String msgId, float exhaustion)
public (String scaling, DamageScaling exhaustion, float effects, DamageEffects deathMessageType, DeathMessageType arg4)

Method summary

Modifier and TypeMethod
public String
a()
msgId()
comp_1242()
msgId()
f_268677_()
public DamageScaling
b()
scaling()
comp_1243()
scaling()
f_268501_()
public float
c()
exhaustion()
comp_1244()
exhaustion()
f_268663_()
public DamageEffects
d()
effects()
comp_1245()
effects()
f_268686_()
public DeathMessageType
e()
deathMessageType()
comp_1246()
deathMessageType()
f_268472_()