Package net.minecraft.entity.ai.goal
Class WanderNearTargetGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.WanderNearTargetGoal
public class WanderNearTargetGoal extends Goal
- Mappings:
Namespace Name official axn
intermediary net/minecraft/class_1369
named net/minecraft/entity/ai/goal/WanderNearTargetGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private float
maxDistance
private PathAwareEntity
mob
private double
speed
private LivingEntity
target
private double
x
private double
y
private double
z
-
Constructor Summary
Constructors Constructor Description WanderNearTargetGoal(PathAwareEntity mob, double speed, float maxDistance)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
void
start()
void
stop()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official a
Laxn;a:Larq;
intermediary field_6528
Lnet/minecraft/class_1369;field_6528:Lnet/minecraft/class_1314;
named mob
Lnet/minecraft/entity/ai/goal/WanderNearTargetGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
-
target
- Mappings:
Namespace Name Mixin selector official b
Laxn;b:Lari;
intermediary field_6529
Lnet/minecraft/class_1369;field_6529:Lnet/minecraft/class_1309;
named target
Lnet/minecraft/entity/ai/goal/WanderNearTargetGoal;target:Lnet/minecraft/entity/LivingEntity;
-
x
private double x- Mappings:
Namespace Name Mixin selector official c
Laxn;c:D
intermediary field_6527
Lnet/minecraft/class_1369;field_6527:D
named x
Lnet/minecraft/entity/ai/goal/WanderNearTargetGoal;x:D
-
y
private double y- Mappings:
Namespace Name Mixin selector official d
Laxn;d:D
intermediary field_6526
Lnet/minecraft/class_1369;field_6526:D
named y
Lnet/minecraft/entity/ai/goal/WanderNearTargetGoal;y:D
-
z
private double z- Mappings:
Namespace Name Mixin selector official e
Laxn;e:D
intermediary field_6531
Lnet/minecraft/class_1369;field_6531:D
named z
Lnet/minecraft/entity/ai/goal/WanderNearTargetGoal;z:D
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector official f
Laxn;f:D
intermediary field_6530
Lnet/minecraft/class_1369;field_6530:D
named speed
Lnet/minecraft/entity/ai/goal/WanderNearTargetGoal;speed:D
-
maxDistance
private final float maxDistance- Mappings:
Namespace Name Mixin selector official g
Laxn;g:F
intermediary field_6532
Lnet/minecraft/class_1369;field_6532:F
named maxDistance
Lnet/minecraft/entity/ai/goal/WanderNearTargetGoal;maxDistance:F
-
-
Constructor Details
-
WanderNearTargetGoal
- Mappings:
Namespace Name Mixin selector official <init>
Laxn;<init>(Larq;DF)V
intermediary <init>
Lnet/minecraft/class_1369;<init>(Lnet/minecraft/class_1314;DF)V
named <init>
Lnet/minecraft/entity/ai/goal/WanderNearTargetGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DF)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lawx;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
stop
public void stop() -
start
public void start()
-