类 RangedBowAttackGoal<T extends Mob & RangedAttackMob>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.RangedBowAttackGoal<T>
-
嵌套类概要
-
字段概要
字段修饰符和类型字段说明private int
private final float
private int
private final T
private int
private final double
private boolean
private boolean
private int
-
构造器概要
构造器构造器说明RangedBowAttackGoal
(M p_25792_, double p_25793_, int p_25794_, float p_25795_) RangedBowAttackGoal
(T p_25792_, double p_25793_, int p_25794_, float p_25795_) -
方法概要
修饰符和类型方法说明boolean
boolean
canUse()
protected boolean
boolean
void
setMinAttackInterval
(int p_25798_) void
start()
void
stop()
void
tick()
从类继承的方法 net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, setFlags, toString
-
字段详细资料
-
mob
-
speedModifier
private final double speedModifier -
attackIntervalMin
private int attackIntervalMin -
attackRadiusSqr
private final float attackRadiusSqr -
attackTime
private int attackTime -
seeTime
private int seeTime -
strafingClockwise
private boolean strafingClockwise -
strafingBackwards
private boolean strafingBackwards -
strafingTime
private int strafingTime
-
-
构造器详细资料
-
RangedBowAttackGoal
public RangedBowAttackGoal(M p_25792_, double p_25793_, int p_25794_, float p_25795_) -
RangedBowAttackGoal
-
-
方法详细资料
-
setMinAttackInterval
public void setMinAttackInterval(int p_25798_) -
canUse
public boolean canUse() -
isHoldingBow
protected boolean isHoldingBow() -
canContinueToUse
public boolean canContinueToUse()- 覆盖:
canContinueToUse
在类中Goal
-
start
public void start() -
stop
public void stop() -
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- 覆盖:
requiresUpdateEveryTick
在类中Goal
-
tick
public void tick()
-