Class EntityPotionRemoveEvent

java.lang.Object
net.minestom.server.event.entity.EntityPotionRemoveEvent
All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent

public class EntityPotionRemoveEvent extends Object implements EntityInstanceEvent
  • Constructor Details

    • EntityPotionRemoveEvent

      public EntityPotionRemoveEvent(@NotNull @NotNull Entity entity, @NotNull @NotNull Potion potion)
  • Method Details

    • getPotion

      @NotNull public @NotNull Potion getPotion()
      Returns the potion that was removed.
      Returns:
      the removed potion.
    • getEntity

      @NotNull public @NotNull Entity getEntity()
      Description copied from interface: EntityEvent
      Gets the entity of this event.
      Specified by:
      getEntity in interface EntityEvent
      Returns:
      the entity