net.minecraft.world.entity.ai.goal

public class RemoveBlockGoal

extends MoveToBlockGoal

cdi
net.minecraft.world.entity.ai.goal.RemoveBlockGoal
net.minecraft.class_1382
net.minecraft.entity.ai.goal.StepAndDestroyBlockGoal
net.minecraft.world.entity.ai.goal.PathfinderGoalRemoveBlock

Field summary

Modifier and TypeField
private final Block
g
blockToRemove
field_6587
targetBlock
private final Mob
h
removerMob
field_6589
stepAndDestroyMob
private int
i
ticksSinceReachedGoal
field_6588
counter
private static final int
j
WAIT_AFTER_BLOCK_FOUND
field_30227
MAX_COOLDOWN

Constructor summary

ModifierConstructor
public (Block targetBlock, PathfinderMob mob, double speed, int maxYDifference)

Method summary

Modifier and TypeMethod
public boolean
b()
canUse()
method_6264()
canStart()
public void
e()
stop()
method_6270()
stop()
public void
d()
start()
method_6269()
start()
public void
a(dgk arg0, ji arg1)
playDestroyProgressSound(LevelAccessor arg0, BlockPos arg1)
method_6307(class_1936 arg0, class_2338 arg1)
tickStepping(WorldAccess world, BlockPos pos)
public void
a(dgj arg0, ji arg1)
playBreakSound(Level arg0, BlockPos arg1)
method_6309(class_1937 arg0, class_2338 arg1)
onDestroyBlock(World world, BlockPos pos)
public void
a()
tick()
method_6268()
tick()
private BlockPos
a(ji arg0, dfo arg1)
getPosWithBlock(BlockPos arg0, BlockGetter arg1)
method_6308(class_2338 arg0, class_1922 arg1)
tweakToProperPos(BlockPos pos, BlockView world)
protected boolean
a(dgm arg0, ji arg1)
isValidTarget(LevelReader arg0, BlockPos arg1)
method_6296(class_4538 arg0, class_2338 arg1)
isTargetPos(WorldView arg0, BlockPos arg1)