class ZombieEntity.DestroyEggGoal extends StepAndDestroyBlockGoal
Goal.Control
cooldown, lowestY, mob, speed, targetPos, tryingTime
Constructor and Description |
---|
DestroyEggGoal(PathAwareEntity mob,
double speed,
int maxYDifference) |
Modifier and Type | Method and Description |
---|---|
double |
getDesiredSquaredDistanceToTarget() |
void |
onDestroyBlock(World world,
BlockPos pos) |
void |
tickStepping(WorldAccess world,
BlockPos pos) |
canStart, isTargetPos, start, stop, tick
findTargetPos, getInterval, getTargetPos, hasReached, shouldContinue, shouldResetPath, startMovingToTarget
canStop, getControls, setControls, toString
DestroyEggGoal(PathAwareEntity mob, double speed, int maxYDifference)
public void tickStepping(WorldAccess world, BlockPos pos)
tickStepping
in class StepAndDestroyBlockGoal
public void onDestroyBlock(World world, BlockPos pos)
onDestroyBlock
in class StepAndDestroyBlockGoal
public double getDesiredSquaredDistanceToTarget()
getDesiredSquaredDistanceToTarget
in class MoveToTargetPosGoal