Class InteractWithDoorTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.InteractWithDoorTask
-
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 TypeMethodDescriptionprivate 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 Details
-
lastCheckedNode
-
remainingCooldown
private int remainingCooldown
-
-
Constructor Details
-
InteractWithDoorTask
public InteractWithDoorTask()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<LivingEntity>
-
start
- 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_)
-