Package org.purpurmc.purpur.event.entity
Class BeeStopPollinatingEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.purpurmc.purpur.event.entity.BeeStopPollinatingEvent
Called when a bee stops pollinating
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
-
Constructor Summary
ConstructorDescriptionBeeStopPollinatingEvent
(@NotNull Bee bee, @Nullable Location location, boolean success) -
Method Summary
Modifier and TypeMethodDescriptionReturns the Entity involved in this eventstatic @NotNull HandlerList
Returns the location of the flower that the bee stopped pollinatingboolean
Returns whether the bee successfully pollinated the flowerMethods inherited from class org.bukkit.event.entity.EntityEvent
getEntityType
Methods inherited from class org.bukkit.event.Event
asynchronous, callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BeeStopPollinatingEvent
-
-
Method Details
-
getEntity
Description copied from class:EntityEvent
Returns the Entity involved in this event- Overrides:
getEntity
in classEntityEvent
- Returns:
- Entity who is involved in this event
-
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
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-