Class MoveToSkylightTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.MoveToSkylightTask
- Direct Known Subclasses:
GoOutsideAfterRaidTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, LivingEntity p_212832_2_) private Vector3d
getOutdoorPosition
(ServerWorld p_220493_1_, LivingEntity p_220493_2_) static boolean
hasNoBlocksAbove
(ServerWorld p_226306_0_, LivingEntity p_226306_1_, BlockPos p_226306_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 Details
-
speedModifier
private final float speedModifier
-
-
Constructor Details
-
MoveToSkylightTask
public MoveToSkylightTask(float p_i50357_1_)
-
-
Method Details
-
start
- Overrides:
start
in classTask<LivingEntity>
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<LivingEntity>
-
getOutdoorPosition
-
hasNoBlocksAbove
public static boolean hasNoBlocksAbove(ServerWorld p_226306_0_, LivingEntity p_226306_1_, BlockPos p_226306_2_)
-