Class JobFarmer
java.lang.Object
com.minecolonies.core.colony.jobs.AbstractJob<AI,J>
com.minecolonies.core.colony.jobs.AbstractJobCrafter<EntityAIWorkFarmer,JobFarmer>
com.minecolonies.core.colony.jobs.JobFarmer
- All Implemented Interfaces:
IJob<EntityAIWorkFarmer>,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Job class of the farmer, handles his fields.
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.jobs.AbstractJob
workBuilding, workBuildingPos, workModule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull EntityAIWorkFarmerOverride to add Job-specific AI tasks to the given EntityAITask list.@NotNull net.minecraft.resources.ResourceLocationgetModel()Get the RenderBipedCitizen.Model to use when the Citizen performs this job role.doubleJob saturation factor.Methods inherited from class com.minecolonies.core.colony.jobs.AbstractJobCrafter
addRequest, deserializeNBT, finishRequest, getAssignedTasks, getAssignedTasksFromDataStore, getCraftCounter, getCurrentTask, getMaxCraftingCount, getProgress, getSecondaryOutputs, getTaskQueue, hasTask, onRemoval, onTaskBeingResolved, onTaskBeingScheduled, onTaskDeletion, playSound, serializeNBT, serializeToView, setCraftCounter, setMaxCraftingCount, setProgressMethods inherited from class com.minecolonies.core.colony.jobs.AbstractJob
allowsAvoidance, assignTo, canAIBeInterrupted, clearActionsDone, createAI, equals, getActionsDone, getAsyncRequests, getBuildingPos, getCitizen, getColony, getDiseaseModifier, getJobRegistryEntry, getNameTagDescription, getWorkBuilding, getWorkerAI, getWorkModule, hasCheckedForFoodToday, hashCode, ignoresDamage, incrementActionsDone, incrementActionsDone, isIdling, markRequestSync, onStackPickUp, onWakeUp, pickupSuccess, processOfflineTime, resetAI, setCheckedForFood, setNameTag, setRegistryEntry, triggerDeathAchievementMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.jobs.IJob
getIdleSeverity, getInactivityLimit, initEntityValues, isGuard, onLevelUp, triggerActivityChangeAction
-
Constructor Details
-
JobFarmer
Public constructor of the farmer job.- Parameters:
entity- the entity to assign to the job.
-
-
Method Details
-
getModel
@NotNull public @NotNull net.minecraft.resources.ResourceLocation getModel()Description copied from interface:IJobGet the RenderBipedCitizen.Model to use when the Citizen performs this job role.- Specified by:
getModelin interfaceIJob<EntityAIWorkFarmer>- Overrides:
getModelin classAbstractJobCrafter<EntityAIWorkFarmer,JobFarmer> - Returns:
- Model of the citizen.
-
generateAI
Override to add Job-specific AI tasks to the given EntityAITask list.- Returns:
- your personal AI instance.
-
getSaturationFactor
public double getSaturationFactor()Description copied from interface:IJobJob saturation factor.- Returns:
- increase in saturation consumption based on job.
-