Class JobCrusher
java.lang.Object
com.minecolonies.core.colony.jobs.AbstractJob<EntityAIWorkCrusher,JobCrusher>
com.minecolonies.core.colony.jobs.AbstractJobCrafter<EntityAIWorkCrusher,JobCrusher>
com.minecolonies.core.colony.jobs.JobCrusher
- All Implemented Interfaces:
IJob<EntityAIWorkCrusher>,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
The crusher job class.
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.jobs.AbstractJob
workBuilding, workBuildingPos, workModule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull EntityAIWorkCrusherGenerate 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.voidplaySound(net.minecraft.core.BlockPos blockPos, EntityCitizen worker) Play a job specific work sound at a pos.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, 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, 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, getSaturationFactor, initEntityValues, isGuard, onLevelUp, triggerActivityChangeAction
-
Constructor Details
-
JobCrusher
Create a crusher job.- Parameters:
entity- the lumberjack.
-
-
Method Details
-
getDiseaseModifier
public double getDiseaseModifier()Description copied from interface:IJobDisease modifier of the job.- Specified by:
getDiseaseModifierin interfaceIJob<EntityAIWorkCrusher>- Overrides:
getDiseaseModifierin classAbstractJob<EntityAIWorkCrusher,JobCrusher> - Returns:
- the modifier of the job.
-
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<EntityAIWorkCrusher>- Overrides:
getModelin classAbstractJobCrafter<EntityAIWorkCrusher,JobCrusher> - Returns:
- Model of the citizen.
-
generateAI
Generate your AI class to register.- Returns:
- your personal AI instance.
-
playSound
Description copied from class:AbstractJobCrafterPlay a job specific work sound at a pos.- Overrides:
playSoundin classAbstractJobCrafter<EntityAIWorkCrusher,JobCrusher> - Parameters:
blockPos- the pos to play it at.worker- the worker to play it for.
-