Class RangedBowAttackGoal<T extends Mob & RangedAttackMob>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.RangedBowAttackGoal<T>
- 
Nested Class Summary
 - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final floatprivate intprivate final Tprivate intprivate final doubleprivate booleanprivate booleanprivate int - 
Constructor Summary
ConstructorsConstructorDescriptionRangedBowAttackGoal(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_)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanUse()protected booleanbooleanvoidsetMinAttackInterval(int p_25798_) voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, toString 
- 
Field Details
- 
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 
 - 
 - 
Constructor Details
- 
RangedBowAttackGoal
public RangedBowAttackGoal(M p_25792_, double p_25793_, int p_25794_, float p_25795_)  - 
RangedBowAttackGoal
 
 - 
 - 
Method Details
- 
setMinAttackInterval
public void setMinAttackInterval(int p_25798_)  - 
canUse
public boolean canUse() - 
isHoldingBow
protected boolean isHoldingBow() - 
canContinueToUse
public boolean canContinueToUse()- Overrides:
 canContinueToUsein classGoal
 - 
start
public void start() - 
stop
public void stop() - 
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
 requiresUpdateEveryTickin classGoal
 - 
tick
public void tick() 
 -