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 booleandelayedCloseprivate intticksLeftFields 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 booleanshouldContinue()voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.DoorInteractGoal
canStart, isDoorOpen, setDoorOpenMethods 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:
shouldContinuein classDoorInteractGoal
-
start
public void start()- Overrides:
startin classDoorInteractGoal
-
stop
public void stop() -
tick
public void tick()- Overrides:
tickin classDoorInteractGoal
-