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 - named - net/minecraft/entity/ai/goal/MoveToTargetPosGoal- intermediary - net/minecraft/class_1367- official - cct
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.entity.ai.goal.GoalGoal.Control
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected intprotected intprivate static final intprivate final intprivate static final intprivate static final intprotected final PathAwareEntityprivate final intprivate booleanprivate intfinal doubleprotected BlockPosprotected int
- 
Constructor SummaryConstructorsConstructorDescriptionMoveToTargetPosGoal(PathAwareEntity mob, double speed, int range) MoveToTargetPosGoal(PathAwareEntity mob, double speed, int range, int maxYDifference) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanStart()protected booleandoubleprotected intprotected BlockPosprotected booleanprotected abstract booleanisTargetPos(WorldView world, BlockPos pos) booleanbooleanbooleanReturns if the goal should run every tick or not.voidstart()protected voidvoidtick()Methods inherited from class net.minecraft.entity.ai.goal.GoalcanStop, castToServerWorld, getControls, getServerWorld, getTickCount, setControls, stop, toGoalTicks, toString
- 
Field Details- 
MIN_WAITING_TIMEprivate static final int MIN_WAITING_TIME- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MIN_WAITING_TIME- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;MIN_WAITING_TIME:I- intermediary - field_30221- Lnet/minecraft/class_1367;field_30221:I- official - g- Lcct;g:I
 
- 
MAX_TRYING_TIMEprivate static final int MAX_TRYING_TIME- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MAX_TRYING_TIME- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;MAX_TRYING_TIME:I- intermediary - field_30222- Lnet/minecraft/class_1367;field_30222:I- official - h- Lcct;h:I
 
- 
MIN_INTERVALprivate static final int MIN_INTERVAL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MIN_INTERVAL- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;MIN_INTERVAL:I- intermediary - field_30223- Lnet/minecraft/class_1367;field_30223:I- official - i- Lcct;i:I
 
- 
mob- Mappings:
- Namespace - Name - Mixin selector - named - mob- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;- intermediary - field_6516- Lnet/minecraft/class_1367;field_6516:Lnet/minecraft/class_1314;- official - a- Lcct;a:Lbvq;
 
- 
speedpublic final double speed- Mappings:
- Namespace - Name - Mixin selector - named - speed- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;speed:D- intermediary - field_6514- Lnet/minecraft/class_1367;field_6514:D- official - b- Lcct;b:D
 
- 
cooldownprotected int cooldown- Mappings:
- Namespace - Name - Mixin selector - named - cooldown- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;cooldown:I- intermediary - field_6518- Lnet/minecraft/class_1367;field_6518:I- official - c- Lcct;c:I
 
- 
tryingTimeprotected int tryingTime- Mappings:
- Namespace - Name - Mixin selector - named - tryingTime- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;tryingTime:I- intermediary - field_6517- Lnet/minecraft/class_1367;field_6517:I- official - d- Lcct;d:I
 
- 
safeWaitingTimeprivate int safeWaitingTime- Mappings:
- Namespace - Name - Mixin selector - named - safeWaitingTime- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;safeWaitingTime:I- intermediary - field_6511- Lnet/minecraft/class_1367;field_6511:I- official - j- Lcct;j:I
 
- 
targetPos- Mappings:
- Namespace - Name - Mixin selector - named - targetPos- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;targetPos:Lnet/minecraft/util/math/BlockPos;- intermediary - field_6512- Lnet/minecraft/class_1367;field_6512:Lnet/minecraft/class_2338;- official - e- Lcct;e:Lji;
 
- 
reachedprivate boolean reached- Mappings:
- Namespace - Name - Mixin selector - named - reached- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;reached:Z- intermediary - field_6513- Lnet/minecraft/class_1367;field_6513:Z- official - k- Lcct;k:Z
 
- 
rangeprivate final int range- Mappings:
- Namespace - Name - Mixin selector - named - range- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;range:I- intermediary - field_6510- Lnet/minecraft/class_1367;field_6510:I- official - l- Lcct;l:I
 
- 
maxYDifferenceprivate final int maxYDifference- Mappings:
- Namespace - Name - Mixin selector - named - maxYDifference- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;maxYDifference:I- intermediary - field_6519- Lnet/minecraft/class_1367;field_6519:I- official - m- Lcct;m:I
 
