Class RangedAttackGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.RangedAttackGoal
- Direct Known Subclasses:
Drowned.DrownedTridentAttackGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final float
private final float
private int
private final Mob
private final RangedAttackMob
private int
private final double
private LivingEntity
-
Constructor Summary
ConstructorDescriptionRangedAttackGoal
(RangedAttackMob p_25768_, double p_25769_, int p_25770_, float p_25771_) RangedAttackGoal
(RangedAttackMob p_25773_, double p_25774_, int p_25775_, int p_25776_, float p_25777_) -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, start, toString
-
Field Details
-
mob
-
rangedAttackMob
-
target
-
attackTime
private int attackTime -
speedModifier
private final double speedModifier -
seeTime
private int seeTime -
attackIntervalMin
private final int attackIntervalMin -
attackIntervalMax
private final int attackIntervalMax -
attackRadius
private final float attackRadius -
attackRadiusSqr
private final float attackRadiusSqr
-
-
Constructor Details
-
RangedAttackGoal
-
RangedAttackGoal
public RangedAttackGoal(RangedAttackMob p_25773_, double p_25774_, int p_25775_, int p_25776_, float p_25777_)
-
-
Method Details
-
canUse
public boolean canUse() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
stop
public void stop() -
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTick
in classGoal
-
tick
public void tick()
-