Class ChildFollowNearestAdultTask<E extends AgeableEntity>
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<E>
-
- net.minecraft.entity.ai.brain.task.ChildFollowNearestAdultTask<E>
-
public class ChildFollowNearestAdultTask<E extends AgeableEntity> extends Task<E>
-
-
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 RangedInteger
followRange
private float
speedModifier
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description ChildFollowNearestAdultTask(RangedInteger p_i231508_1_, float p_i231508_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkExtraStartConditions(ServerWorld p_212832_1_, E p_212832_2_)
private AgeableEntity
getNearestAdult(E p_233852_1_)
protected void
start(ServerWorld p_212831_1_, E 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
-
followRange
private final RangedInteger followRange
-
speedModifier
private final float speedModifier
-
-
Constructor Detail
-
ChildFollowNearestAdultTask
public ChildFollowNearestAdultTask(RangedInteger p_i231508_1_, float p_i231508_2_)
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, E p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<E extends AgeableEntity>
-
start
protected void start(ServerWorld p_212831_1_, E p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<E extends AgeableEntity>
-
getNearestAdult
private AgeableEntity getNearestAdult(E p_233852_1_)
-
-