Expand description
Vanilla PotionContents behavior extension: the methods that need
LivingEntity/World, which canโt live alongside the data in
steel_registry::data_components::PotionContents.
Functionsยง
- apply_
potion_ ๐contents - Mirrors vanilla
PotionContents.applyToLivingEntity(user, durationScale). - scale_
effect_ ๐duration - Mirrors vanilla
MobEffectInstance.withScaledDuration: scalesdurationbyscale, leaving the infinite-duration sentinel (-1) and a zero duration untouched, and never rounding a finite result below 1 tick. - to_
runtime_ ๐instance - Builds the runtime active-effect state for one registry mob-effect
instance, ready to hand to
LivingEntity::add_mob_effect.