Package net.minecraft.entity.ai.goal
Class DoorInteractGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.DoorInteractGoal
- Direct Known Subclasses:
BreakDoorGoal
,LongDoorInteractGoal
public abstract class DoorInteractGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DoorInteractGoal(MobEntity mob)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
protected boolean
isDoorOpen()
protected void
setDoorOpen(boolean open)
boolean
shouldContinue()
void
start()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, stop, toString
-
Field Details
-
mob
-
doorPos
-
doorValid
protected boolean doorValid -
shouldStop
private boolean shouldStop -
xOffset
private float xOffset -
zOffset
private float zOffset
-
-
Constructor Details
-
DoorInteractGoal
-
-
Method Details
-
isDoorOpen
protected boolean isDoorOpen() -
setDoorOpen
protected void setDoorOpen(boolean open) -
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
-
start
public void start() -
tick
public void tick()
-