- 
lowestYprotected int lowestY- Mappings:
- Namespace - Name - Mixin selector - named - lowestY- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;lowestY:I- intermediary - field_6515- Lnet/minecraft/class_1367;field_6515:I- official - f- Lcct;f:I
 
 
- 
- 
Constructor Details- 
MoveToTargetPosGoal- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DI)V- intermediary - <init>- Lnet/minecraft/class_1367;<init>(Lnet/minecraft/class_1314;DI)V- official - <init>- Lcct;<init>(Lbvq;DI)V
 
- 
MoveToTargetPosGoal- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DII)V- intermediary - <init>- Lnet/minecraft/class_1367;<init>(Lnet/minecraft/class_1314;DII)V- official - <init>- Lcct;<init>(Lbvq;DII)V
 
 
- 
- 
Method Details- 
canStartpublic boolean canStart()
- 
getInterval- Mappings:
- Namespace - Name - Mixin selector - named - getInterval- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getInterval(Lnet/minecraft/entity/mob/PathAwareEntity;)I- intermediary - method_6293- Lnet/minecraft/class_1367;method_6293(Lnet/minecraft/class_1314;)I- official - a- Lcct;a(Lbvq;)I
 
- 
shouldContinuepublic boolean shouldContinue()- Overrides:
- shouldContinuein class- Goal
- Mappings:
- Namespace - Name - Mixin selector - named - shouldContinue- Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z- intermediary - method_6266- Lnet/minecraft/class_1352;method_6266()Z- official - c- Lccg;c()Z
 
- 
startpublic void start()
- 
startMovingToTargetprotected void startMovingToTarget()- Mappings:
- Namespace - Name - Mixin selector - named - startMovingToTarget- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;startMovingToTarget()V- intermediary - method_6290- Lnet/minecraft/class_1367;method_6290()V- official - h- Lcct;h()V
 
- 
getDesiredDistanceToTargetpublic double getDesiredDistanceToTarget()- Mappings:
- Namespace - Name - Mixin selector - named - getDesiredDistanceToTarget- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getDesiredDistanceToTarget()D- intermediary - method_6291- Lnet/minecraft/class_1367;method_6291()D- official - i- Lcct;i()D
 
- 
getTargetPos- Mappings:
- Namespace - Name - Mixin selector - named - getTargetPos- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getTargetPos()Lnet/minecraft/util/math/BlockPos;- intermediary - method_30953- Lnet/minecraft/class_1367;method_30953()Lnet/minecraft/class_2338;- official - k- Lcct;k()Lji;
 
- 
shouldRunEveryTickpublic boolean shouldRunEveryTick()Returns if the goal should run every tick or not.This returns falseby default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Overrides:
- shouldRunEveryTickin class- Goal
- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - shouldRunEveryTick- Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z- intermediary - method_38846- Lnet/minecraft/class_1352;method_38846()Z- official - V_- Lccg;V_()Z
 
- 
tickpublic void tick()
- 
shouldResetPathpublic boolean shouldResetPath()- Mappings:
- Namespace - Name - Mixin selector - named - shouldResetPath- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;shouldResetPath()Z- intermediary - method_6294- Lnet/minecraft/class_1367;method_6294()Z- official - l- Lcct;l()Z
 
- 
hasReachedprotected boolean hasReached()- Mappings:
- Namespace - Name - Mixin selector - named - hasReached- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;hasReached()Z- intermediary - method_6295- Lnet/minecraft/class_1367;method_6295()Z- official - m- Lcct;m()Z
 
- 
findTargetPosprotected boolean findTargetPos()- Mappings:
- Namespace - Name - Mixin selector - named - findTargetPos- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;findTargetPos()Z- intermediary - method_6292- Lnet/minecraft/class_1367;method_6292()Z- official - n- Lcct;n()Z
 
- 
isTargetPos- Mappings:
- Namespace - Name - Mixin selector - named - isTargetPos- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_6296- Lnet/minecraft/class_1367;method_6296(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z- official - a- Lcct;a(Ldgm;Lji;)Z
 
 
-