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

Public Attributes

 TARGET_DIED
 
 CLOSEST_PLAYER
 
 TARGET_ATTACKED_ENTITY
 
 PIG_ZOMBIE_TARGET
 
 FORGOT_TARGET
 
 TARGET_ATTACKED_OWNER
 
 OWNER_ATTACKED_TARGET
 
 RANDOM_TARGET
 
 DEFEND_VILLAGE
 
 TARGET_ATTACKED_NEARBY_ENTITY
 
 REINFORCEMENT_TARGET
 
 COLLISION
 
 CUSTOM
 

Detailed Description

An enum to specify the reason for the targeting

Definition at line 79 of file EntityTargetEvent.java.

Member Data Documentation

org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER

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

Definition at line 89 of file EntityTargetEvent.java.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.COLLISION

When an entity targets another entity after colliding with it.

Definition at line 135 of file EntityTargetEvent.java.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.CUSTOM

For custom calls to the event.

Definition at line 139 of file EntityTargetEvent.java.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.DEFEND_VILLAGE

When an entity selects a target while defending a village.

Definition at line 123 of file EntityTargetEvent.java.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.FORGOT_TARGET

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.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.OWNER_ATTACKED_TARGET

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

Definition at line 115 of file EntityTargetEvent.java.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.PIG_ZOMBIE_TARGET

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.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.RANDOM_TARGET

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

Definition at line 119 of file EntityTargetEvent.java.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.REINFORCEMENT_TARGET

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

Definition at line 131 of file EntityTargetEvent.java.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.TARGET_ATTACKED_ENTITY

When the target attacks the entity, so entity targets it

Definition at line 93 of file EntityTargetEvent.java.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.TARGET_ATTACKED_NEARBY_ENTITY

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

Definition at line 127 of file EntityTargetEvent.java.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.TARGET_ATTACKED_OWNER

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

Definition at line 110 of file EntityTargetEvent.java.

org.bukkit.event.entity.EntityTargetEvent.TargetReason.TARGET_DIED

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: