-
Field Summary
Fields
static final int
Minimal level to ask for wood tools.
-
Method Summary
boolean
boolean
canEat(net.minecraft.world.item.ItemStack stack)
Check if the worker is allowed to eat the following stack.
boolean
Method which defines if a worker should be allowed to work during the rain.
The abstract method which creates a job for the building.
List<net.neoforged.neoforge.items.IItemHandler>
Get all handlers accociated with this building.
Get the current hiring mode of this building.
The abstract method which returns the name of the job.
int
Get the max tool level useable by the worker.
Recipe Improvement skill getter
boolean
Check if a certain ItemStack is in the request of a worker.
void
Set a new hiring mode in the building.
Methods inherited from interface com.minecolonies.api.colony.buildings.IBuilding
asyncPrestigeRecalc, buildingRequiresCertainAmountOfItem, buildingRequiresCertainAmountOfItem, calculateCorners, calculatePrestige, canAssignCitizens, canBeBuiltByBuilder, canBeGathered, cancelAllRequestsOfCitizenOrBuilding, canSort, createPickupRequest, createRequest, createRequest, createResolvers, deconstruct, destroy, forceTransferStack, getAllAssignedCitizen, getBuildingDisplayName, getCitizenForRequest, getClaimRadius, getCompletedRequestsOfCitizenOrBuilding, getCompletedRequestsOfType, getCompletedRequestsOfTypeFiltered, getCustomName, getLocationsFromTag, getOpenRequests, getOpenRequestsByRequestableType, getOpenRequestsOfType, getOpenRequestsOfTypeFiltered, getRequester, getRequiredItemsAndAmount, getResolvers, getSetting, getSettingValueOrDefault, hasCitizenCompletedRequests, hasCitizenCompletedRequestsToPickup, hasOpenSyncRequest, hasWorkerOpenRequests, hasWorkerOpenRequestsFiltered, hasWorkerOpenRequestsOfType, isBuilt, isGuardBuildingNear, isInBuilding, isMatchingBlock, isPendingConstruction, markDirty, markRequestAsAccepted, onCleanUp, onColonyTick, onDestroyed, onPlacement, onPlayerEnterBuilding, onPlayerEnterNearby, onRestart, onUpgradeComplete, onWakeUp, overruleNextOpenRequestOfCitizenWithStack, overruleNextOpenRequestWithStack, pickUp, processOfflineTime, removeWorkOrder, requestRemoval, requestRepair, requestUpgrade, reservedStacksExcluding, resetGuardBuildingNear, serializeToView, setBuildingType, setCustomBuildingName, sort, upgradeBuildingLevelToSchematicData, writeToItemStack
Methods inherited from interface com.minecolonies.api.colony.buildings.IBuildingContainer
addContainerPosition, alterPickUpPriority, deserializeNBT, getContainers, getPickUpPriority, getTileEntity, registerBlockPosition, registerBlockPosition, removeContainerPosition, serializeNBT, setTileEntity
Methods inherited from interface com.minecolonies.api.colony.modules.IModuleContainer
getClassType, getFirstModuleOccurance, getModule, getModule, getModule, getModuleMatching, getModules, getModules, getModules, getModules, getModulesByType, hasModule, hasModule, hasModule
Methods inherited from interface com.minecolonies.api.colony.buildings.ISchematicProvider
clearDirty, getBlueprintPath, getChildren, getCorners, getID, getMaxBuildingLevel, getParent, getRotationMirror, getSchematicName, getStructurePack, hasParent, isDeconstructed, isDirty, onUpgradeSchematicTo, setBlueprintPath, setBuildingLevel, setCorners, setDeconstructed, setParent, setRotationMirror, setStructurePack
-
Field Details
-
WOOD_HUT_LEVEL
static final int WOOD_HUT_LEVEL
Minimal level to ask for wood tools. (WOOD_HUT_LEVEL + 1 == stone)
- See Also:
-
-
Method Details
-
createJob
The abstract method which creates a job for the building.
- Parameters:
citizen - the citizen to take the job.
- Returns:
- the Job.
-
isItemStackInRequest
boolean isItemStackInRequest(@Nullable
@Nullable net.minecraft.world.item.ItemStack stack)
Check if a certain ItemStack is in the request of a worker.
- Specified by:
isItemStackInRequest in interface IBuilding
- Parameters:
stack - the stack to chest.
- Returns:
- true if so.
-
setHiringMode
Set a new hiring mode in the building.
- Parameters:
hiringMode - the mode to set.
-
getHiringMode
Get the current hiring mode of this building.
- Returns:
- the current mode.
-
getHandlers
List<net.neoforged.neoforge.items.IItemHandler> getHandlers()
Get all handlers accociated with this building.
- Specified by:
getHandlers in interface IBuilding
- Returns:
- the handlers of the building + citizen.
-
-
getJobName
@NotNull
@NotNull String getJobName()
The abstract method which returns the name of the job.
- Returns:
- the job name.
-
getMaxEquipmentLevel
int getMaxEquipmentLevel()
Get the max tool level useable by the worker.
- Specified by:
getMaxEquipmentLevel in interface IBuilding
- Returns:
- the integer.
-
canWorkDuringTheRain
boolean canWorkDuringTheRain()
Method which defines if a worker should be allowed to work during the rain.
- Returns:
- true if so.
-
getPrimarySkill
@NotNull
@NotNull Skill getPrimarySkill()
Primary skill getter.
- Returns:
- the primary skill.
-
getSecondarySkill
@NotNull
@NotNull Skill getSecondarySkill()
Secondary skill getter.
- Returns:
- the secondary skill.
-
getRecipeImprovementSkill
@NotNull
@NotNull Skill getRecipeImprovementSkill()
Recipe Improvement skill getter
- Returns:
- the recipe improvement skill
-
canEat
boolean canEat(net.minecraft.world.item.ItemStack stack)
Check if the worker is allowed to eat the following stack.
- Specified by:
canEat in interface IBuilding
- Parameters:
stack - the stack to test.
- Returns:
- true if so.