Package net.minecraft.entity.ai.goal
Class RangedBowAttackGoal<T extends MonsterEntity & IRangedAttackMob>
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.RangedBowAttackGoal<T>
-
public class RangedBowAttackGoal<T extends MonsterEntity & IRangedAttackMob> extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private int
attackIntervalMin
private float
attackRadiusSqr
private int
attackTime
private T
mob
private int
seeTime
private double
speedModifier
private boolean
strafingBackwards
private boolean
strafingClockwise
private int
strafingTime
-
Constructor Summary
Constructors Constructor Description RangedBowAttackGoal(T p_i47515_1_, double p_i47515_2_, int p_i47515_4_, float p_i47515_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
protected boolean
isHoldingBow()
void
setMinAttackInterval(int p_189428_1_)
void
start()
void
stop()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
mob
private final T extends MonsterEntity & IRangedAttackMob 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 Detail
-
RangedBowAttackGoal
public RangedBowAttackGoal(T p_i47515_1_, double p_i47515_2_, int p_i47515_4_, float p_i47515_5_)
-
-
Method Detail
-
setMinAttackInterval
public void setMinAttackInterval(int p_189428_1_)
-
isHoldingBow
protected boolean isHoldingBow()
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
-