net.minecraft.entity.ai.goal

public abstract class MoveToTargetPosGoal

extends Goal

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
field_30221
MIN_WAITING_TIME
private static final int
STAY_TICKS
field_30222
MAX_TRYING_TIME
private static final int
INTERVAL_TICKS
field_30223
MIN_INTERVAL
protected final PathAwareEntity
mob
field_6516
mob
public final double
speedModifier
field_6514
speed
protected int
nextStartTick
field_6518
cooldown
protected int
tryTicks
field_6517
tryingTime
private int
maxStayTicks
field_6511
safeWaitingTime
protected BlockPos
blockPos
field_6512
targetPos
private boolean
reachedTarget
field_6513
reached
private final int
searchRange
field_6510
range
private final int
verticalSearchRange
field_6519
maxYDifference
protected int
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()
method_6264()
canStart()
protected int
nextStartTick(PathfinderMob mob)
method_6293(class_1314 arg0)
getInterval(PathAwareEntity mob)
public boolean
canContinueToUse()
method_6266()
shouldContinue()
public void
start()
method_6269()
start()
protected void
moveMobToBlock()
method_6290()
startMovingToTarget()
public double
acceptedDistance()
method_6291()
getDesiredDistanceToTarget()
protected BlockPos
getMoveToTarget()
method_30953()
getTargetPos()
public boolean
requiresUpdateEveryTick()
method_38846()
shouldRunEveryTick()
public void
tick()
method_6268()
tick()
public boolean
shouldRecalculatePath()
method_6294()
shouldResetPath()
protected boolean
isReachedTarget()
method_6295()
hasReached()
protected boolean
findNearestBlock()
method_6292()
findTargetPos()
protected abstract boolean
isValidTarget(LevelReader level, BlockPos pos)
method_6296(class_4538 arg0, class_2338 arg1)
isTargetPos(WorldView world, BlockPos pos)