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 int
private static double
private long
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
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:
- Constant Field Values
-
DISTANCE
private static final double DISTANCE- See Also:
- Constant Field Values
-
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>
-