Interface ICitizenJobHandler

All Known Implementing Classes:
CitizenJobHandler

public interface ICitizenJobHandler
  • Method Details

    • setModelDependingOnJob

      void setModelDependingOnJob(@Nullable @Nullable IJob<?> job)
      Set Model depending on job.
      Parameters:
      job - the new job.
    • onJobChanged

      void onJobChanged(@Nullable @Nullable IJob<?> job)
      Defines job changes and state changes of the citizen.
      Parameters:
      job - the set job.
    • getColonyJob

      @Nullable <J extends IJob<?>> J getColonyJob(@NotNull @NotNull Class<J> type)
      Get the job of the citizen.
      Type Parameters:
      J - wildcard.
      Parameters:
      type - of the type.
      Returns:
      the job.
    • getColonyJob

      @Nullable @Nullable IJob<?> 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

      void setWorkAI(ITickingStateAI workAI)
      Sets the work AI used in this job
      Parameters:
      workAI -
    • getWorkAI

      ITickingStateAI getWorkAI()
      Get the AI running for this job
      Returns: