Package net.minecraft.entity.mob
Class ZombieEntity.DestroyEggGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.ai.goal.StepAndDestroyBlockGoal
net.minecraft.entity.mob.ZombieEntity.DestroyEggGoal
- Enclosing class:
- ZombieEntity
class ZombieEntity.DestroyEggGoal extends StepAndDestroyBlockGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime
-
Constructor Summary
Constructors Constructor Description DestroyEggGoal(PathAwareEntity mob, double speed, int maxYDifference)
-
Method Summary
Modifier and Type Method Description double
getDesiredSquaredDistanceToTarget()
void
onDestroyBlock(World world, BlockPos pos)
void
tickStepping(WorldAccess world, BlockPos pos)
Methods inherited from class net.minecraft.entity.ai.goal.StepAndDestroyBlockGoal
canStart, isTargetPos, start, stop, tick
Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getInterval, getTargetPos, hasReached, shouldContinue, shouldResetPath, startMovingToTarget
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Constructor Details
-
DestroyEggGoal
DestroyEggGoal(PathAwareEntity mob, double speed, int maxYDifference)
-
-
Method Details
-
tickStepping
- Overrides:
tickStepping
in classStepAndDestroyBlockGoal
-
onDestroyBlock
- Overrides:
onDestroyBlock
in classStepAndDestroyBlockGoal
-
getDesiredSquaredDistanceToTarget
public double getDesiredSquaredDistanceToTarget()- Overrides:
getDesiredSquaredDistanceToTarget
in classMoveToTargetPosGoal
-