Class InteractWithDoorTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<LivingEntity>
-
- net.minecraft.entity.ai.brain.task.InteractWithDoorTask
-
public class InteractWithDoorTask 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 PathPoint
lastCheckedNode
private int
remainingCooldown
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description InteractWithDoorTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static boolean
areOtherMobsComingThroughDoor(ServerWorld p_242295_0_, LivingEntity p_242295_1_, BlockPos p_242295_2_)
protected boolean
checkExtraStartConditions(ServerWorld p_212832_1_, LivingEntity p_212832_2_)
static void
closeDoorsThatIHaveOpenedOrPassedThrough(ServerWorld p_242294_0_, LivingEntity p_242294_1_, PathPoint p_242294_2_, PathPoint p_242294_3_)
private static boolean
isDoorTooFarAway(ServerWorld p_242296_0_, LivingEntity p_242296_1_, GlobalPos p_242296_2_)
private static boolean
isMobComingThroughDoor(ServerWorld p_242300_0_, LivingEntity p_242300_1_, BlockPos p_242300_2_)
private void
rememberDoorToClose(ServerWorld p_242301_1_, LivingEntity p_242301_2_, BlockPos p_242301_3_)
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
-
lastCheckedNode
@Nullable private PathPoint lastCheckedNode
-
remainingCooldown
private int remainingCooldown
-
-
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>
-
closeDoorsThatIHaveOpenedOrPassedThrough
public static void closeDoorsThatIHaveOpenedOrPassedThrough(ServerWorld p_242294_0_, LivingEntity p_242294_1_, @Nullable PathPoint p_242294_2_, @Nullable PathPoint p_242294_3_)
-
areOtherMobsComingThroughDoor
private static boolean areOtherMobsComingThroughDoor(ServerWorld p_242295_0_, LivingEntity p_242295_1_, BlockPos p_242295_2_)
-
isMobComingThroughDoor
private static boolean isMobComingThroughDoor(ServerWorld p_242300_0_, LivingEntity p_242300_1_, BlockPos p_242300_2_)
-
isDoorTooFarAway
private static boolean isDoorTooFarAway(ServerWorld p_242296_0_, LivingEntity p_242296_1_, GlobalPos p_242296_2_)
-
rememberDoorToClose
private void rememberDoorToClose(ServerWorld p_242301_1_, LivingEntity p_242301_2_, BlockPos p_242301_3_)
-
-