net.minecraft.entity.ai.goal

public abstract class MoveToTargetPosGoal

extends Goal

net.minecraft.world.entity.ai.goal.MoveToBlockGoal
net.minecraft.world.entity.ai.goal.MoveToBlockGoal
net.minecraft.class_1367
net.minecraft.entity.ai.goal.MoveToTargetPosGoal

Field summary

Modifier and TypeField
private static final int
GIVE_UP_TICKS
GIVE_UP_TICKS
field_30221
MIN_WAITING_TIME
private static final int
STAY_TICKS
STAY_TICKS
field_30222
MAX_TRYING_TIME
private static final int
INTERVAL_TICKS
INTERVAL_TICKS
field_30223
MIN_INTERVAL
protected final PathAwareEntity
mob
mob
field_6516
mob
public final double
speedModifier
speedModifier
field_6514
speed
protected int
nextStartTick
nextStartTick
field_6518
cooldown
protected int
tryTicks
tryTicks
field_6517
tryingTime
private int
maxStayTicks
maxStayTicks
field_6511
safeWaitingTime
protected BlockPos
blockPos
blockPos
field_6512
targetPos
private boolean
reachedTarget
reachedTarget
field_6513
reached
private final int
searchRange
searchRange
field_6510
range
private final int
verticalSearchRange
verticalSearchRange
field_6519
maxYDifference
protected int
verticalSearchStart
verticalSearchStart
field_6515
lowestY

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
canUse()
canUse()
method_6264()
canStart()
protected int
nextStartTick(PathfinderMob mob)
nextStartTick(PathfinderMob mob)
method_6293(class_1314 arg0)
getInterval(PathAwareEntity mob)
public boolean
canContinueToUse()
canContinueToUse()
method_6266()
shouldContinue()
public void
start()
start()
method_6269()
start()
protected void
moveMobToBlock()
moveMobToBlock()
method_6290()
startMovingToTarget()
public double
acceptedDistance()
acceptedDistance()
method_6291()
getDesiredDistanceToTarget()
protected BlockPos
getMoveToTarget()
getMoveToTarget()
method_30953()
getTargetPos()
public boolean
requiresUpdateEveryTick()
requiresUpdateEveryTick()
method_38846()
shouldRunEveryTick()
public void
tick()
tick()
method_6268()
tick()
public boolean
shouldRecalculatePath()
shouldRecalculatePath()
method_6294()
shouldResetPath()
protected boolean
isReachedTarget()
isReachedTarget()
method_6295()
hasReached()
protected boolean
findNearestBlock()
findNearestBlock()
method_6292()
findTargetPos()
protected abstract boolean
isValidTarget(LevelReader level, BlockPos pos)
isValidTarget(LevelReader level, BlockPos pos)
method_6296(class_4538 arg0, class_2338 arg1)
isTargetPos(WorldView world, BlockPos pos)