Class InteractWithDoor
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.InteractWithDoor
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private Node
private static double
private int
private static double
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
areOtherMobsComingThroughDoor(ServerLevel p_23304_, LivingEntity p_23305_, BlockPos p_23306_)
protected boolean
checkExtraStartConditions(ServerLevel p_23292_, LivingEntity p_23293_)
static void
closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel p_23299_, LivingEntity p_23300_, Node p_23301_, Node p_23302_)
private static boolean
isDoorTooFarAway(ServerLevel p_23308_, LivingEntity p_23309_, GlobalPos p_23310_)
private static boolean
isMobComingThroughDoor(ServerLevel p_23322_, LivingEntity p_23323_, BlockPos p_23324_)
private void
rememberDoorToClose(ServerLevel p_23326_, LivingEntity p_23327_, BlockPos p_23328_)
protected void
start(ServerLevel p_23295_, LivingEntity p_23296_, long p_23297_)
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
COOLDOWN_BEFORE_RERUNNING_IN_SAME_NODE
private static final int COOLDOWN_BEFORE_RERUNNING_IN_SAME_NODE- See Also:
- Constant Field Values
-
SKIP_CLOSING_DOOR_IF_FURTHER_AWAY_THAN
private static final double SKIP_CLOSING_DOOR_IF_FURTHER_AWAY_THAN- See Also:
- Constant Field Values
-
MAX_DISTANCE_TO_HOLD_DOOR_OPEN_FOR_OTHER_MOBS
private static final double MAX_DISTANCE_TO_HOLD_DOOR_OPEN_FOR_OTHER_MOBS- See Also:
- Constant Field Values
-
lastCheckedNode
-
remainingCooldown
private int remainingCooldown
-
-
Constructor Details
-
InteractWithDoor
public InteractWithDoor()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<LivingEntity>
-
start
- Overrides:
start
in classBehavior<LivingEntity>
-
closeDoorsThatIHaveOpenedOrPassedThrough
public static void closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel p_23299_, LivingEntity p_23300_, @Nullable Node p_23301_, @Nullable Node p_23302_) -
areOtherMobsComingThroughDoor
private static boolean areOtherMobsComingThroughDoor(ServerLevel p_23304_, LivingEntity p_23305_, BlockPos p_23306_) -
isMobComingThroughDoor
private static boolean isMobComingThroughDoor(ServerLevel p_23322_, LivingEntity p_23323_, BlockPos p_23324_) -
isDoorTooFarAway
private static boolean isDoorTooFarAway(ServerLevel p_23308_, LivingEntity p_23309_, GlobalPos p_23310_) -
rememberDoorToClose
-