Class BeeStopPollinatingEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.purpurmc.purpur.event.entity.BeeStopPollinatingEvent

@NullMarked public class BeeStopPollinatingEvent extends EntityEvent
Called when a bee stops pollinating
  • Constructor Details

  • Method Details

    • getEntity

      public Bee getEntity()
      Description copied from class: EntityEvent
      Returns the Entity involved in this event
      Overrides:
      getEntity in class EntityEvent
      Returns:
      Entity who is involved in this event
    • getLocation

      public @Nullable Location getLocation()
      Returns the location of the flower that the bee stopped pollinating
      Returns:
      The location of the flower
    • wasSuccessful

      public boolean wasSuccessful()
      Returns whether the bee successfully pollinated the flower
      Returns:
      True if the pollination was successful
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()