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 SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.BehaviorBehavior.Status
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final doubleprivate longFields inherited from class net.minecraft.world.entity.ai.behavior.BehaviorDEFAULT_DURATION, entryCondition
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel p_24830_, Villager p_24831_, long p_24832_) protected booleancheckExtraStartConditions(ServerLevel p_24827_, Villager p_24828_) protected voidstart(ServerLevel p_24816_, Villager p_24817_, long p_24818_) protected voiduseWorkstation(ServerLevel p_24813_, Villager p_24814_) Methods inherited from class net.minecraft.world.entity.ai.behavior.BehaviordebugString, doStop, getStatus, hasRequiredMemories, stop, tick, tickOrStop, timedOut, tryStart
- 
Field Details- 
CHECK_COOLDOWNprivate static final int CHECK_COOLDOWN- See Also:
 
- 
DISTANCEprivate static final double DISTANCE- See Also:
 
- 
lastCheckprivate long lastCheck
 
- 
- 
Constructor Details- 
WorkAtPoipublic WorkAtPoi()
 
- 
- 
Method Details- 
checkExtraStartConditions- Overrides:
- checkExtraStartConditionsin class- Behavior<Villager>
 
- 
start
- 
useWorkstation
- 
canStillUse- Overrides:
- canStillUsein class- Behavior<Villager>
 
 
-