Class LookAtPlayerGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.LookAtPlayerGoal
- Direct Known Subclasses:
 Fox.FoxLookAtPlayerGoal,InteractGoal,LookAtTradingPlayerGoal,Panda.PandaLookAtPlayerGoal
- 
Nested Class Summary
 - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatprotected Entityprotected final TargetingConditionsprotected final Class<? extends LivingEntity>protected final floatprivate intprotected final Mobprivate final booleanprotected final float - 
Constructor Summary
ConstructorsConstructorDescriptionLookAtPlayerGoal(Mob p_25520_, Class<? extends LivingEntity> p_25521_, float p_25522_) LookAtPlayerGoal(Mob p_25524_, Class<? extends LivingEntity> p_25525_, float p_25526_, float p_25527_) LookAtPlayerGoal(Mob p_148118_, Class<? extends LivingEntity> p_148119_, float p_148120_, float p_148121_, boolean p_148122_)  - 
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString 
- 
Field Details
- 
DEFAULT_PROBABILITY
public static final float DEFAULT_PROBABILITY- See Also:
 
 - 
mob
 - 
lookAt
 - 
lookDistance
protected final float lookDistance - 
lookTime
private int lookTime - 
probability
protected final float probability - 
onlyHorizontal
private final boolean onlyHorizontal - 
lookAtType
 - 
lookAtContext
 
 - 
 - 
Constructor Details
- 
LookAtPlayerGoal
 - 
LookAtPlayerGoal
public LookAtPlayerGoal(Mob p_25524_, Class<? extends LivingEntity> p_25525_, float p_25526_, float p_25527_)  - 
LookAtPlayerGoal
public LookAtPlayerGoal(Mob p_148118_, Class<? extends LivingEntity> p_148119_, float p_148120_, float p_148121_, boolean p_148122_)  
 - 
 - 
Method Details
- 
canUse
public boolean canUse() - 
canContinueToUse
public boolean canContinueToUse()- Overrides:
 canContinueToUsein classGoal
 - 
start
public void start() - 
stop
public void stop() - 
tick
public void tick() 
 -