Class JobPlaceholder
java.lang.Object
com.minecolonies.core.colony.jobs.AbstractJob<AbstractAISkeleton<JobPlaceholder>,JobPlaceholder>
com.minecolonies.core.colony.jobs.JobPlaceholder
- All Implemented Interfaces:
IJob<AbstractAISkeleton<JobPlaceholder>>,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Class of the placeholder job. Used if a certain building doesn't have a job yet.
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.jobs.AbstractJob
workBuilding, workBuildingPos, workModule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable AbstractAISkeleton<JobPlaceholder> Generate your AI class to register.Methods inherited from class com.minecolonies.core.colony.jobs.AbstractJob
allowsAvoidance, assignTo, canAIBeInterrupted, clearActionsDone, createAI, deserializeNBT, equals, getActionsDone, getAsyncRequests, getBuildingPos, getCitizen, getColony, getDiseaseModifier, getJobRegistryEntry, getModel, 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, onLevelUp, triggerActivityChangeAction
-
Constructor Details
-
JobPlaceholder
Instantiates the placeholder job.- Parameters:
entity- the entity.
-
-
Method Details
-
generateAI
Generate your AI class to register.- Returns:
- your personal AI instance.
-