-
Method Summary
void
Sets the id of the worker.
Returns the id of the worker.
boolean
Check if it has enough worker.
void
Remove a worker from the list.
void
Set the hiring mode and sync to the server.
Methods inherited from interface com.minecolonies.api.colony.buildings.views.IBuildingView
allowsAssignment, deserialize, getAllAssignedCitizens, getBuildingDisplayName, getBuildingDmPrio, getBuildingMaxLevel, getClaimRadius, getColony, getCurrentWorkOrderLevel, getCustomName, getHoverWarningForLevel, getID, getOpenRequests, getOpenRequestsByCitizen, getOpenRequestsOfBuilding, getOpenRequestsOfType, getOpenRequestsOfTypeFiltered, getParent, getRange, getResolverIds, getRotation, getStructurePack, getStructurePath, getWindow, hasWorkOrder, isBuilding, isBuildingMaxLevel, isDeconstructed, isDeconstructing, isMirrored, isRepairing, openGui, setBuildingType, setCustomName
-
Method Details
-
getWorkerId
Returns the id of the worker.
- Returns:
- 0 if there is no worker else the correct citizen id.
-
addWorkerId
void addWorkerId(int workerId)
Sets the id of the worker.
- Parameters:
workerId - the id to set.
-
getPrimarySkill
@NotNull
@NotNull Skill getPrimarySkill()
Primary skill getter.
- Returns:
- the primary skill.
-
getSecondarySkill
@NotNull
@NotNull Skill getSecondarySkill()
Secondary skill getter.
- Returns:
- the secondary skill.
-
removeWorkerId
void removeWorkerId(int id)
Remove a worker from the list.
- Parameters:
id - the id to remove.
-
hasEnoughWorkers
boolean hasEnoughWorkers()
Check if it has enough worker.
- Returns:
- true if so.
-
setHiringMode
Set the hiring mode and sync to the server.
- Parameters:
hiringMode - the mode to set.
-
getJobName
Get the name of the job.
- Returns:
- job name.
-
getJobDisplayName
Get the name of the job.
- Returns:
- job name.