Class TryFindLandNearWater
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.TryFindLandNearWater
-
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_217456_, PathfinderMob p_217457_) protected void
start
(ServerLevel p_217463_, PathfinderMob p_217464_, long p_217465_) protected void
stop
(ServerLevel p_217459_, PathfinderMob p_217460_, long p_217461_) 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
-
TryFindLandNearWater
public TryFindLandNearWater(int p_217446_, float p_217447_)
-
-
Method Details
-
stop
- Overrides:
stop
in classBehavior<PathfinderMob>
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<PathfinderMob>
-
start
- Overrides:
start
in classBehavior<PathfinderMob>
-