Interface SetAITargetEvent
-
- All Superinterfaces:
Cancellable,Event
public interface SetAITargetEvent extends Event, Cancellable
Fires before the target of anAgentis set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Agentagent()Gets theAgent.voidsetTarget(@Nullable Entity target)java.util.Optional<Entity>target()-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
-
-
-
Method Detail
-
target
java.util.Optional<Entity> target()
- Returns:
- The target
-
-