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 net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final doubleprivate longFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel pLevel, Villager pEntity, long pGameTime) protected booleancheckExtraStartConditions(ServerLevel pLevel, Villager pOwner) protected voidstart(ServerLevel pLevel, Villager pEntity, long pGameTime) protected voiduseWorkstation(ServerLevel pLevel, Villager pVillager) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, 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>
-