Class PotionEvent.PotionApplicableEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.PotionEvent
net.minecraftforge.event.entity.living.PotionEvent.PotionApplicableEvent
- Enclosing class:
- PotionEvent
This Event is fired to check if a Potion can get applied to an Entity.
This Event is not
Cancelable
This Event has a result Event.HasResult
.
ALLOW will apply this potion effect.
DENY will not apply this potion effect.
DEFAULT will run vanilla logic to determine if this potion isApplicable.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.PotionEvent
PotionEvent.PotionAddedEvent, PotionEvent.PotionApplicableEvent, PotionEvent.PotionExpiryEvent, PotionEvent.PotionRemoveEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
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.PotionEvent
effect
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Constructor Details
-
PotionApplicableEvent
-
-
Method Details
-
getPotionEffect
Description copied from class:PotionEvent
Retuns the PotionEffect.- Overrides:
getPotionEffect
in classPotionEvent
- Returns:
- the PotionEffect.
-