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
Modifier and TypeFieldDescriptionprivate int
private boolean
private boolean
private Ingredient
protected PathfinderMob
protected Player
private double
private double
private double
private double
private double
private double
private TargetingConditions
private static TargetingConditions
-
Constructor Summary
ConstructorDescriptionTemptGoal(PathfinderMob p_25939_, double p_25940_, Ingredient p_25941_, boolean p_25942_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected boolean
canScare()
boolean
canUse()
boolean
private boolean
shouldFollow(LivingEntity p_148139_)
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
getFlags, isInterruptable, 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:
canContinueToUse
in classGoal
-
canScare
protected boolean canScare() -
start
public void start() -
stop
public void stop() -
tick
public void tick() -
isRunning
public boolean isRunning()
-