net.minecraft.entity.ai.brain.task

public class OpenDoorsTask

net.minecraft.world.entity.ai.behavior.InteractWithDoor
net.minecraft.world.entity.ai.behavior.InteractWithDoor
net.minecraft.class_4107
net.minecraft.entity.ai.brain.task.OpenDoorsTask

Field summary

Modifier and TypeField
private static final int
COOLDOWN_BEFORE_RERUNNING_IN_SAME_NODE
COOLDOWN_BEFORE_RERUNNING_IN_SAME_NODE
field_30125
RUN_TIME
private static final double
SKIP_CLOSING_DOOR_IF_FURTHER_AWAY_THAN
SKIP_CLOSING_DOOR_IF_FURTHER_AWAY_THAN
field_30126
PATHING_DISTANCE
private static final double
MAX_DISTANCE_TO_HOLD_DOOR_OPEN_FOR_OTHER_MOBS
MAX_DISTANCE_TO_HOLD_DOOR_OPEN_FOR_OTHER_MOBS
field_30127
REACH_DISTANCE

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static Task<LivingEntity>
create()
create()
method_46964()
create()
public static void
closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel level, LivingEntity body, Node movingFromNode, Node movingToNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> nearestEntities)
closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel level, LivingEntity body, Node movingFromNode, Node movingToNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> nearestEntities)
method_30760(class_3218 arg0, class_1309 arg1, class_9 arg2, class_9 arg3, Set<class_4208> arg4, Optional<List<class_1309>> arg5)
pathToDoor(ServerWorld world, LivingEntity entity, PathNode lastNode, PathNode currentNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> otherMobs)
private static boolean
areOtherMobsComingThroughDoor(LivingEntity body, BlockPos doorPos, Optional<List<LivingEntity>> nearestEntities)
areOtherMobsComingThroughDoor(LivingEntity body, BlockPos doorPos, Optional<List<LivingEntity>> nearestEntities)
method_30761(class_1309 arg0, class_2338 arg1, Optional<List<class_1309>> arg2)
hasOtherMobReachedDoor(LivingEntity entity, BlockPos pos, Optional<List<LivingEntity>> otherMobs)
private static boolean
isMobComingThroughDoor(Brain<?> otherBrain, BlockPos doorPos)
isMobComingThroughDoor(Brain<?> otherBrain, BlockPos doorPos)
method_30766(class_4095<?> arg0, class_2338 arg1)
hasReached(Brain<?> brain, BlockPos pos)
private static boolean
isDoorTooFarAway(ServerLevel level, LivingEntity body, GlobalPos doorGlobalPos)
isDoorTooFarAway(ServerLevel level, LivingEntity body, GlobalPos doorGlobalPos)
method_30762(class_3218 arg0, class_1309 arg1, class_4208 arg2)
cannotReachDoor(ServerWorld world, LivingEntity entity, GlobalPos doorPos)
private static Optional<Set<GlobalPos>>
rememberDoorToClose(MemoryAccessor<com.mojang.datafixers.kinds.OptionalBox$Mu, Set<GlobalPos>> doorsMemory, Optional<Set<GlobalPos>> doors, ServerLevel level, BlockPos doorPos)
rememberDoorToClose(MemoryAccessor<com.mojang.datafixers.kinds.OptionalBox$Mu, Set<GlobalPos>> doorsMemory, Optional<Set<GlobalPos>> doors, ServerLevel level, BlockPos doorPos)
method_46969(class_7906<com.mojang.datafixers.kinds.OptionalBox$Mu, Set<class_4208>> arg0, Optional<Set<class_4208>> arg1, class_3218 arg2, class_2338 arg3)
storePos(MemoryQueryResult<com.mojang.datafixers.kinds.OptionalBox$Mu, Set<GlobalPos>> queryResult, Optional<Set<GlobalPos>> doors, ServerWorld world, BlockPos pos)