Class PotionEvent.PotionRemoveEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
PotionEvent

public static class PotionEvent.PotionRemoveEvent extends PotionEvent
This Event is fired when a Potion is about to get removed from an Entity. This Event is Cancelable. This Event does not have a result.
  • Field Details

  • Constructor Details

  • Method Details

    • getPotion

      public MobEffect getPotion()
      Returns:
      the Potion which is tried to remove from the Entity.
    • getPotionEffect

      @Nullable public MobEffectInstance getPotionEffect()
      Description copied from class: PotionEvent
      Retuns the PotionEffect.
      Overrides:
      getPotionEffect in class PotionEvent
      Returns:
      the PotionEffect. In the remove event this can be null if the Entity does not have a MobEffect of the right type active.