net.minecraft.world.entity.ai.goal

public abstract class MoveToBlockGoal

extends Goal

cdr
net.minecraft.world.entity.ai.goal.MoveToBlockGoal
net.minecraft.class_1367
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
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
private static final int
h
STAY_TICKS
field_30222
MAX_TRYING_TIME
private static final int
i
INTERVAL_TICKS
field_30223
MIN_INTERVAL
protected final PathfinderMob
a
mob
field_6516
mob
public final double
b
speedModifier
field_6514
speed
protected int
c
nextStartTick
field_6518
cooldown
protected int
d
tryTicks
field_6517
tryingTime
private int
j
maxStayTicks
field_6511
safeWaitingTime
protected BlockPos
e
blockPos
field_6512
targetPos
private boolean
k
reachedTarget
field_6513
reached
private final int
l
searchRange
field_6510
range
private final int
m
verticalSearchRange
field_6519
maxYDifference
protected int
f
verticalSearchStart
field_6515
lowestY

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
b()
canUse()
method_6264()
canStart()
protected int
a(bwo arg0)
nextStartTick(PathfinderMob arg0)
method_6293(class_1314 arg0)
getInterval(PathAwareEntity mob)
public boolean
c()
canContinueToUse()
method_6266()
shouldContinue()
public void
d()
start()
method_6269()
start()
protected void
h()
moveMobToBlock()
method_6290()
startMovingToTarget()
public double
i()
acceptedDistance()
method_6291()
getDesiredDistanceToTarget()
protected BlockPos
k()
getMoveToTarget()
method_30953()
getTargetPos()
public boolean
V_()
requiresUpdateEveryTick()
method_38846()
shouldRunEveryTick()
public void
a()
tick()
method_6268()
tick()
public boolean
l()
shouldRecalculatePath()
method_6294()
shouldResetPath()
protected boolean
m()
isReachedTarget()
method_6295()
hasReached()
protected boolean
n()
findNearestBlock()
method_6292()
findTargetPos()
protected abstract boolean
a(dhl arg0, jh arg1)
isValidTarget(LevelReader arg0, BlockPos arg1)
method_6296(class_4538 arg0, class_2338 arg1)
isTargetPos(WorldView world, BlockPos pos)