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