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
Modifier and TypeFieldDescriptionstatic float
protected Entity
protected TargetingConditions
protected Class<? extends LivingEntity>
protected float
private int
protected Mob
private boolean
protected float
-
Constructor Summary
ConstructorDescriptionLookAtPlayerGoal(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
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
DEFAULT_PROBABILITY
public static final float DEFAULT_PROBABILITY- See Also:
- Constant Field Values
-
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:
canContinueToUse
in classGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-