Class JobHealer
java.lang.Object
com.minecolonies.core.colony.jobs.AbstractJob<EntityAIWorkHealer,JobHealer>
com.minecolonies.core.colony.jobs.JobHealer
- All Implemented Interfaces:
IJob<EntityAIWorkHealer>,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
The healer job class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleWalking speed bonus per levelFields inherited from class com.minecolonies.core.colony.jobs.AbstractJob
workBuilding, workBuildingPos, workModule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull EntityAIWorkHealerGenerate your AI class to register.doubleDisease modifier of the job.@NotNull net.minecraft.resources.ResourceLocationgetModel()Get the RenderBipedCitizen.Model to use when the Citizen performs this job role.voidLevelup actions on citizen levelup, allows custom actions based on JobsMethods inherited from class com.minecolonies.core.colony.jobs.AbstractJob
allowsAvoidance, assignTo, canAIBeInterrupted, clearActionsDone, createAI, deserializeNBT, equals, getActionsDone, getAsyncRequests, getBuildingPos, getCitizen, getColony, getJobRegistryEntry, getNameTagDescription, getWorkBuilding, getWorkerAI, getWorkModule, hasCheckedForFoodToday, hashCode, ignoresDamage, incrementActionsDone, incrementActionsDone, isIdling, markRequestSync, onRemoval, onStackPickUp, onWakeUp, pickupSuccess, processOfflineTime, resetAI, serializeNBT, serializeToView, 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, getSaturationFactor, initEntityValues, isGuard, triggerActivityChangeAction
-
Field Details
-
BONUS_SPEED_PER_LEVEL
public static final double BONUS_SPEED_PER_LEVELWalking speed bonus per level- See Also:
-
-
Constructor Details
-
JobHealer
Create a healer job.- Parameters:
entity- the healer.
-
-
Method Details
-
getModel
@NotNull public @NotNull net.minecraft.resources.ResourceLocation getModel()Get the RenderBipedCitizen.Model to use when the Citizen performs this job role.- Specified by:
getModelin interfaceIJob<EntityAIWorkHealer>- Overrides:
getModelin classAbstractJob<EntityAIWorkHealer,JobHealer> - Returns:
- Model of the citizen.
-
generateAI
Generate your AI class to register.- Returns:
- your personal AI instance.
-
onLevelUp
public void onLevelUp()Description copied from interface:IJobLevelup actions on citizen levelup, allows custom actions based on Jobs -
getDiseaseModifier
public double getDiseaseModifier()Description copied from interface:IJobDisease modifier of the job.- Specified by:
getDiseaseModifierin interfaceIJob<EntityAIWorkHealer>- Overrides:
getDiseaseModifierin classAbstractJob<EntityAIWorkHealer,JobHealer> - Returns:
- the modifier of the job.
-