Commits

md_5 authored 5dd09354607
SPIGOT-1373: Implement EntityTargetEvent for TEMPT.

This can be a high frequency event call. Use with care.
No tags

src/main/java/org/bukkit/event/entity/EntityTargetEvent.java

Modified
135 135 COLLISION,
136 136 /**
137 137 * For custom calls to the event.
138 138 */
139 139 CUSTOM,
140 140 /**
141 141 * When the entity doesn't have a target, so it attacks the nearest
142 142 * entity
143 143 */
144 144 CLOSEST_ENTITY,
145 + /**
146 + * When another entity tempts this entity by having a desired item such
147 + * as wheat in it's hand.
148 + */
149 + TEMPT,
145 150 /**
146 151 * A currently unknown reason for the entity changing target.
147 152 */
148 153 UNKNOWN;
149 154 }
150 155 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut