Interface IAssignmentModuleView
- All Superinterfaces:
IBuildingModuleView
- All Known Implementing Classes:
ArcherSquireModuleView,CombinedHiringLimitModuleView,CourierAssignmentModuleView,KnightSquireBuildingModuleView,MinerAssignmentModuleView,PupilBuildingModuleView,StudentBuildingModuleView,WorkerBuildingModuleView
Assignment module view interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCitizen(@NotNull ICitizenDataView id) Add a citizen.booleancanAssign(ICitizenDataView data) Check if citizens can be assigned.Get the list of assigned people.Get the hiring mode.Get the job entry of the citizen to be assigned.intGet the max number of inhabitantsdefault net.minecraft.resources.ResourceLocationIf unlocked by research it returns a research requirement.booleanisFull()Check if the module is full.voidremoveCitizen(@NotNull ICitizenDataView id) Remove a citizen.voidsetHiringMode(HiringMode hiringMode) Set the hiring mode.Methods inherited from interface com.minecolonies.api.colony.buildings.modules.IBuildingModuleView
deserialize, getBuildingView, getColony, getDesc, getIcon, getIconResourceLocation, getProducer, getWindow, isPageVisible, setBuildingView, setColonyView, setProducer
-
Method Details
-
getAssignedCitizens
Get the list of assigned people.- Returns:
- the list
-
addCitizen
Add a citizen.- Parameters:
id- the citizen id.
-
removeCitizen
Remove a citizen.- Parameters:
id- the citizen id/
-
getHiringMode
HiringMode getHiringMode()Get the hiring mode.- Returns:
- the set mode.
-
setHiringMode
Set the hiring mode.- Parameters:
hiringMode- the set mode.
-
canAssign
Check if citizens can be assigned.- Parameters:
data- the data to check.- Returns:
- true if so.
-
getMaxInhabitants
int getMaxInhabitants()Get the max number of inhabitants- Returns:
- max inhabitants
-
isFull
boolean isFull()Check if the module is full.- Returns:
- true if so.
-
getJobEntry
JobEntry getJobEntry()Get the job entry of the citizen to be assigned.- Returns:
- the entry.
-
getResearchRequirement
default net.minecraft.resources.ResourceLocation getResearchRequirement()If unlocked by research it returns a research requirement.- Returns:
- return null by default, otherwise String research effect key.
-