Class StrollAroundPoi
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.StrollAroundPoi
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final MemoryModuleType<GlobalPos>
private static final int
private long
private final float
private static final int
private static final int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
ConstructorDescriptionStrollAroundPoi
(MemoryModuleType<GlobalPos> p_24308_, float p_24309_, int p_24310_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_24319_, PathfinderMob p_24320_) protected void
start
(ServerLevel p_24322_, PathfinderMob p_24323_, long p_24324_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
MIN_TIME_BETWEEN_STROLLS
private static final int MIN_TIME_BETWEEN_STROLLS- See Also:
-
STROLL_MAX_XZ_DIST
private static final int STROLL_MAX_XZ_DIST- See Also:
-
STROLL_MAX_Y_DIST
private static final int STROLL_MAX_Y_DIST- See Also:
-
memoryType
-
nextOkStartTime
private long nextOkStartTime -
maxDistanceFromPoi
private final int maxDistanceFromPoi -
speedModifier
private final float speedModifier
-
-
Constructor Details
-
StrollAroundPoi
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<PathfinderMob>
-
start
- Overrides:
start
in classBehavior<PathfinderMob>
-