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 bdv
intermediary net/minecraft/class_1382
named 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
Modifier and TypeFieldDescriptionprivate int
private static final int
private final MobEntity
private final Block
Fields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime
-
Constructor Summary
ConstructorDescriptionStepAndDestroyBlockGoal
(Block targetBlock, PathAwareEntity mob, double speed, int maxYDifference) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canStart()
private boolean
protected boolean
isTargetPos
(WorldView world, BlockPos pos) void
onDestroyBlock
(World world, BlockPos pos) void
start()
void
stop()
void
tick()
void
tickStepping
(WorldAccess world, BlockPos pos) tweakToProperPos
(BlockPos pos, BlockView world) Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getDesiredSquaredDistanceToTarget, getInterval, getTargetPos, hasReached, shouldContinue, shouldResetPath, shouldRunEveryTick, startMovingToTarget
Methods 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 j
Lbdv;j:I
intermediary field_30227
Lnet/minecraft/class_1382;field_30227:I
named MAX_COOLDOWN
Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;MAX_COOLDOWN:I
-
targetBlock
- Mappings:
Namespace Name Mixin selector official g
Lbdv;g:Lccr;
intermediary field_6587
Lnet/minecraft/class_1382;field_6587:Lnet/minecraft/class_2248;
named targetBlock
Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;targetBlock:Lnet/minecraft/block/Block;
-
stepAndDestroyMob
- Mappings:
Namespace Name Mixin selector official h
Lbdv;h:Laxc;
intermediary field_6589
Lnet/minecraft/class_1382;field_6589:Lnet/minecraft/class_1308;
named stepAndDestroyMob
Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;stepAndDestroyMob:Lnet/minecraft/entity/mob/MobEntity;
-
counter
private int counter- Mappings:
Namespace Name Mixin selector official i
Lbdv;i:I
intermediary field_6588
Lnet/minecraft/class_1382;field_6588:I
named counter
Lnet/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>
Lbdv;<init>(Lccr;Laxj;DI)V
intermediary <init>
Lnet/minecraft/class_1382;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_1314;DI)V
named <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:
canStart
in classMoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official a
Lbcu;a()Z
intermediary method_6264
Lnet/minecraft/class_1352;method_6264()Z
named canStart
Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
hasAvailableTarget
private boolean hasAvailableTarget()- Mappings:
Namespace Name Mixin selector official o
Lbdv;o()Z
intermediary method_20307
Lnet/minecraft/class_1382;method_20307()Z
named hasAvailableTarget
Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;hasAvailableTarget()Z
-
stop
public void stop() -
start
public void start()- Overrides:
start
in classMoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official c
Lbcu;c()V
intermediary method_6269
Lnet/minecraft/class_1352;method_6269()V
named start
Lnet/minecraft/entity/ai/goal/Goal;start()V
-
tickStepping
- Mappings:
Namespace Name Mixin selector official a
Lbdv;a(Lbzx;Lgh;)V
intermediary method_6307
Lnet/minecraft/class_1382;method_6307(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)V
named tickStepping
Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;tickStepping(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
-
onDestroyBlock
- Mappings:
Namespace Name Mixin selector official a
Lbdv;a(Lbzw;Lgh;)V
intermediary method_6309
Lnet/minecraft/class_1382;method_6309(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
named onDestroyBlock
Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;onDestroyBlock(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
tick
public void tick()- Overrides:
tick
in classMoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official e
Lbcu;e()V
intermediary method_6268
Lnet/minecraft/class_1352;method_6268()V
named tick
Lnet/minecraft/entity/ai/goal/Goal;tick()V
-
tweakToProperPos
- Mappings:
Namespace Name Mixin selector official a
Lbdv;a(Lgh;Lbzc;)Lgh;
intermediary method_6308
Lnet/minecraft/class_1382;method_6308(Lnet/minecraft/class_2338;Lnet/minecraft/class_1922;)Lnet/minecraft/class_2338;
named tweakToProperPos
Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;tweakToProperPos(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/BlockView;)Lnet/minecraft/util/math/BlockPos;
-
isTargetPos
- Specified by:
isTargetPos
in classMoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official a
Lbdh;a(Lbzz;Lgh;)Z
intermediary method_6296
Lnet/minecraft/class_1367;method_6296(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
named isTargetPos
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-