Class MobEffectEvent.Applicable
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.MobEffectEvent
net.minecraftforge.event.entity.living.MobEffectEvent.Applicable
- Enclosing class:
- MobEffectEvent
This event is fired to check if a
MobEffectInstance
can be applied to an entity.
This event is not Cancelable
.
This event has a result
.
ALLOW
will apply this mob effect.
DENY
will not apply this mob effect.
DEFAULT
will run vanilla logic to determine if this mob effect is applicable in LivingEntity.canBeAffected(net.minecraft.world.effect.MobEffectInstance)
.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.MobEffectEvent
MobEffectEvent.Added, MobEffectEvent.Applicable, MobEffectEvent.Expired, MobEffectEvent.Remove
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Fields inherited from class net.minecraftforge.event.entity.living.MobEffectEvent
effectInstance
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Applicable
-
-
Method Details
-
getEffectInstance
- Overrides:
getEffectInstance
in classMobEffectEvent
-