Class EntityAIDruid
java.lang.Object
com.minecolonies.core.entity.ai.workers.AbstractAISkeleton<J>
com.minecolonies.core.entity.ai.workers.AbstractEntityAIBasic<J,B>
com.minecolonies.core.entity.ai.workers.AbstractEntityAISkill<J,B>
com.minecolonies.core.entity.ai.workers.AbstractEntityAIInteract<J,B>
com.minecolonies.core.entity.ai.workers.guard.AbstractEntityAIFight<J,B>
com.minecolonies.core.entity.ai.workers.guard.AbstractEntityAIGuard<JobDruid,AbstractBuildingGuards>
com.minecolonies.core.entity.ai.workers.guard.EntityAIDruid
- All Implemented Interfaces:
ITickingStateAI
Druid AI class, which deals with equipment and movement specifics
-
Field Summary
FieldsFields inherited from class com.minecolonies.core.entity.ai.workers.guard.AbstractEntityAIGuard
buildingGuards, COMBAT_TIME, currentPatrolPoint, fighttimer, PATROL_DEVIATION_RAID_POINT, sleepingGuard, target, wakeTimerFields inherited from class com.minecolonies.core.entity.ai.workers.guard.AbstractEntityAIFight
itemsNeeded, SPEED_LEVEL_BONUS, toolsNeededFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidTask to do when at the own building, as guards only go there on requests and on dumpvoidMovement when guardingprotected voidCan be overridden in implementations.Methods inherited from class com.minecolonies.core.entity.ai.workers.guard.AbstractEntityAIGuard
canBeInterrupted, canHelp, decide, getActionsDoneUntilDumping, getCurrentPatrolPoint, getExpectedBuildingClass, getJob, getPersecutionDistance, hasTool, isAttackableTarget, isWithinPersecutionDistance, patrol, patrolMine, randomPatrolPoint, setWakeCitizen, sleep, startHelpCitizen, startWorkingAtOwnBuilding, stopSleepingMethods inherited from class com.minecolonies.core.entity.ai.workers.guard.AbstractEntityAIFight
afterDump, afterRequestPickUp, cleanVisibleSlots, equipInventoryArmor, getStateAfterPickUpMethods 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
cancelAsynchRequestForArmor, canGoIdle, checkAndTransferFromHut, checkForToolOrWeapon, checkForToolOrWeapon, checkForToolOrWeaponAsync, checkIfNeedsItem, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreate, checkIfRequestForItemExistOrCreateAsync, checkIfRequestForItemExistOrCreateAsync, checkIfRequestForItemExistOrCreateAsync, checkIfRequestForItemExistOrCreateAsync, checkIfRequestForItemExistOrCreateAsync, checkIfRequestForTagExistOrCreateAsync, getBuildingToDump, getEffectiveSkillLevel, getExceptionTimer, getFakePlayer, getInventory, getInvertedEffectiveSkillLevel, getModuleForJob, getMostEfficientTool, getPrimarySkillLevel, getSecondarySkillLevel, getTotalRequiredAmount, getWorkingPosition, getWorkingPosition, hasNotDelayed, holdEfficientTool, incrementActionsDone, incrementActionsDone, incrementActionsDoneAndDecSaturation, inventoryNeedsDump, isAfterDumpPickupAllowed, itemsNiceToHave, onException, resetActionsDone, retrieveToolInHut, retrieveToolInTileEntity, setDelay, takeItemStackFromProvider, waitForRequests, walkToBuilding, walkToBuilding, walkToSafePos, walkToTaggedWorkPos, walkToUnSafePos, walkToUnSafePos, walkToWorkPos, walkWithProxy, walkWithProxy, wantInventoryDumpedMethods inherited from class com.minecolonies.core.entity.ai.workers.AbstractAISkeleton
getState, getStateAI, getTickRate, onRemoval, registerGroupTarget, registerTarget, registerTargets, resetAI, setCurrentDelay, tick
-
Field Details
-
RENDER_META_POTION
Potion meta data.- See Also:
-
-
Constructor Details
-
EntityAIDruid
-
-
Method Details
-
updateRenderMetaData
protected void updateRenderMetaData()Description copied from class:AbstractEntityAIBasicCan be overridden in implementations.Here the AI can check if the chestBelt has to be re rendered and do it.
- Overrides:
updateRenderMetaDatain classAbstractEntityAIBasic<JobDruid,AbstractBuildingGuards>
-
atBuildingActions
protected void atBuildingActions()Description copied from class:AbstractEntityAIFightTask to do when at the own building, as guards only go there on requests and on dump- Overrides:
atBuildingActionsin classAbstractEntityAIFight<JobDruid,AbstractBuildingGuards>
-
guardMovement
public void guardMovement()Description copied from class:AbstractEntityAIGuardMovement when guarding- Overrides:
guardMovementin classAbstractEntityAIGuard<JobDruid,AbstractBuildingGuards>
-