Uses of Enum Class
net.minecraft.world.damagesource.DamageEffects
Packages that use DamageEffects
-
Uses of DamageEffects in net.minecraft.world.damagesource
Fields in net.minecraft.world.damagesource declared as DamageEffectsModifier and TypeFieldDescriptionprivate final DamageEffects
DamageType.effects
The field for theeffects
record component.Fields in net.minecraft.world.damagesource with type parameters of type DamageEffectsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DamageEffects>
DamageEffects.CODEC
Methods in net.minecraft.world.damagesource that return DamageEffectsModifier 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.Constructors in net.minecraft.world.damagesource with parameters of type DamageEffectsModifierConstructorDescriptionDamageType
(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
Fields in net.neoforged.neoforge.debug.damagesource declared as DamageEffects