Class InteractWithDoor
java.lang.Object
net.minecraft.world.entity.ai.behavior.InteractWithDoor
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final double
private static final double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
areOtherMobsComingThroughDoor
(LivingEntity p_260091_, BlockPos p_259764_, Optional<List<LivingEntity>> p_259365_) static void
closeDoorsThatIHaveOpenedOrPassedThrough
(ServerLevel p_260343_, LivingEntity p_259371_, Node p_259408_, Node p_260013_, Set<GlobalPos> p_259401_, Optional<List<LivingEntity>> p_260015_) static BehaviorControl
<LivingEntity> create()
private static boolean
isDoorTooFarAway
(ServerLevel p_23308_, LivingEntity p_23309_, GlobalPos p_23310_) private static boolean
isMobComingThroughDoor
(Brain<?> p_259548_, BlockPos p_259146_) rememberDoorToClose
(MemoryAccessor<com.mojang.datafixers.kinds.OptionalBox.Mu, Set<GlobalPos>> p_262178_, Optional<Set<GlobalPos>> p_261639_, ServerLevel p_261528_, BlockPos p_261874_)
-
Field Details
-
COOLDOWN_BEFORE_RERUNNING_IN_SAME_NODE
private static final int COOLDOWN_BEFORE_RERUNNING_IN_SAME_NODE- See Also:
-
SKIP_CLOSING_DOOR_IF_FURTHER_AWAY_THAN
private static final double SKIP_CLOSING_DOOR_IF_FURTHER_AWAY_THAN- See Also:
-
MAX_DISTANCE_TO_HOLD_DOOR_OPEN_FOR_OTHER_MOBS
private static final double MAX_DISTANCE_TO_HOLD_DOOR_OPEN_FOR_OTHER_MOBS- See Also:
-
-
Constructor Details
-
InteractWithDoor
public InteractWithDoor()
-
-
Method Details
-
create
-
closeDoorsThatIHaveOpenedOrPassedThrough
public static void closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel p_260343_, LivingEntity p_259371_, @Nullable Node p_259408_, @Nullable Node p_260013_, Set<GlobalPos> p_259401_, Optional<List<LivingEntity>> p_260015_) -
areOtherMobsComingThroughDoor
private static boolean areOtherMobsComingThroughDoor(LivingEntity p_260091_, BlockPos p_259764_, Optional<List<LivingEntity>> p_259365_) -
isMobComingThroughDoor
-
isDoorTooFarAway
private static boolean isDoorTooFarAway(ServerLevel p_23308_, LivingEntity p_23309_, GlobalPos p_23310_) -
rememberDoorToClose
-