Expand description
Mob-effect behaviors: one small module per vanilla MobEffect subtype
under net/minecraft/world/effect.
Modulesยง
- absorption ๐
AbsorptionMobEffectbehavior.- bad_
omen ๐ BadOmenMobEffectbehavior.- heal_
or_ ๐harm HealOrHarmMobEffectbehavior (Instant Health / Instant Damage).- hunger ๐
HungerMobEffectbehavior.- infested ๐
InfestedMobEffectbehavior.- oozing ๐
OozingMobEffectbehavior.- poison ๐
PoisonMobEffectbehavior.- raid_
omen ๐ RaidOmenMobEffectbehavior.- regeneration ๐
RegenerationMobEffectbehavior.- saturation ๐
SaturationMobEffectbehavior.- weaving ๐
WeavingMobEffectbehavior.- wind_
charged ๐ WindChargedMobEffectbehavior.- wither ๐
WitherMobEffectbehavior.
Structsยง
- Absorption
Behavior - Mirrors vanilla
AbsorptionMobEffect: expires once absorption hearts run out, rather than on a duration timer. - BadOmen
Behavior - Bad omen mob effect behavior.
- Heal
OrHarm Behavior - Heal or harm mob effect behavior.
- Hunger
Behavior - Hunger mob effect behavior.
- Infested
Behavior - Infested mob effect behavior.
- Oozing
Behavior - Oozing mob effect behavior.
- Poison
Behavior - Mirrors vanilla
PoisonMobEffect. Poison never kills: it stops dealing damage once the entityโs health drops to 1.0 or below. - Raid
Omen Behavior - Raid omen mob effect behavior.
- Regeneration
Behavior - Regeneration mob effect behavior.
- Saturation
Behavior - Mirrors vanilla
SaturationMobEffect. Only overridesapplyEffectTick;applyInstantaneousEffectfalls back toInstantaneousMobEffectโs default forwarding, matching vanilla โSaturationMobEffectdoesnโt override it either. - Weaving
Behavior - Weaving mob effect behavior.
- Wind
Charged Behavior - Wind charged mob effect behavior.
- Wither
Behavior - Wither mob effect behavior.
Traitsยง
- Instantaneous
MobEffect - The instantaneous-only half of a
MobEffectBehaviorthat also extends vanillaInstantaneousMobEffect. - MobEffect
Behavior - One vanilla
MobEffectsubtypeโs runtime behavior. Default methods match vanillaโs ownMobEffectbase-class defaults, so an effect with no registered behavior (most of them) behaves exactly like a bare vanillaMobEffectinstance.