Uses of Enum Class
net.minecraft.world.damagesource.DamageScaling
-
Uses of DamageScaling in net.minecraft.world.damagesource
Modifier and TypeFieldDescriptionprivate final DamageScaling
DamageType.scaling
The field for thescaling
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DamageScaling> DamageScaling.CODEC
Modifier and TypeMethodDescriptionstatic DamageScaling
DamageScaling.create
(String name, String id, IScalingFunction scaling) Creates a new DamageScaling with the specified ID and scaling function.
Example usage:DamageType.scaling()
Returns the value of thescaling
record component.static DamageScaling
Returns the enum constant of this class with the specified name.static DamageScaling[]
DamageScaling.values()
Returns an array containing the constants of this enum class, in the order they are declared.ModifierConstructorDescriptionDamageType
(String p_270099_, DamageScaling p_270717_, float p_270846_) 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 DamageScaling in net.neoforged.neoforge.debug.damagesource