Package net.minecraft.entity.ai.goal
Class LookAtGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.LookAtGoal
-
- Direct Known Subclasses:
FoxEntity.WatchGoal
,LookAtCustomerGoal
,LookAtWithoutMovingGoal
,PandaEntity.WatchGoal
public class LookAtGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description protected Entity
lookAt
protected EntityPredicate
lookAtContext
protected java.lang.Class<? extends LivingEntity>
lookAtType
protected float
lookDistance
private int
lookTime
protected MobEntity
mob
protected float
probability
-
Constructor Summary
Constructors Constructor Description LookAtGoal(MobEntity p_i1631_1_, java.lang.Class<? extends LivingEntity> p_i1631_2_, float p_i1631_3_)
LookAtGoal(MobEntity p_i1632_1_, java.lang.Class<? extends LivingEntity> p_i1632_2_, float p_i1632_3_, float p_i1632_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
void
start()
void
stop()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
mob
protected final MobEntity mob
-
lookAt
protected Entity lookAt
-
lookDistance
protected final float lookDistance
-
lookTime
private int lookTime
-
probability
protected final float probability
-
lookAtType
protected final java.lang.Class<? extends LivingEntity> lookAtType
-
lookAtContext
protected final EntityPredicate lookAtContext
-
-
Constructor Detail
-
LookAtGoal
public LookAtGoal(MobEntity p_i1631_1_, java.lang.Class<? extends LivingEntity> p_i1631_2_, float p_i1631_3_)
-
LookAtGoal
public LookAtGoal(MobEntity p_i1632_1_, java.lang.Class<? extends LivingEntity> p_i1632_2_, float p_i1632_3_, float p_i1632_4_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
-