Skip to main content

to_runtime_instance

Function to_runtime_instance 

Source
pub(crate) const fn to_runtime_instance(
    effect: &MobEffectInstance,
    duration: i32,
) -> MobEffectInstance
Expand description

Builds the runtime active-effect state for one registry mob-effect instance, ready to hand to LivingEntity::add_mob_effect.