net.minecraft.world.damagesource

public record DamageType

buc
net.minecraft.world.damagesource.DamageType
net.minecraft.class_8110
net.minecraft.entity.damage.DamageType
net.minecraft.world.damagesource.DamageType

Field summary

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

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 arg0, DamageScaling arg1, float arg2, DamageEffects arg3, DeathMessageType arg4)

Method summary

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