class ZombieEntity.DestroyEggGoal extends StepAndDestroyBlockGoal
Goal.Controlcooldown, 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(WorldAccess world,
BlockPos pos) |
canStart, isTargetPos, start, stop, tickfindTargetPos, getInterval, hasReached, shouldContinue, shouldResetPath, startMovingToTargetcanStop, getControls, setControls, toStringDestroyEggGoal(MobEntityWithAi mob, double speed, int maxYDifference)
public void tickStepping(WorldAccess world, BlockPos pos)
tickStepping in class StepAndDestroyBlockGoalpublic void onDestroyBlock(World world, BlockPos pos)
onDestroyBlock in class StepAndDestroyBlockGoalpublic double getDesiredSquaredDistanceToTarget()
getDesiredSquaredDistanceToTarget in class MoveToTargetPosGoal