Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.EntityTargetEvent.TargetReason Enum Reference

Public Attributes


Detailed Description

An enum to specify the reason for the targeting

Definition at line 79 of file EntityTargetEvent.java.

Member Data Documentation


When the entity doesn't have a target, so it attacks the nearest player

Definition at line 89 of file EntityTargetEvent.java.


When an entity targets another entity after colliding with it.

Definition at line 135 of file EntityTargetEvent.java.


For custom calls to the event.

Definition at line 139 of file EntityTargetEvent.java.


When an entity selects a target while defending a village.

Definition at line 123 of file EntityTargetEvent.java.


When the target is forgotten for whatever reason.

Currently only occurs in with spiders when there is a high brightness.

Definition at line 105 of file EntityTargetEvent.java.


When the owner of the entity attacks the target attacks, so the entity targets it.

Definition at line 115 of file EntityTargetEvent.java.


When the target attacks a fellow pig zombie, so the whole group will target him with this reason.

Definition at line 98 of file EntityTargetEvent.java.


When the entity has no target, so the entity randomly chooses one.

Definition at line 119 of file EntityTargetEvent.java.


When a zombie targeting an entity summons reinforcements, so the reinforcements target the same entity

Definition at line 131 of file EntityTargetEvent.java.


When the target attacks the entity, so entity targets it

Definition at line 93 of file EntityTargetEvent.java.


When the target attacks a nearby entity of the same type, so the entity targets it

Definition at line 127 of file EntityTargetEvent.java.


When the target attacks the owner of the entity, so the entity targets it.

Definition at line 110 of file EntityTargetEvent.java.


When the entity's target has died, and so it no longer targets it

Definition at line 84 of file EntityTargetEvent.java.

The documentation for this enum was generated from the following file: