Class EntityPotionAddEvent

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

public class EntityPotionAddEvent extends Object implements EntityInstanceEvent
  • Constructor Details

    • EntityPotionAddEvent

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

    • 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
    • getPotion

      @NotNull public @NotNull Potion getPotion()
      Returns the potion that was added.
      Returns:
      the added potion.