Class SetClosestHomeAsWalkTarget
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.SetClosestHomeAsWalkTarget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final it.unimi.dsi.fastutil.longs.Long2LongMap
private static final int
private long
private static final int
private static final int
private final float
private int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_23879_, LivingEntity p_23880_) protected void
start
(ServerLevel p_23882_, LivingEntity p_23883_, long p_23884_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
CACHE_TIMEOUT
private static final int CACHE_TIMEOUT- See Also:
-
BATCH_SIZE
private static final int BATCH_SIZE- See Also:
-
RATE
private static final int RATE- See Also:
-
OK_DISTANCE_SQR
private static final int OK_DISTANCE_SQR- See Also:
-
speedModifier
private final float speedModifier -
batchCache
private final it.unimi.dsi.fastutil.longs.Long2LongMap batchCache -
triedCount
private int triedCount -
lastUpdate
private long lastUpdate
-
-
Constructor Details
-
SetClosestHomeAsWalkTarget
public SetClosestHomeAsWalkTarget(float p_23877_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<LivingEntity>
-
start
- Overrides:
start
in classBehavior<LivingEntity>
-