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 SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate final floatprivate intprivate final Tprivate intprivate final doubleprivate booleanprivate booleanprivate int
- 
Constructor SummaryConstructorsConstructorDescriptionRangedBowAttackGoal(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 SummaryModifier and TypeMethodDescriptionbooleanbooleancanUse()protected booleanbooleanvoidsetMinAttackInterval(int p_25798_) voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.world.entity.ai.goal.GoaladjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, toString
- 
Field Details- 
mob
- 
speedModifierprivate final double speedModifier
- 
attackIntervalMinprivate int attackIntervalMin
- 
attackRadiusSqrprivate final float attackRadiusSqr
- 
attackTimeprivate int attackTime
- 
seeTimeprivate int seeTime
- 
strafingClockwiseprivate boolean strafingClockwise
- 
strafingBackwardsprivate boolean strafingBackwards
- 
strafingTimeprivate int strafingTime
 
- 
- 
Constructor Details- 
RangedBowAttackGoalpublic RangedBowAttackGoal(M p_25792_, double p_25793_, int p_25794_, float p_25795_) 
- 
RangedBowAttackGoal
 
- 
- 
Method Details- 
setMinAttackIntervalpublic void setMinAttackInterval(int p_25798_) 
- 
canUsepublic boolean canUse()
- 
isHoldingBowprotected boolean isHoldingBow()
- 
canContinueToUsepublic boolean canContinueToUse()- Overrides:
- canContinueToUsein class- Goal
 
- 
startpublic void start()
- 
stoppublic void stop()
- 
requiresUpdateEveryTickpublic boolean requiresUpdateEveryTick()- Overrides:
- requiresUpdateEveryTickin class- Goal
 
- 
tickpublic void tick()
 
-