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 doublegetDesiredSquaredDistanceToTarget()voidonDestroyBlock(World world, BlockPos pos)voidtickStepping(WorldAccess world, BlockPos pos)Methods inherited from class net.minecraft.entity.ai.goal.StepAndDestroyBlockGoal
canStart, isTargetPos, start, stop, tickMethods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getInterval, getTargetPos, hasReached, shouldContinue, shouldResetPath, startMovingToTargetMethods 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:
tickSteppingin classStepAndDestroyBlockGoal
-
onDestroyBlock
- Overrides:
onDestroyBlockin classStepAndDestroyBlockGoal
-
getDesiredSquaredDistanceToTarget
public double getDesiredSquaredDistanceToTarget()- Overrides:
getDesiredSquaredDistanceToTargetin classMoveToTargetPosGoal
-