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 final boolean
private boolean
protected final PathfinderMob
protected Player
private double
private double
private double
private double
private double
private final double
private final TargetingConditions
private static final TargetingConditions
-
Constructor Summary
ConstructorDescriptionTemptGoal
(PathfinderMob p_25939_, double p_25940_, Predicate<ItemStack> p_335901_, 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
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
public TemptGoal(PathfinderMob p_25939_, double p_25940_, Predicate<ItemStack> p_335901_, boolean p_25942_)
-
-
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()
-