Package net.minecraft.entity.ai.goal
Class LookAtEntityGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.LookAtEntityGoal
- Direct Known Subclasses:
FoxEntity.LookAtEntityGoal
,LookAtCustomerGoal
,PandaEntity.LookAtEntityGoal
,StopAndLookAtEntityGoal
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/LookAtEntityGoal
intermediary net/minecraft/class_1361
official cas
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Modifier and TypeFieldDescriptionprotected final float
static final float
private final boolean
private int
protected final MobEntity
protected final float
protected final TargetPredicate
protected final Class
<? extends LivingEntity> -
Constructor Summary
ConstructorDescriptionLookAtEntityGoal
(MobEntity mob, Class<? extends LivingEntity> targetType, float range) LookAtEntityGoal
(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance) LookAtEntityGoal
(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance, boolean lookForward) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldRunEveryTick, toGoalTicks, toString
-
Field Details
-
DEFAULT_CHANCE
public static final float DEFAULT_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_CHANCE
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;DEFAULT_CHANCE:F
intermediary field_33760
Lnet/minecraft/class_1361;field_33760:F
official a
Lcas;a:F
-
mob
- Mappings:
Namespace Name Mixin selector named mob
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
intermediary field_6486
Lnet/minecraft/class_1361;field_6486:Lnet/minecraft/class_1308;
official b
Lcas;b:Lbtn;
-
target
- Mappings:
Namespace Name Mixin selector named target
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;target:Lnet/minecraft/entity/Entity;
intermediary field_6484
Lnet/minecraft/class_1361;field_6484:Lnet/minecraft/class_1297;
official c
Lcas;c:Lbsq;
-
range
protected final float range- Mappings:
Namespace Name Mixin selector named range
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;range:F
intermediary field_6482
Lnet/minecraft/class_1361;field_6482:F
official d
Lcas;d:F
-
lookTime
private int lookTime- Mappings:
Namespace Name Mixin selector named lookTime
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;lookTime:I
intermediary field_6483
Lnet/minecraft/class_1361;field_6483:I
official h
Lcas;h:I
-
chance
protected final float chance- Mappings:
Namespace Name Mixin selector named chance
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;chance:F
intermediary field_6481
Lnet/minecraft/class_1361;field_6481:F
official e
Lcas;e:F
-
lookForward
private final boolean lookForward- Mappings:
Namespace Name Mixin selector named lookForward
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;lookForward:Z
intermediary field_33761
Lnet/minecraft/class_1361;field_33761:Z
official i
Lcas;i:Z
-
targetType
- Mappings:
Namespace Name Mixin selector named targetType
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;targetType:Ljava/lang/Class;
intermediary field_6485
Lnet/minecraft/class_1361;field_6485:Ljava/lang/Class;
official f
Lcas;f:Ljava/lang/Class;
-
targetPredicate
- Mappings:
Namespace Name Mixin selector named targetPredicate
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;targetPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
intermediary field_18087
Lnet/minecraft/class_1361;field_18087:Lnet/minecraft/class_4051;
official g
Lcas;g:Lced;
-
-
Constructor Details
-
LookAtEntityGoal
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;F)V
intermediary <init>
Lnet/minecraft/class_1361;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;F)V
official <init>
Lcas;<init>(Lbtn;Ljava/lang/Class;F)V
-
LookAtEntityGoal
public LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;FF)V
intermediary <init>
Lnet/minecraft/class_1361;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;FF)V
official <init>
Lcas;<init>(Lbtn;Ljava/lang/Class;FF)V
-
LookAtEntityGoal
public LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance, boolean lookForward) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;FFZ)V
intermediary <init>
Lnet/minecraft/class_1361;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;FFZ)V
official <init>
Lcas;<init>(Lbtn;Ljava/lang/Class;FFZ)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- 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
Lcak;c()Z
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-