Uses of Enum Class
net.minecraft.world.damagesource.DamageEffects
-
Uses of DamageEffects in net.minecraft.world.damagesource
Modifier and TypeFieldDescriptionprivate final DamageEffects
DamageType.effects
The field for theeffects
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DamageEffects>
DamageEffects.CODEC
Modifier and TypeMethodDescriptionstatic DamageEffects
DamageEffects.create
(String name, String id, Supplier<SoundEvent> sound) Creates a new DamageEffects with the specified ID and sound.
Example usage:DamageType.effects()
Returns the value of theeffects
record component.static DamageEffects
Returns the enum constant of this class with the specified name.static DamageEffects[]
DamageEffects.values()
Returns an array containing the constants of this enum class, in the order they are declared.ModifierConstructorDescriptionDamageType
(String p_270473_, float p_270700_, DamageEffects p_270105_) DamageType
(String p_270743_, DamageScaling p_270585_, float p_270555_, DamageEffects p_270608_) DamageType
(String msgId, DamageScaling scaling, float exhaustion, DamageEffects effects, DeathMessageType deathMessageType) Creates an instance of aDamageType
record class. -
Uses of DamageEffects in net.neoforged.neoforge.debug.damagesource