Class TemptGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.TemptGoal
- Direct Known Subclasses:
 Cat.CatTemptGoal,Ocelot.OcelotTemptGoal
- 
Nested Class Summary
 - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final booleanprivate booleanprivate final Ingredientprotected final PathfinderMobprotected Playerprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate final doubleprivate final TargetingConditionsprivate static final TargetingConditions - 
Constructor Summary
ConstructorsConstructorDescriptionTemptGoal(PathfinderMob p_25939_, double p_25940_, Ingredient p_25941_, boolean p_25942_)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected booleancanScare()booleancanUse()booleanprivate booleanshouldFollow(LivingEntity p_148139_) voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString 
- 
Field Details
- 
TEMP_TARGETING
 - 
targetingConditions
 - 
mob
 - 
speedModifier
private final double speedModifier - 
px
private double px - 
py
private double py - 
pz
private double pz - 
pRotX
private double pRotX - 
pRotY
private double pRotY - 
player
 - 
calmDown
private int calmDown - 
isRunning
private boolean isRunning - 
items
 - 
canScare
private final boolean canScare 
 - 
 - 
Constructor Details
- 
TemptGoal
 
 - 
 - 
Method Details
- 
canUse
public boolean canUse() - 
shouldFollow
 - 
canContinueToUse
public boolean canContinueToUse()- Overrides:
 canContinueToUsein classGoal
 - 
canScare
protected boolean canScare() - 
start
public void start() - 
stop
public void stop() - 
tick
public void tick() - 
isRunning
public boolean isRunning() 
 -