Interface IAssignsJob
- All Superinterfaces:
IAssignsCitizen,IBuildingModule,IHasDirty
- All Known Implementing Classes:
ChildrenBuildingModule,CourierAssignmentModule,CraftingWorkerBuildingModule,DeliverymanAssignmentModule,GuardBuildingModule,HospitalAssignmentModule,LumberjackAssignmentModule,MinerBuildingModule,NoPrivateCrafterWorkerModule,QuarryModule,StableCavalryBuildingModule,WorkAtHomeBuildingModule,WorkerBuildingModule
Interface for all modules that need special assignment handling.
-
Method Summary
Modifier and TypeMethodDescriptionGet the job entry of the module.booleanCheck if there are any assigned citizens in the module.Methods inherited from interface com.minecolonies.api.colony.buildings.modules.IAssignsCitizen
assignCitizen, getAssignedCitizen, getAssignedEntities, getHiringMode, getModuleMax, hasAssignedCitizen, isFull, removeCitizen, setHiringModeMethods inherited from interface com.minecolonies.api.colony.buildings.modules.IBuildingModule
getBuilding, getProducer, serializeToView, serializeToView, setBuilding, setProducerMethods inherited from interface com.minecolonies.api.util.IHasDirty
checkDirty, clearDirty, markDirty
-
Method Details
-
hasAssignedCitizen
boolean hasAssignedCitizen()Check if there are any assigned citizens in the module.- Specified by:
hasAssignedCitizenin interfaceIAssignsCitizen- Returns:
- true if so.
-
getJobEntry
JobEntry getJobEntry()Get the job entry of the module.- Returns:
- the job entry.
-