Package net.minecraft.entity.ai.goal
Class MoveToTargetPosGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
- Direct Known Subclasses:
CatSitOnBlockGoal
,DrownedEntity.LeaveWaterGoal
,FoxEntity.EatBerriesGoal
,GoToBedAndSleepGoal
,RabbitEntity.EatCarrotCropGoal
,StepAndDestroyBlockGoal
,StriderEntity.GoBackToLavaGoal
,TurtleEntity.LayEggGoal
,TurtleEntity.WanderInWaterGoal
- Mappings:
Namespace Name official bni
intermediary net/minecraft/class_1367
named net/minecraft/entity/ai/goal/MoveToTargetPosGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
private static final int
private final int
private static final int
private static final int
protected final PathAwareEntity
private final int
private boolean
private int
final double
protected BlockPos
protected int
-
Constructor Summary
ConstructorDescriptionMoveToTargetPosGoal
(PathAwareEntity mob, double speed, int range) MoveToTargetPosGoal
(PathAwareEntity mob, double speed, int range, int maxYDifference) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canStart()
protected boolean
double
protected int
protected BlockPos
protected boolean
protected abstract boolean
isTargetPos
(WorldView world, BlockPos pos) boolean
boolean
boolean
Returns if the goal should run every tick or not.void
start()
protected void
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, stop, toGoalTicks, toString
-
Field Details
-
MIN_WAITING_TIME
private static final int MIN_WAITING_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lbni;g:I
intermediary field_30221
Lnet/minecraft/class_1367;field_30221:I
named MIN_WAITING_TIME
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;MIN_WAITING_TIME:I
-
MAX_TRYING_TIME
private static final int MAX_TRYING_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lbni;h:I
intermediary field_30222
Lnet/minecraft/class_1367;field_30222:I
named MAX_TRYING_TIME
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;MAX_TRYING_TIME:I
-
MIN_INTERVAL
private static final int MIN_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lbni;i:I
intermediary field_30223
Lnet/minecraft/class_1367;field_30223:I
named MIN_INTERVAL
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;MIN_INTERVAL:I
-
mob
- Mappings:
Namespace Name Mixin selector official a
Lbni;a:Lbgi;
intermediary field_6516
Lnet/minecraft/class_1367;field_6516:Lnet/minecraft/class_1314;
named mob
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
-
speed
public final double speed- Mappings:
Namespace Name Mixin selector official b
Lbni;b:D
intermediary field_6514
Lnet/minecraft/class_1367;field_6514:D
named speed
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;speed:D
-
cooldown
protected int cooldown- Mappings:
Namespace Name Mixin selector official c
Lbni;c:I
intermediary field_6518
Lnet/minecraft/class_1367;field_6518:I
named cooldown
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;cooldown:I
-
tryingTime
protected int tryingTime- Mappings:
Namespace Name Mixin selector official d
Lbni;d:I
intermediary field_6517
Lnet/minecraft/class_1367;field_6517:I
named tryingTime
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;tryingTime:I
-
safeWaitingTime
private int safeWaitingTime- Mappings:
Namespace Name Mixin selector official j
Lbni;j:I
intermediary field_6511
Lnet/minecraft/class_1367;field_6511:I
named safeWaitingTime
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;safeWaitingTime:I
-
targetPos
- Mappings:
Namespace Name Mixin selector official e
Lbni;e:Lgu;
intermediary field_6512
Lnet/minecraft/class_1367;field_6512:Lnet/minecraft/class_2338;
named targetPos
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;targetPos:Lnet/minecraft/util/math/BlockPos;
-
reached
private boolean reached- Mappings:
Namespace Name Mixin selector official k
Lbni;k:Z
intermediary field_6513
Lnet/minecraft/class_1367;field_6513:Z
named reached
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;reached:Z
-
range
private final int range- Mappings:
Namespace Name Mixin selector official l
Lbni;l:I
intermediary field_6510
Lnet/minecraft/class_1367;field_6510:I
named range
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;range:I
-
maxYDifference
private final int maxYDifference- Mappings:
Namespace Name Mixin selector official m
Lbni;m:I
intermediary field_6519
Lnet/minecraft/class_1367;field_6519:I
named maxYDifference
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;maxYDifference:I
-
lowestY
protected int lowestY- Mappings:
Namespace Name Mixin selector official f
Lbni;f:I
intermediary field_6515
Lnet/minecraft/class_1367;field_6515:I
named lowestY
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;lowestY:I
-
-
Constructor Details
-
MoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official <init>
Lbni;<init>(Lbgi;DI)V
intermediary <init>
Lnet/minecraft/class_1367;<init>(Lnet/minecraft/class_1314;DI)V
named <init>
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DI)V
-
MoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official <init>
Lbni;<init>(Lbgi;DII)V
intermediary <init>
Lnet/minecraft/class_1367;<init>(Lnet/minecraft/class_1314;DII)V
named <init>
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DII)V
-
-
Method Details
-
canStart
public boolean canStart() -
getInterval
- Mappings:
Namespace Name Mixin selector official a
Lbni;a(Lbgi;)I
intermediary method_6293
Lnet/minecraft/class_1367;method_6293(Lnet/minecraft/class_1314;)I
named getInterval
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getInterval(Lnet/minecraft/entity/mob/PathAwareEntity;)I
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lbmv;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
start
public void start() -
startMovingToTarget
protected void startMovingToTarget()- Mappings:
Namespace Name Mixin selector official h
Lbni;h()V
intermediary method_6290
Lnet/minecraft/class_1367;method_6290()V
named startMovingToTarget
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;startMovingToTarget()V
-
getDesiredDistanceToTarget
public double getDesiredDistanceToTarget()- Mappings:
Namespace Name Mixin selector official i
Lbni;i()D
intermediary method_6291
Lnet/minecraft/class_1367;method_6291()D
named getDesiredDistanceToTarget
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getDesiredDistanceToTarget()D
-
getTargetPos
- Mappings:
Namespace Name Mixin selector official k
Lbni;k()Lgu;
intermediary method_30953
Lnet/minecraft/class_1367;method_30953()Lnet/minecraft/class_2338;
named getTargetPos
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getTargetPos()Lnet/minecraft/util/math/BlockPos;
-
shouldRunEveryTick
public boolean shouldRunEveryTick()Returns if the goal should run every tick or not.This returns
false
by default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Overrides:
shouldRunEveryTick
in classGoal
- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
Namespace Name Mixin selector official K_
Lbmv;K_()Z
intermediary method_38846
Lnet/minecraft/class_1352;method_38846()Z
named shouldRunEveryTick
Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick() -
shouldResetPath
public boolean shouldResetPath()- Mappings:
Namespace Name Mixin selector official l
Lbni;l()Z
intermediary method_6294
Lnet/minecraft/class_1367;method_6294()Z
named shouldResetPath
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;shouldResetPath()Z
-
hasReached
protected boolean hasReached()- Mappings:
Namespace Name Mixin selector official m
Lbni;m()Z
intermediary method_6295
Lnet/minecraft/class_1367;method_6295()Z
named hasReached
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;hasReached()Z
-
findTargetPos
protected boolean findTargetPos()- Mappings:
Namespace Name Mixin selector official n
Lbni;n()Z
intermediary method_6292
Lnet/minecraft/class_1367;method_6292()Z
named findTargetPos
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;findTargetPos()Z
-
isTargetPos
- Mappings:
Namespace Name Mixin selector official a
Lbni;a(Lcmp;Lgu;)Z
intermediary method_6296
Lnet/minecraft/class_1367;method_6296(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
named isTargetPos
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-