Class RandomSwim
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.RandomStroll
net.minecraft.world.entity.ai.behavior.RandomSwim
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.behavior.RandomStroll
maxHorizontalDistance, maxVerticalDistance
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_147858_, PathfinderMob p_147859_) protected Vec3
getTargetPos
(PathfinderMob p_147861_) Methods inherited from class net.minecraft.world.entity.ai.behavior.RandomStroll
start
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
XY_DISTANCE_TIERS
public static final int[][] XY_DISTANCE_TIERS
-
-
Constructor Details
-
RandomSwim
public RandomSwim(float p_147853_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classRandomStroll
-
getTargetPos
- Overrides:
getTargetPos
in classRandomStroll
-