public abstract class InteractDoorGoal extends Goal
修飾子とタイプ | フィールドと説明 |
---|---|
protected boolean |
doorInteract |
protected BlockPos |
doorPosition |
protected MobEntity |
entity |
コンストラクタと説明 |
---|
InteractDoorGoal(MobEntity entityIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected boolean |
canDestroy() |
static boolean |
canOpenDoor(World p_220695_0_,
BlockPos p_220695_1_) |
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
shouldExecute()
Returns whether execution should begin.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
tick()
Keep ticking a continuous task that has already been started
|
protected void |
toggleDoor(boolean open) |
getMutexFlags, isPreemptible, resetTask, setMutexFlags, toString
protected MobEntity entity
protected BlockPos doorPosition
protected boolean doorInteract
public InteractDoorGoal(MobEntity entityIn)
protected boolean canDestroy()
protected void toggleDoor(boolean open)
public boolean shouldExecute()
shouldExecute
クラス内 Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
クラス内 Goal
public void startExecuting()
startExecuting
クラス内 Goal
public void tick()