Class JobDruid
java.lang.Object
com.minecolonies.core.colony.jobs.AbstractJob<AbstractEntityAIGuard<J,? extends AbstractBuildingGuards>,J>
com.minecolonies.core.colony.jobs.AbstractJobGuard<JobDruid>
com.minecolonies.core.colony.jobs.guard.JobDruid
- All Implemented Interfaces:
IJob<AbstractEntityAIGuard<JobDruid,,? extends AbstractBuildingGuards>> net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
The Druid's Job class
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.jobs.AbstractJob
workBuilding, workBuildingPos, workModule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.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.AbstractJobGuard
allowsAvoidance, generateAI, getSaturationFactor, initEntityValues, isAsleep, isGuard, triggerDeathAchievementMethods inherited from class com.minecolonies.core.colony.jobs.AbstractJob
assignTo, canAIBeInterrupted, clearActionsDone, createAI, deserializeNBT, equals, getActionsDone, getAsyncRequests, getBuildingPos, getCitizen, getColony, getDiseaseModifier, getJobRegistryEntry, getNameTagDescription, getWorkBuilding, getWorkerAI, getWorkModule, hasCheckedForFoodToday, hashCode, ignoresDamage, incrementActionsDone, incrementActionsDone, isIdling, markRequestSync, onRemoval, onStackPickUp, onWakeUp, pickupSuccess, processOfflineTime, resetAI, serializeNBT, serializeToView, setCheckedForFood, setNameTag, setRegistryEntryMethods 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, triggerActivityChangeAction
-
Constructor Details
-
JobDruid
Initialize citizen data.- Parameters:
entity- the citizen data.
-
-
Method Details
-
generateGuardAI
- Specified by:
generateGuardAIin classAbstractJobGuard<JobDruid>
-
onLevelUp
public void onLevelUp()Description copied from interface:IJobLevelup actions on citizen levelup, allows custom actions based on Jobs -
getModel
public 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<AbstractEntityAIGuard<JobDruid,? extends AbstractBuildingGuards>> - Overrides:
getModelin classAbstractJob<AbstractEntityAIGuard<JobDruid,? extends AbstractBuildingGuards>, JobDruid> - Returns:
- Model of the citizen.
-