Class BeeFoundFlowerEvent

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

@NullMarked public class BeeFoundFlowerEvent extends EntityEvent
Called when a bee targets a flower
  • 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 targets
      Returns:
      The location of the flower
    • getHandlers

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

      public static HandlerList getHandlerList()