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 official bitintermediary net/minecraft/class_1382named net/minecraft/entity/ai/goal/StepAndDestroyBlockGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate final MobEntityprivate final BlockFields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime -
Constructor Summary
ConstructorsConstructorDescriptionStepAndDestroyBlockGoal(Block targetBlock, PathAwareEntity mob, double speed, int maxYDifference) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanStart()private booleanprotected 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.MoveToTargetPosGoal
findTargetPos, getDesiredDistanceToTarget, getInterval, getTargetPos, hasReached, shouldContinue, shouldResetPath, shouldRunEveryTick, startMovingToTargetMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, toGoalTicks, toString
-
Field Details
-
MAX_COOLDOWN
private static final int MAX_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector official jLbit;j:Iintermediary field_30227Lnet/minecraft/class_1382;field_30227:Inamed MAX_COOLDOWNLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;MAX_COOLDOWN:I
-
targetBlock
- Mappings:
Namespace Name Mixin selector official gLbit;g:Lciw;intermediary field_6587Lnet/minecraft/class_1382;field_6587:Lnet/minecraft/class_2248;named targetBlockLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;targetBlock:Lnet/minecraft/block/Block;
-
stepAndDestroyMob
- Mappings:
Namespace Name Mixin selector official hLbit;h:Lbbh;intermediary field_6589Lnet/minecraft/class_1382;field_6589:Lnet/minecraft/class_1308;named stepAndDestroyMobLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;stepAndDestroyMob:Lnet/minecraft/entity/mob/MobEntity;
-
counter
private int counter- Mappings:
Namespace Name Mixin selector official iLbit;i:Iintermediary field_6588Lnet/minecraft/class_1382;field_6588:Inamed counterLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;counter:I
-
-
Constructor Details
-
StepAndDestroyBlockGoal
public StepAndDestroyBlockGoal(Block targetBlock, PathAwareEntity mob, double speed, int maxYDifference) - Mappings:
Namespace Name Mixin selector official <init>Lbit;<init>(Lciw;Lbbo;DI)Vintermediary <init>Lnet/minecraft/class_1382;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_1314;DI)Vnamed <init>Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/entity/mob/PathAwareEntity;DI)V
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStartin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLbhs;a()Zintermediary method_6264Lnet/minecraft/class_1352;method_6264()Znamed canStartLnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
hasAvailableTarget
private boolean hasAvailableTarget()- Mappings:
Namespace Name Mixin selector official oLbit;o()Zintermediary method_20307Lnet/minecraft/class_1382;method_20307()Znamed hasAvailableTargetLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;hasAvailableTarget()Z
-
stop
public void stop() -
start
public void start()- Overrides:
startin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official cLbhs;c()Vintermediary method_6269Lnet/minecraft/class_1352;method_6269()Vnamed startLnet/minecraft/entity/ai/goal/Goal;start()V
-
tickStepping
- Mappings:
Namespace Name Mixin selector official aLbit;a(Lcgb;Lgt;)Vintermediary method_6307Lnet/minecraft/class_1382;method_6307(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Vnamed tickSteppingLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;tickStepping(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
-
onDestroyBlock
- Mappings:
Namespace Name Mixin selector official aLbit;a(Lcga;Lgt;)Vintermediary method_6309Lnet/minecraft/class_1382;method_6309(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed onDestroyBlockLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;onDestroyBlock(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
tick
public void tick()- Overrides:
tickin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official eLbhs;e()Vintermediary method_6268Lnet/minecraft/class_1352;method_6268()Vnamed tickLnet/minecraft/entity/ai/goal/Goal;tick()V
-
tweakToProperPos
- Mappings:
Namespace Name Mixin selector official aLbit;a(Lgt;Lcfg;)Lgt;intermediary method_6308Lnet/minecraft/class_1382;method_6308(Lnet/minecraft/class_2338;Lnet/minecraft/class_1922;)Lnet/minecraft/class_2338;named tweakToProperPosLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;tweakToProperPos(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/BlockView;)Lnet/minecraft/util/math/BlockPos;
-
isTargetPos
- Specified by:
isTargetPosin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLbif;a(Lcgd;Lgt;)Zintermediary method_6296Lnet/minecraft/class_1367;method_6296(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Znamed isTargetPosLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-