Class WorkAtPoi
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.WorkAtPoi
- Direct Known Subclasses:
WorkAtComposter
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerLevel p_24830_, Villager p_24831_, long p_24832_) protected boolean
checkExtraStartConditions
(ServerLevel p_24827_, Villager p_24828_) protected void
start
(ServerLevel p_24816_, Villager p_24817_, long p_24818_) protected void
useWorkstation
(ServerLevel p_24813_, Villager p_24814_)
-
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>
-