Class WorkAtPoi
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.WorkAtPoi
- All Implemented Interfaces:
BehaviorControl<Villager>
- Direct Known Subclasses:
WorkAtComposter
-
Nested Class Summary
Nested classes/interfaces inherited from class Behavior
Behavior.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final doubleprivate longFields inherited from class Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel level, Villager body, long timestamp) protected booleancheckExtraStartConditions(ServerLevel level, Villager body) protected voidstart(ServerLevel level, Villager body, long timestamp) protected voiduseWorkstation(ServerLevel level, Villager body) Methods inherited from class Behavior
debugString, doStop, getRequiredMemories, getStatus, hasRequiredMemories, stop, tick, tickOrStop, timedOut, tryStart
-
Field Details
-
CHECK_COOLDOWN
private static final int CHECK_COOLDOWN- See Also:
-
DISTANCE
private static final double DISTANCE- See Also:
-
lastCheck
private long lastCheck
-
-
Constructor Details
-
WorkAtPoi
public WorkAtPoi()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<Villager>
-
start
-
useWorkstation
-
canStillUse
- Overrides:
canStillUsein classBehavior<Villager>
-