Package org.bukkit.event.entity
Class EntityTargetLivingEntityEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityTargetEvent
org.bukkit.event.entity.EntityTargetLivingEntityEvent
- All Implemented Interfaces:
- Cancellable
Called when an Entity targets a 
LivingEntity and can only target
 LivingEntity's.- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.entity.EntityTargetEventEntityTargetEvent.TargetReasonNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.entity.EntityEvententity
- 
Constructor SummaryConstructorsConstructorDescriptionEntityTargetLivingEntityEvent(@NotNull Entity entity, @Nullable LivingEntity target, @Nullable EntityTargetEvent.TargetReason reason) 
- 
Method SummaryMethods inherited from class org.bukkit.event.entity.EntityTargetEventgetHandlerList, getHandlers, getReason, isCancelled, setCancelledMethods inherited from class org.bukkit.event.entity.EntityEventgetEntity, getEntityTypeMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
EntityTargetLivingEntityEventpublic EntityTargetLivingEntityEvent(@NotNull @NotNull Entity entity, @Nullable @Nullable LivingEntity target, @Nullable @Nullable EntityTargetEvent.TargetReason reason) 
 
- 
- 
Method Details- 
getTargetDescription copied from class:EntityTargetEventGet the entity that this is targeting.This will be null in the case that the event is called when the mob forgets its target. - Overrides:
- getTargetin class- EntityTargetEvent
- Returns:
- The entity
 
- 
setTargetSet the Entity that you want the mob to target.It is possible to be null, null will cause the entity to be target-less. Must be a LivingEntity, or null. - Overrides:
- setTargetin class- EntityTargetEvent
- Parameters:
- target- The entity to target
 
 
-