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

    • potion

      private final Effect potion
  • Constructor Details

  • Method Details

    • getPotion

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

      @Nullable public EffectInstance 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 Potion of the right type active.