Class EntityAIMelee
java.lang.Object
com.minecolonies.core.entity.ai.workers.AbstractAISkeleton<JobKnight>
com.minecolonies.core.entity.ai.workers.AbstractEntityAIBasic<JobKnight,AbstractBuildingGuards>
com.minecolonies.core.entity.ai.workers.AbstractEntityAISkill<JobKnight,AbstractBuildingGuards>
com.minecolonies.core.entity.ai.workers.AbstractEntityAIInteract<JobKnight,AbstractBuildingGuards>
com.minecolonies.core.entity.ai.workers.guard.AbstractEntityAIFight<JobKnight,AbstractBuildingGuards>
com.minecolonies.core.entity.ai.workers.guard.AbstractEntityAIGuard<JobKnight,AbstractBuildingGuards>
com.minecolonies.core.entity.ai.workers.guard.EntityAIMelee
- All Implemented Interfaces:
ITickingStateAI
Knight AI, which deals with gear specifics
-
Field Summary
Fields 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 @NotNull List<ItemStorage> Can be overridden by implementations to specify items useful for the worker.Methods inherited from class com.minecolonies.core.entity.ai.workers.guard.AbstractEntityAIGuard
canBeInterrupted, canHelp, decide, getActionsDoneUntilDumping, getCurrentPatrolPoint, getExpectedBuildingClass, getJob, getPersecutionDistance, guardMovement, hasTool, isAttackableTarget, isWithinPersecutionDistance, patrol, patrolMine, randomPatrolPoint, setWakeCitizen, sleep, startHelpCitizen, startWorkingAtOwnBuilding, stopSleepingMethods inherited from class com.minecolonies.core.entity.ai.workers.guard.AbstractEntityAIFight
afterDump, afterRequestPickUp, atBuildingActions, 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, onException, resetActionsDone, retrieveToolInHut, retrieveToolInTileEntity, setDelay, takeItemStackFromProvider, updateRenderMetaData, 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
-
Constructor Details
-
EntityAIMelee
-
-
Method Details
-
itemsNiceToHave
Description copied from class:AbstractEntityAIBasicCan be overridden by implementations to specify items useful for the worker. When the worker inventory is full, he will try to keep these items. ItemStack amounts are ignored, the first stack found will be taken.- Overrides:
itemsNiceToHavein classAbstractEntityAIBasic<JobKnight,AbstractBuildingGuards> - Returns:
- a list with items nice to have for the worker
-