![]() |
Bukkit
1.4.7-R1.0
|
Called when an Entity targets a LivingEntity and can only target LivingEntity's. More...
Inheritance diagram for org.bukkit.event.entity.EntityTargetLivingEntityEvent:
Collaboration diagram for org.bukkit.event.entity.EntityTargetLivingEntityEvent:Public Member Functions | |
| EntityTargetLivingEntityEvent (final Entity entity, final LivingEntity target, final TargetReason reason) | |
| LivingEntity | getTarget () |
| void | setTarget (Entity target) |
| Set the Entity that you want the mob to target. | |
Public Member Functions inherited from org.bukkit.event.entity.EntityTargetEvent | |
| EntityTargetEvent (final Entity entity, final Entity target, final TargetReason reason) | |
| boolean | isCancelled () |
| void | setCancelled (boolean cancel) |
| TargetReason | getReason () |
| Returns the reason for the targeting. | |
| Entity | getTarget () |
| Get the entity that this is targeting. | |
| void | setTarget (Entity target) |
| Set the entity that you want the mob to target instead. | |
| HandlerList | getHandlers () |
Public Member Functions inherited from org.bukkit.event.entity.EntityEvent | |
| EntityEvent (final Entity what) | |
| Entity | getEntity () |
| Returns the Entity involved in this event. | |
| EntityType | getEntityType () |
| Gets the EntityType of the Entity involved in this event. | |
Public Member Functions inherited from org.bukkit.event.Event | |
| Event () | |
| The default constructor is defined for cleaner code. | |
| Event (boolean isAsync) | |
| This constructor is used to explicitly declare an event as synchronous or asynchronous. | |
| String | getEventName () |
| final boolean | isAsynchronous () |
| Any custom event that should not by synchronized with other events must use the specific constructor. | |
Public Member Functions inherited from org.bukkit.event.Cancellable | |
| boolean | isCancelled () |
| Gets the cancellation state of this event. | |
| void | setCancelled (boolean cancel) |
| Sets the cancellation state of this event. | |
Additional Inherited Members | |
Static Public Member Functions inherited from org.bukkit.event.entity.EntityTargetEvent | |
| static HandlerList | getHandlerList () |
Protected Attributes inherited from org.bukkit.event.entity.EntityEvent | |
| Entity | entity |
Called when an Entity targets a LivingEntity and can only target LivingEntity's.
Definition at line 9 of file EntityTargetLivingEntityEvent.java.
| org.bukkit.event.entity.EntityTargetLivingEntityEvent.EntityTargetLivingEntityEvent | ( | final Entity | entity, |
| final LivingEntity | target, | ||
| final TargetReason | reason | ||
| ) |
Definition at line 10 of file EntityTargetLivingEntityEvent.java.
| LivingEntity org.bukkit.event.entity.EntityTargetLivingEntityEvent.getTarget | ( | ) |
Definition at line 14 of file EntityTargetLivingEntityEvent.java.
| void org.bukkit.event.entity.EntityTargetLivingEntityEvent.setTarget | ( | Entity | target | ) |
Set 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
| target | The entity to target |
Definition at line 27 of file EntityTargetLivingEntityEvent.java.