类 TemptGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.TemptGoal
- 直接已知子类:
Cat.CatTemptGoal
,Ocelot.OcelotTemptGoal
-
嵌套类概要
-
字段概要
字段修饰符和类型字段说明private 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
-
构造器概要
构造器构造器说明TemptGoal
(PathfinderMob p_25939_, double p_25940_, Predicate<ItemStack> p_329244_, boolean p_25942_) -
方法概要
修饰符和类型方法说明boolean
protected boolean
canScare()
boolean
canUse()
boolean
private boolean
shouldFollow
(LivingEntity p_148139_) void
start()
void
stop()
void
tick()
从类继承的方法 net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
字段详细资料
-
TEMPT_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
-
-
构造器详细资料
-
TemptGoal
public TemptGoal(PathfinderMob p_25939_, double p_25940_, Predicate<ItemStack> p_329244_, boolean p_25942_)
-
-
方法详细资料
-
canUse
public boolean canUse() -
shouldFollow
-
canContinueToUse
public boolean canContinueToUse()- 覆盖:
canContinueToUse
在类中Goal
-
canScare
protected boolean canScare() -
start
public void start() -
stop
public void stop() -
tick
public void tick() -
isRunning
public boolean isRunning()
-