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
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected Entity
protected final EntityPredicate
protected final Class<? extends LivingEntity>
protected final float
private int
protected final MobEntity
protected final float
-
Constructor Summary
ConstructorDescriptionLookAtGoal
(MobEntity p_i1631_1_, Class<? extends LivingEntity> p_i1631_2_, float p_i1631_3_) LookAtGoal
(MobEntity p_i1632_1_, Class<? extends LivingEntity> p_i1632_2_, float p_i1632_3_, float p_i1632_4_) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
mob
-
lookAt
-
lookDistance
protected final float lookDistance -
lookTime
private int lookTime -
probability
protected final float probability -
lookAtType
-
lookAtContext
-
-
Constructor Details
-
LookAtGoal
-
LookAtGoal
public LookAtGoal(MobEntity p_i1632_1_, Class<? extends LivingEntity> p_i1632_2_, float p_i1632_3_, float p_i1632_4_)
-
-
Method Details
-
canUse
public boolean canUse() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-