Class FindHidingPlaceTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<LivingEntity>
-
- net.minecraft.entity.ai.brain.task.FindHidingPlaceTask
-
- Direct Known Subclasses:
FindHidingPlaceDuringRaidTask
public class FindHidingPlaceTask extends Task<LivingEntity>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
Field Summary
Fields Modifier and Type Field Description private int
closeEnoughDist
private java.util.Optional<BlockPos>
currentPos
private int
radius
private float
speedModifier
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description FindHidingPlaceTask(int p_i50361_1_, float p_i50361_2_, int p_i50361_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkExtraStartConditions(ServerWorld p_212832_1_, LivingEntity p_212832_2_)
protected void
start(ServerWorld p_212831_1_, LivingEntity p_212831_2_, long p_212831_3_)
-
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
-
-
-
Field Detail
-
speedModifier
private final float speedModifier
-
radius
private final int radius
-
closeEnoughDist
private final int closeEnoughDist
-
currentPos
private java.util.Optional<BlockPos> currentPos
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, LivingEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<LivingEntity>
-
start
protected void start(ServerWorld p_212831_1_, LivingEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<LivingEntity>
-
-