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
public class LookAtEntityGoal extends Goal
- Mappings:
Namespace Name official axf
intermediary net/minecraft/class_1361
named net/minecraft/entity/ai/goal/LookAtEntityGoal
-
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 protected float
chance
private int
lookTime
protected MobEntity
mob
protected float
range
protected Entity
target
protected TargetPredicate
targetPredicate
protected Class<? extends LivingEntity>
targetType
-
Constructor Summary
Constructors Constructor Description LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range)
LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official a
Laxf;a:Larj;
intermediary field_6486
Lnet/minecraft/class_1361;field_6486:Lnet/minecraft/class_1308;
named mob
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
-
target
- Mappings:
Namespace Name Mixin selector official b
Laxf;b:Laqv;
intermediary field_6484
Lnet/minecraft/class_1361;field_6484:Lnet/minecraft/class_1297;
named target
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;target:Lnet/minecraft/entity/Entity;
-
range
protected final float range- Mappings:
Namespace Name Mixin selector official c
Laxf;c:F
intermediary field_6482
Lnet/minecraft/class_1361;field_6482:F
named range
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;range:F
-
lookTime
private int lookTime- Mappings:
Namespace Name Mixin selector official g
Laxf;g:I
intermediary field_6483
Lnet/minecraft/class_1361;field_6483:I
named lookTime
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;lookTime:I
-
chance
protected final float chance- Mappings:
Namespace Name Mixin selector official d
Laxf;d:F
intermediary field_6481
Lnet/minecraft/class_1361;field_6481:F
named chance
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;chance:F
-
targetType
- Mappings:
Namespace Name Mixin selector official e
Laxf;e:Ljava/lang/Class;
intermediary field_6485
Lnet/minecraft/class_1361;field_6485:Ljava/lang/Class;
named targetType
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;targetType:Ljava/lang/Class;
-
targetPredicate
- Mappings:
Namespace Name Mixin selector official f
Laxf;f:Lbal;
intermediary field_18087
Lnet/minecraft/class_1361;field_18087:Lnet/minecraft/class_4051;
named targetPredicate
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;targetPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
-
-
Constructor Details
-
LookAtEntityGoal
- Mappings:
Namespace Name Mixin selector official <init>
Laxf;<init>(Larj;Ljava/lang/Class;F)V
intermediary <init>
Lnet/minecraft/class_1361;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;F)V
named <init>
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;F)V
-
LookAtEntityGoal
public LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance)- Mappings:
Namespace Name Mixin selector official <init>
Laxf;<init>(Larj;Ljava/lang/Class;FF)V
intermediary <init>
Lnet/minecraft/class_1361;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;FF)V
named <init>
Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;FF)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
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-