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
FieldsFields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanareOtherMobsComingThroughDoor(ServerWorld p_242295_0_, LivingEntity p_242295_1_, BlockPos p_242295_2_) protected booleancheckExtraStartConditions(ServerWorld p_212832_1_, LivingEntity p_212832_2_) static voidcloseDoorsThatIHaveOpenedOrPassedThrough(ServerWorld p_242294_0_, LivingEntity p_242294_1_, PathPoint p_242294_2_, PathPoint p_242294_3_) private static booleanisDoorTooFarAway(ServerWorld p_242296_0_, LivingEntity p_242296_1_, GlobalPos p_242296_2_) private static booleanisMobComingThroughDoor(ServerWorld p_242300_0_, LivingEntity p_242300_1_, BlockPos p_242300_2_) private voidrememberDoorToClose(ServerWorld p_242301_1_, LivingEntity p_242301_2_, BlockPos p_242301_3_) protected voidstart(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:
checkExtraStartConditionsin classTask<LivingEntity>
-
start
- Overrides:
startin 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_)
-