Class SlimeTargetLivingEntityEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
com.destroystokyo.paper.event.entity.SlimePathfindEvent
com.destroystokyo.paper.event.entity.SlimeTargetLivingEntityEvent
- All Implemented Interfaces:
Cancellable
Fired when a Slime decides to change direction to target a LivingEntity.
This event does not fire for the entity's actual movement. Only when it is choosing to start moving.
-
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
ConstructorDescriptionSlimeTargetLivingEntityEvent
(@NotNull Slime slime, @NotNull LivingEntity target) -
Method Summary
Methods inherited from class com.destroystokyo.paper.event.entity.SlimePathfindEvent
getEntity, getHandlerList, getHandlers, isCancelled, setCancelled
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntityType
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
SlimeTargetLivingEntityEvent
-
-
Method Details
-
getTarget
Get the targeted entity- Returns:
- Targeted entity
-