Class JobRanger
java.lang.Object
com.minecolonies.core.colony.jobs.AbstractJob<AbstractEntityAIGuard<J,? extends AbstractBuildingGuards>,J>
com.minecolonies.core.colony.jobs.AbstractJobGuard<JobRanger>
com.minecolonies.core.colony.jobs.guard.JobRanger
- All Implemented Interfaces:
IJob<AbstractEntityAIGuard<JobRanger,,? extends AbstractBuildingGuards>> net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- Direct Known Subclasses:
JobMarksman
The Ranger'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 TypeMethodDescriptionEquipment type of this guard.net.minecraft.resources.ResourceLocationgetModel()Get the RenderBipedCitizen.Model to use when the Citizen performs this job role.Methods 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, onLevelUp, triggerActivityChangeAction
-
Constructor Details
-
JobRanger
Initialize citizen data.- Parameters:
entity- the citizen data.
-
-
Method Details
-
generateGuardAI
- Specified by:
generateGuardAIin classAbstractJobGuard<JobRanger>
-
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<JobRanger,? extends AbstractBuildingGuards>> - Overrides:
getModelin classAbstractJob<AbstractEntityAIGuard<JobRanger,? extends AbstractBuildingGuards>, JobRanger> - Returns:
- Model of the citizen.
-
getEquipmentType
Equipment type of this guard.- Returns:
- the type.
-