public abstract class InteractDoorGoal extends Goal
Modifier and Type | Field and Description |
---|---|
protected boolean |
doorInteract |
protected BlockPos |
doorPosition |
protected MobEntity |
entity |
private float |
entityPositionX |
private float |
entityPositionZ |
private boolean |
hasStoppedDoorInteraction |
Constructor and Description |
---|
InteractDoorGoal(MobEntity entityIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canDestroy() |
static boolean |
canOpenDoor(World p_220695_0_,
BlockPos p_220695_1_) |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
protected void |
toggleDoor(boolean open) |
getMutexFlags, isPreemptible, resetTask, setMutexFlags, toString
protected MobEntity entity
protected BlockPos doorPosition
protected boolean doorInteract
private boolean hasStoppedDoorInteraction
private float entityPositionX
private float entityPositionZ
public InteractDoorGoal(MobEntity entityIn)
protected boolean canDestroy()
protected void toggleDoor(boolean open)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal