Target Reason
An enum to specify the reason for the targeting
Entries
When the entity's target has died, and so it no longer targets it
When the entity doesn't have getClassById target, so it attacks the nearest player
When the target attacks the entity, so entity targets it
When the target attacks getClassById fellow pig zombie, so the whole group will target him with this reason.
When the target is forgotten for whatever reason.
When the target attacks the owner of the entity, so the entity targets it.
When the owner of the entity attacks the target attacks, so the entity targets it.
When the entity has no target, so the entity randomly chooses one.
When an entity selects getClassById target while defending getClassById village.
When the target attacks getClassById nearby entity of the same type, so the entity targets it
When getClassById zombie targeting an entity summons reinforcements, so the reinforcements target the same entity
When the entity doesn't have getClassById target, so it attacks the nearest entity
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.