net.minecraft.world.entity.ai.goal

public abstract class MoveToBlockGoal

extends Goal

bni
net.minecraft.world.entity.ai.goal.MoveToBlockGoal
net.minecraft.class_1367
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.src.C_706_
net.minecraft.world.entity.ai.goal.PathfinderGoalGotoTarget

Field summary

Modifier and TypeField
private static final int
g
GIVE_UP_TICKS
field_30221
MIN_WAITING_TIME
f_148128_
private static final int
h
STAY_TICKS
field_30222
MAX_TRYING_TIME
f_148129_
private static final int
i
INTERVAL_TICKS
field_30223
MIN_INTERVAL
f_148130_
protected final PathfinderMob
a
mob
field_6516
mob
f_25598_
public final double
b
speedModifier
field_6514
speed
f_25599_
protected int
c
nextStartTick
field_6518
cooldown
f_25600_
protected int
d
tryTicks
field_6517
tryingTime
f_25601_
private int
j
maxStayTicks
field_6511
safeWaitingTime
f_25604_
protected BlockPos
e
blockPos
field_6512
targetPos
f_25602_
private boolean
k
reachedTarget
field_6513
reached
f_25605_
private final int
l
searchRange
field_6510
range
f_25606_
private final int
m
verticalSearchRange
field_6519
maxYDifference
f_25607_
protected int
f
verticalSearchStart
field_6515
lowestY
f_25603_

Constructor summary

ModifierConstructor
public (PathfinderMob mob, double speed, int range)
public (PathfinderMob mob, double speed, int range, int maxYDifference)

Method summary

Modifier and TypeMethod
public boolean
a()
canUse()
method_6264()
canStart()
m_8036_()
protected int
a(bgi arg0)
nextStartTick(PathfinderMob arg0)
method_6293(class_1314 arg0)
getInterval(PathAwareEntity mob)
m_6099_(C_533_ arg0)
public boolean
b()
canContinueToUse()
method_6266()
shouldContinue()
m_8045_()
public void
c()
start()
method_6269()
start()
m_8056_()
protected void
h()
moveMobToBlock()
method_6290()
startMovingToTarget()
m_25624_()
public double
i()
acceptedDistance()
method_6291()
getDesiredDistanceToTarget()
m_8052_()
protected BlockPos
k()
getMoveToTarget()
method_30953()
getTargetPos()
m_6669_()
public boolean
K_()
requiresUpdateEveryTick()
method_38846()
shouldRunEveryTick()
m_183429_()
public void
e()
tick()
method_6268()
tick()
m_8037_()
public boolean
l()
shouldRecalculatePath()
method_6294()
shouldResetPath()
m_8064_()
protected boolean
m()
isReachedTarget()
method_6295()
hasReached()
m_25625_()
protected boolean
n()
findNearestBlock()
method_6292()
findTargetPos()
m_25626_()
protected abstract boolean
a(cmp arg0, gu arg1)
isValidTarget(LevelReader arg0, BlockPos arg1)
method_6296(class_4538 arg0, class_2338 arg1)
isTargetPos(WorldView world, BlockPos pos)
m_6465_(C_1599_ p_25620_, C_4675_ arg1)