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 int
private static final double
private long
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerLevel level, Villager entity, long gameTime) protected boolean
checkExtraStartConditions
(ServerLevel level, Villager owner) protected void
start
(ServerLevel level, Villager entity, long gameTime) protected void
useWorkstation
(ServerLevel level, Villager villager) 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:
checkExtraStartConditions
in classBehavior<Villager>
-
start
-
useWorkstation
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Villager>
-