Class HuntCelebrationTask<E extends MobEntity>
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<E>
-
- net.minecraft.entity.ai.brain.task.HuntCelebrationTask<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 int
closeEnoughDist
private float
speedModifier
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description HuntCelebrationTask(int p_i231518_1_, float p_i231518_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static BlockPos
getCelebrateLocation(MobEntity p_233899_0_)
private static BlockPos
getNearbyPos(MobEntity p_233900_0_, BlockPos p_233900_1_)
private static int
getRandomOffset(java.util.Random p_233901_0_)
protected void
start(ServerWorld p_212831_1_, MobEntity p_212831_2_, long p_212831_3_)
-
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, checkExtraStartConditions, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
-
-
-
Method Detail
-
start
protected void start(ServerWorld p_212831_1_, MobEntity p_212831_2_, long p_212831_3_)
-
getRandomOffset
private static int getRandomOffset(java.util.Random p_233901_0_)
-
-