public abstract class MoveToBlockGoal extends Goal
Modifier and Type | Field and Description |
---|---|
protected CreatureEntity |
creature |
protected BlockPos |
destinationBlock |
protected int |
field_203112_e |
private int |
field_203113_j |
private boolean |
isAboveDestination |
private int |
maxStayTicks |
double |
movementSpeed |
protected int |
runDelay |
private int |
searchLength |
protected int |
timeoutCounter |
Constructor and Description |
---|
MoveToBlockGoal(CreatureEntity creature,
double speedIn,
int length) |
MoveToBlockGoal(CreatureEntity creatureIn,
double speed,
int length,
int p_i48796_5_) |
Modifier and Type | Method and Description |
---|---|
protected void |
func_220725_g() |
protected boolean |
getIsAboveDestination() |
protected int |
getRunDelay(CreatureEntity creatureIn) |
double |
getTargetDistanceSq() |
protected boolean |
searchForDestination() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
boolean |
shouldMove() |
protected abstract boolean |
shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, resetTask, setMutexFlags, toString
protected final CreatureEntity creature
public final double movementSpeed
protected int runDelay
protected int timeoutCounter
private int maxStayTicks
protected BlockPos destinationBlock
private boolean isAboveDestination
private final int searchLength
private final int field_203113_j
protected int field_203112_e
public MoveToBlockGoal(CreatureEntity creature, double speedIn, int length)
public MoveToBlockGoal(CreatureEntity creatureIn, double speed, int length, int p_i48796_5_)
public boolean shouldExecute()
shouldExecute
in class Goal
protected int getRunDelay(CreatureEntity creatureIn)
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal
protected void func_220725_g()
public double getTargetDistanceSq()
public boolean shouldMove()
protected boolean getIsAboveDestination()
protected boolean searchForDestination()
protected abstract boolean shouldMoveTo(IWorldReader worldIn, BlockPos pos)