Package net.minecraft.entity.ai.goal
Class StepAndDestroyBlockGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.ai.goal.StepAndDestroyBlockGoal
- Direct Known Subclasses:
- ZombieEntity.DestroyEggGoal
- Mappings:
- Namespace - Name - named - net/minecraft/entity/ai/goal/StepAndDestroyBlockGoal- intermediary - net/minecraft/class_1382- official - cdi
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.entity.ai.goal.GoalGoal.Control
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate final MobEntityprivate final BlockFields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoalcooldown, lowestY, mob, speed, targetPos, tryingTime
- 
Constructor SummaryConstructorsConstructorDescriptionStepAndDestroyBlockGoal(Block targetBlock, PathAwareEntity mob, double speed, int maxYDifference) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanStart()protected booleanisTargetPos(WorldView world, BlockPos pos) voidonDestroyBlock(World world, BlockPos pos) voidstart()voidstop()voidtick()voidtickStepping(WorldAccess world, BlockPos pos) tweakToProperPos(BlockPos pos, BlockView world) Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoalfindTargetPos, getDesiredDistanceToTarget, getInterval, getTargetPos, hasReached, shouldContinue, shouldResetPath, shouldRunEveryTick, startMovingToTargetMethods inherited from class net.minecraft.entity.ai.goal.GoalcanStop, castToServerWorld, getControls, getServerWorld, getTickCount, setControls, toGoalTicks, toString
- 
Field Details- 
MAX_COOLDOWNprivate static final int MAX_COOLDOWN- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MAX_COOLDOWN- Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;MAX_COOLDOWN:I- intermediary - field_30227- Lnet/minecraft/class_1382;field_30227:I- official - j- Lcdi;j:I
 
- 
targetBlock- Mappings:
- Namespace - Name - Mixin selector - named - targetBlock- Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;targetBlock:Lnet/minecraft/block/Block;- intermediary - field_6587- Lnet/minecraft/class_1382;field_6587:Lnet/minecraft/class_2248;- official - g- Lcdi;g:Ldjn;
 
- 
stepAndDestroyMob- Mappings:
- Namespace - Name - Mixin selector - named - stepAndDestroyMob- Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;stepAndDestroyMob:Lnet/minecraft/entity/mob/MobEntity;- intermediary - field_6589- Lnet/minecraft/class_1382;field_6589:Lnet/minecraft/class_1308;- official - h- Lcdi;h:Lbvk;
 
- 
counterprivate int counter- Mappings:
- Namespace - Name - Mixin selector - named - counter- Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;counter:I- intermediary - field_6588- Lnet/minecraft/class_1382;field_6588:I- official - i- Lcdi;i:I
 
 
- 
- 
Constructor Details- 
StepAndDestroyBlockGoalpublic StepAndDestroyBlockGoal(Block targetBlock, PathAwareEntity mob, double speed, int maxYDifference) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/entity/mob/PathAwareEntity;DI)V- intermediary - <init>- Lnet/minecraft/class_1382;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_1314;DI)V- official - <init>- Lcdi;<init>(Ldjn;Lbvq;DI)V
 
 
- 
- 
Method Details- 
canStartpublic boolean canStart()- Overrides:
- canStartin class- MoveToTargetPosGoal
- Mappings:
- Namespace - Name - Mixin selector - named - canStart- Lnet/minecraft/entity/ai/goal/Goal;canStart()Z- intermediary - method_6264- Lnet/minecraft/class_1352;method_6264()Z- official - b- Lccg;b()Z
 
- 
stoppublic void stop()
- 
startpublic void start()- Overrides:
- startin class- MoveToTargetPosGoal
- Mappings:
- Namespace - Name - Mixin selector - named - start- Lnet/minecraft/entity/ai/goal/Goal;start()V- intermediary - method_6269- Lnet/minecraft/class_1352;method_6269()V- official - d- Lccg;d()V
 
- 
tickStepping- Mappings:
- Namespace - Name - Mixin selector - named - tickStepping- Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;tickStepping(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_6307- Lnet/minecraft/class_1382;method_6307(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)V- official - a- Lcdi;a(Ldgk;Lji;)V
 
- 
onDestroyBlock- Mappings:
- Namespace - Name - Mixin selector - named - onDestroyBlock- Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;onDestroyBlock(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_6309- Lnet/minecraft/class_1382;method_6309(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V- official - a- Lcdi;a(Ldgj;Lji;)V
 
- 
tickpublic void tick()- Overrides:
- tickin class- MoveToTargetPosGoal
- Mappings:
- Namespace - Name - Mixin selector - named - tick- Lnet/minecraft/entity/ai/goal/Goal;tick()V- intermediary - method_6268- Lnet/minecraft/class_1352;method_6268()V- official - a- Lccg;a()V
 
- 
tweakToProperPos- Mappings:
- Namespace - Name - Mixin selector - named - tweakToProperPos- Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;tweakToProperPos(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/BlockView;)Lnet/minecraft/util/math/BlockPos;- intermediary - method_6308- Lnet/minecraft/class_1382;method_6308(Lnet/minecraft/class_2338;Lnet/minecraft/class_1922;)Lnet/minecraft/class_2338;- official - a- Lcdi;a(Lji;Ldfo;)Lji;
 
- 
isTargetPos- Specified by:
- isTargetPosin class- MoveToTargetPosGoal
- Mappings:
- Namespace - Name - Mixin selector - named - isTargetPos- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_6296- Lnet/minecraft/class_1367;method_6296(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z- official - a- Lcct;a(Ldgm;Lji;)Z
 
 
-