Class EntityAIWorkChef
java.lang.Object
com.minecolonies.core.entity.ai.workers.AbstractAISkeleton<JobChef>
com.minecolonies.core.entity.ai.workers.AbstractEntityAIBasic<JobChef,BuildingKitchen>
com.minecolonies.core.entity.ai.workers.AbstractEntityAISkill<JobChef,BuildingKitchen>
com.minecolonies.core.entity.ai.workers.AbstractEntityAIInteract<JobChef,BuildingKitchen>
com.minecolonies.core.entity.ai.workers.crafting.AbstractEntityAICrafting<JobChef,BuildingKitchen>
com.minecolonies.core.entity.ai.workers.crafting.AbstractEntityAIRequestSmelter<JobChef,BuildingKitchen>
com.minecolonies.core.entity.ai.workers.crafting.EntityAIWorkChef
- All Implemented Interfaces:
ITickingStateAI
Crafts food related things.
-
Field Summary
Fields inherited from class com.minecolonies.core.entity.ai.workers.crafting.AbstractEntityAICrafting
currentRecipeStorage, currentRequest, HIT_DELAY, idlePos, MAX_LEVEL, NO_CHANGE, PROGRESS_MULTIPLIERFields 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 StringReturns the name of the crafting stat that is used in the building's statistics.Can be overridden in implementations to return the exact building type the worker expects.protected StringReturns the name of the smelting stat that is used in the building's statistics.Methods inherited from class com.minecolonies.core.entity.ai.workers.crafting.AbstractEntityAIRequestSmelter
executeCraftingAction, getExtendedCount, recordSmeltingBuildingStatsMethods inherited from class com.minecolonies.core.entity.ai.workers.crafting.AbstractEntityAICrafting
afterDump, checkForItems, craft, decide, finalizeCraftingTask, getActionRewardForCraftingSuccess, getActionsDoneUntilDumping, getLootContext, getLootContext, getNextCraftingState, getRecipe, getStateAfterPickUp, hasWorkToDo, hitBlockWithToolInHand, idle, isAfterDumpPickupAllowed, recordCraftingBuildingStats, resetValues, updateRenderMetaDataMethods 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
afterRequestPickUp, 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, 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
canBeInterrupted, getState, getStateAI, getTickRate, onRemoval, registerGroupTarget, registerTarget, registerTargets, resetAI, setCurrentDelay, tick
-
Constructor Details
-
EntityAIWorkChef
Initialize the Chef.- Parameters:
jobChef- the job he has.
-
-
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<JobChef,BuildingKitchen> - Returns:
- the building type associated with this AI's worker.
-
getSmeltingStatName
Returns the name of the smelting stat that is used in the building's statistics.- Overrides:
getSmeltingStatNamein classAbstractEntityAIRequestSmelter<JobChef,BuildingKitchen> - Returns:
- the name of the smelting stat.
-
getCraftingStatName
Returns the name of the crafting stat that is used in the building's statistics. Override this in your subclass to change the description of the smelting stat.- Overrides:
getCraftingStatNamein classAbstractEntityAICrafting<JobChef,BuildingKitchen> - Returns:
- The name of the crafting statistic.
-