net.minecraft.world.entity.ai.goal

public class RemoveBlockGoal

extends MoveToBlockGoal

bjq
net.minecraft.world.entity.ai.goal.RemoveBlockGoal
net.minecraft.class_1382
net.minecraft.entity.ai.goal.StepAndDestroyBlockGoal
net.minecraft.src.C_721_
net.minecraft.world.entity.ai.goal.PathfinderGoalRemoveBlock

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
a()
canUse()
method_6264()
canStart()
m_8036_()
private boolean
o()
tryFindBlock()
method_20307()
hasAvailableTarget()
m_25858_()
public void
d()
stop()
method_6270()
stop()
m_8041_()
public void
c()
start()
method_6269()
start()
m_8056_()
public void
a(cgy arg0, gt arg1)
playDestroyProgressSound(LevelAccessor arg0, BlockPos arg1)
method_6307(class_1936 arg0, class_2338 arg1)
tickStepping(WorldAccess world, BlockPos pos)
m_7659_(C_1598_ p_25848_, C_4675_ arg1)
public void
a(cgx arg0, gt arg1)
playBreakSound(Level arg0, BlockPos arg1)
method_6309(class_1937 arg0, class_2338 arg1)
onDestroyBlock(World world, BlockPos pos)
m_5777_(C_1596_ p_25846_, C_4675_ arg1)
public void
e()
tick()
method_6268()
tick()
m_8037_()
private BlockPos
a(gt arg0, cgd arg1)
getPosWithBlock(BlockPos arg0, BlockGetter arg1)
method_6308(class_2338 arg0, class_1922 arg1)
tweakToProperPos(BlockPos pos, BlockView world)
m_25852_(C_4675_ p_25854_, C_1559_ arg1)
protected boolean
a(cha arg0, gt arg1)
isValidTarget(LevelReader arg0, BlockPos arg1)
method_6296(class_4538 arg0, class_2338 arg1)
isTargetPos(WorldView arg0, BlockPos arg1)
m_6465_(C_1599_ p_25851_, C_4675_ arg1)