Class JobBeekeeper
java.lang.Object
com.minecolonies.core.colony.jobs.AbstractJob<EntityAIWorkBeekeeper,JobBeekeeper>
com.minecolonies.core.colony.jobs.JobBeekeeper
- All Implemented Interfaces:
IJob<EntityAIWorkBeekeeper>,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Class of the Beekeeper job.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe value where when reached the counter check returns true.Fields inherited from class com.minecolonies.core.colony.jobs.AbstractJob
workBuilding, workBuildingPos, workModule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the interaction is valid/should be triggered.Generate your AI class to register.net.minecraft.resources.ResourceLocationgetModel()Get the RenderBipedCitizen.Model to use when the Citizen performs this job role.voidReset the bee interaction counter.voidTick the bee interaction counter to determine the time when the interaction gets triggered.Methods inherited from class com.minecolonies.core.colony.jobs.AbstractJob
allowsAvoidance, 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, 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
-
Field Details
-
COUNTER_TRIGGER
public static final int COUNTER_TRIGGERThe value where when reached the counter check returns true. 100 ticks * 4 = 1 ingame day.- See Also:
-
-
Constructor Details
-
JobBeekeeper
Initialize citizen data.- Parameters:
entity- the citizen data.
-
-
Method Details
-
generateAI
Generate your AI class to register.Suppressing Sonar Rule squid:S1452 This rule does "Generic wildcard types should not be used in return parameters" But in this case the rule does not apply because We are fine with all AbstractJob implementations and need generics only for java
- Returns:
- your personal AI instance.
-
tickNoBees
public void tickNoBees()Tick the bee interaction counter to determine the time when the interaction gets triggered. -
resetCounter
public void resetCounter()Reset the bee interaction counter. -
checkForBeeInteraction
public boolean checkForBeeInteraction()Check if the interaction is valid/should be triggered.- Returns:
- true if the interaction is valid/should be triggered.
-
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<EntityAIWorkBeekeeper>- Overrides:
getModelin classAbstractJob<EntityAIWorkBeekeeper,JobBeekeeper> - Returns:
- Model of the citizen.
-