Class EntityAIWorkUndertaker
java.lang.Object
com.minecolonies.core.entity.ai.workers.AbstractAISkeleton<JobUndertaker>
com.minecolonies.core.entity.ai.workers.AbstractEntityAIBasic<JobUndertaker,BuildingGraveyard>
com.minecolonies.core.entity.ai.workers.AbstractEntityAISkill<JobUndertaker,BuildingGraveyard>
com.minecolonies.core.entity.ai.workers.AbstractEntityAIInteract<JobUndertaker,BuildingGraveyard>
com.minecolonies.core.entity.ai.workers.service.EntityAIWorkUndertaker
- All Implemented Interfaces:
ITickingStateAI
public class EntityAIWorkUndertaker
extends AbstractEntityAIInteract<JobUndertaker,BuildingGraveyard>
Undertaker AI class.
-
Field Summary
Fields inherited from class com.minecolonies.core.entity.ai.workers.AbstractEntityAIInteract
BLOCK_MINING_DELAY, RANGE_HORIZONTAL_PICKUP, RANGE_VERTICAL_PICKUP, RENDER_META_WORKING, XP_PER_BLOCKFields inherited from class com.minecolonies.core.entity.ai.workers.AbstractEntityAIBasic
building, currentWorkingLocation, needsCurrently, NO_TOOL, REQUEST_DELAY, STANDARD_DELAY, WALK_DELAY, walkTo, workPosIndexFields inherited from class com.minecolonies.core.entity.ai.workers.AbstractAISkeleton
job, worker, world -
Constructor Summary
ConstructorsConstructorDescriptionEntityAIWorkUndertaker(@NotNull JobUndertaker job) Constructor for the Undertaker. -
Method Summary
Modifier and TypeMethodDescription@Nullable AbstractEntityCitizenReturns the undertaker's worker instance.Can be overridden in implementations to return the exact building type the worker expects.protected booleanCalled to check when the InventoryShouldBeDumped.Methods inherited from class com.minecolonies.core.entity.ai.workers.AbstractEntityAIInteract
fillItemsList, gatherItems, getBlockMiningTime, getBreakSpeedLevel, getItemsForPickUp, increaseBlockDrops, isItemWorthPickingUp, mineBlock, mineBlock, mineBlock, onBlockDropReception, resetGatheringItems, searchForItems, shouldSilkTouchBlock, triggerMinedBlockMethods inherited from class com.minecolonies.core.entity.ai.workers.AbstractEntityAIBasic
afterDump, afterRequestPickUp, cancelAsynchRequestForArmor, canGoIdle, checkAndTransferFromHut, checkForToolOrWeapon, checkForToolOrWeapon, checkForToolOrWeaponAsync, checkIfNeedsItem, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreateAsync, checkIfRequestForItemExistOrCreateAsync, checkIfRequestForItemExistOrCreateAsync, checkIfRequestForItemExistOrCreateAsync, checkIfRequestForItemExistOrCreateAsync, checkIfRequestForTagExistOrCreateAsync, getActionsDoneUntilDumping, getBuildingToDump, getEffectiveSkillLevel, getExceptionTimer, getFakePlayer, getInventory, getInvertedEffectiveSkillLevel, getModuleForJob, getMostEfficientTool, getPrimarySkillLevel, getSecondarySkillLevel, getStateAfterPickUp, getTotalRequiredAmount, getWorkingPosition, getWorkingPosition, hasNotDelayed, holdEfficientTool, incrementActionsDone, incrementActionsDone, incrementActionsDoneAndDecSaturation, inventoryNeedsDump, isAfterDumpPickupAllowed, itemsNiceToHave, onException, resetActionsDone, retrieveToolInHut, retrieveToolInTileEntity, setDelay, takeItemStackFromProvider, updateRenderMetaData, waitForRequests, walkToBuilding, walkToBuilding, walkToSafePos, walkToTaggedWorkPos, walkToUnSafePos, walkToUnSafePos, walkToWorkPos, walkWithProxy, walkWithProxyMethods inherited from class com.minecolonies.core.entity.ai.workers.AbstractAISkeleton
canBeInterrupted, getState, getStateAI, getTickRate, onRemoval, registerGroupTarget, registerTarget, registerTargets, resetAI, setCurrentDelay, tick
-
Constructor Details
-
EntityAIWorkUndertaker
Constructor for the Undertaker. Defines the tasks the Undertaker executes.- Parameters:
job- a undertaker job to use.
-
-
Method Details
-
getExpectedBuildingClass
Description copied from class:AbstractEntityAIBasicCan be overridden in implementations to return the exact building type the worker expects.- Specified by:
getExpectedBuildingClassin classAbstractEntityAIBasic<JobUndertaker,BuildingGraveyard> - Returns:
- the building type associated with this AI's worker.
-
wantInventoryDumped
protected boolean wantInventoryDumped()Called to check when the InventoryShouldBeDumped.- Overrides:
wantInventoryDumpedin classAbstractEntityAIBasic<JobUndertaker,BuildingGraveyard> - Returns:
- true if the conditions are met
-
getCitizen
Returns the undertaker's worker instance. Called from outside this class.- Returns:
- citizen object
-