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 int
private it.unimi.dsi.fastutil.longs.Long2LongMap
private static int
private long
private static int
private static int
private 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:
- Constant Field Values
-
BATCH_SIZE
private static final int BATCH_SIZE- See Also:
- Constant Field Values
-
RATE
private static final int RATE- See Also:
- Constant Field Values
-
OK_DISTANCE_SQR
private static final int OK_DISTANCE_SQR- See Also:
- Constant Field Values
-
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>
-