Interface SetAITargetEvent
-
- All Superinterfaces:
Cancellable
,Event
public interface SetAITargetEvent extends Event, Cancellable
Fires before the target of anAgent
is set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Agent
agent()
Gets theAgent
.void
setTarget(@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
-
-