Skip to main content

Module mob_effect

Module mob_effect 

Source
Expand description

Mob-effect behaviors: one small module per vanilla MobEffect subtype under net/minecraft/world/effect.

Modulesยง

absorption ๐Ÿ”’
AbsorptionMobEffect behavior.
bad_omen ๐Ÿ”’
BadOmenMobEffect behavior.
heal_or_harm ๐Ÿ”’
HealOrHarmMobEffect behavior (Instant Health / Instant Damage).
hunger ๐Ÿ”’
HungerMobEffect behavior.
infested ๐Ÿ”’
InfestedMobEffect behavior.
oozing ๐Ÿ”’
OozingMobEffect behavior.
poison ๐Ÿ”’
PoisonMobEffect behavior.
raid_omen ๐Ÿ”’
RaidOmenMobEffect behavior.
regeneration ๐Ÿ”’
RegenerationMobEffect behavior.
saturation ๐Ÿ”’
SaturationMobEffect behavior.
weaving ๐Ÿ”’
WeavingMobEffect behavior.
wind_charged ๐Ÿ”’
WindChargedMobEffect behavior.
wither ๐Ÿ”’
WitherMobEffect behavior.

Structsยง

AbsorptionBehavior
Mirrors vanilla AbsorptionMobEffect: expires once absorption hearts run out, rather than on a duration timer.
BadOmenBehavior
Bad omen mob effect behavior.
HealOrHarmBehavior
Heal or harm mob effect behavior.
HungerBehavior
Hunger mob effect behavior.
InfestedBehavior
Infested mob effect behavior.
OozingBehavior
Oozing mob effect behavior.
PoisonBehavior
Mirrors vanilla PoisonMobEffect. Poison never kills: it stops dealing damage once the entityโ€™s health drops to 1.0 or below.
RaidOmenBehavior
Raid omen mob effect behavior.
RegenerationBehavior
Regeneration mob effect behavior.
SaturationBehavior
Mirrors vanilla SaturationMobEffect. Only overrides applyEffectTick; applyInstantaneousEffect falls back to InstantaneousMobEffectโ€™s default forwarding, matching vanilla โ€” SaturationMobEffect doesnโ€™t override it either.
WeavingBehavior
Weaving mob effect behavior.
WindChargedBehavior
Wind charged mob effect behavior.
WitherBehavior
Wither mob effect behavior.

Traitsยง

InstantaneousMobEffect
The instantaneous-only half of a MobEffectBehavior that also extends vanilla InstantaneousMobEffect.
MobEffectBehavior
One vanilla MobEffect subtypeโ€™s runtime behavior. Default methods match vanillaโ€™s own MobEffect base-class defaults, so an effect with no registered behavior (most of them) behaves exactly like a bare vanilla MobEffect instance.