Class TryFindWater
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.TryFindWater
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private final int
private final float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_148012_, PathfinderMob p_148013_) protected void
start
(ServerLevel p_148019_, PathfinderMob p_148020_, long p_148021_) protected void
stop
(ServerLevel p_148015_, PathfinderMob p_148016_, long p_148017_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
range
private final int range -
speedModifier
private final float speedModifier -
nextOkStartTime
private long nextOkStartTime
-
-
Constructor Details
-
TryFindWater
public TryFindWater(int p_148002_, float p_148003_)
-
-
Method Details
-
stop
- Overrides:
stop
in classBehavior<PathfinderMob>
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<PathfinderMob>
-
start
- Overrides:
start
in classBehavior<PathfinderMob>
-