Interface ICitizenJobHandler
- All Known Implementing Classes:
CitizenJobHandler
public interface ICitizenJobHandler
-
Method Summary
Modifier and TypeMethodDescription@Nullable IJob<?> Gets the job of the entity.<J extends IJob<?>>
JgetColonyJob(@NotNull Class<J> type) Get the job of the citizen.Get the AI running for this jobvoidonJobChanged(@Nullable IJob<?> job) Defines job changes and state changes of the citizen.voidsetModelDependingOnJob(@Nullable IJob<?> job) Set Model depending on job.voidsetWorkAI(ITickingStateAI workAI) Sets the work AI used in this jobbooleanMethod to check if the citizen job allows to run the avoidance task.
-
Method Details
-
setModelDependingOnJob
Set Model depending on job.- Parameters:
job- the new job.
-
onJobChanged
Defines job changes and state changes of the citizen.- Parameters:
job- the set job.
-
getColonyJob
Get the job of the citizen.- Type Parameters:
J- wildcard.- Parameters:
type- of the type.- Returns:
- the job.
-
getColonyJob
Gets the job of the entity.- Returns:
- the job or els enull.
-
shouldRunAvoidance
boolean shouldRunAvoidance()Method to check if the citizen job allows to run the avoidance task.- Returns:
- true if so.
-
setWorkAI
Sets the work AI used in this job- Parameters:
workAI-
-
getWorkAI
ITickingStateAI getWorkAI()Get the AI running for this job- Returns:
-