Package net.minecraft.entity.ai.goal
Class LongDoorInteractGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.DoorInteractGoal
net.minecraft.entity.ai.goal.LongDoorInteractGoal
- Direct Known Subclasses:
IllagerEntity.LongDoorInteractGoal
public class LongDoorInteractGoal extends DoorInteractGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private boolean
delayedClose
private int
ticksLeft
Fields inherited from class net.minecraft.entity.ai.goal.DoorInteractGoal
doorPos, doorValid, mob
-
Constructor Summary
Constructors Constructor Description LongDoorInteractGoal(MobEntity mob, boolean delayedClose)
-
Method Summary
Modifier and Type Method Description boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.DoorInteractGoal
canStart, isDoorOpen, setDoorOpen
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
delayedClose
private final boolean delayedClose -
ticksLeft
private int ticksLeft
-
-
Constructor Details
-
LongDoorInteractGoal
-
-
Method Details
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classDoorInteractGoal
-
start
public void start()- Overrides:
start
in classDoorInteractGoal
-
stop
public void stop() -
tick
public void tick()- Overrides:
tick
in classDoorInteractGoal
-