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
ConstructorsConstructorDescriptionBeeStopPollinatingEvent(@NotNull Bee bee, @Nullable Location location, boolean success) -
Method Summary
Modifier and TypeMethodDescriptionReturns the Entity involved in this eventstatic @NotNull HandlerListReturns the location of the flower that the bee stopped pollinatingbooleanReturns whether the bee successfully pollinated the flowerMethods inherited from class org.bukkit.event.entity.EntityEvent
getEntityTypeMethods inherited from class org.bukkit.event.Event
asynchronous, callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BeeStopPollinatingEvent
-
-
Method Details
-
getEntity
Description copied from class:EntityEventReturns the Entity involved in this event- Overrides:
getEntityin 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:
getHandlersin classEvent
-
getHandlerList
-