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
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final floatprivate final floatprivate intprivate final Mobprivate final RangedAttackMobprivate intprivate final doubleprivate LivingEntity -
Constructor Summary
ConstructorsConstructorDescriptionRangedAttackGoal(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:
canContinueToUsein classGoal
-
stop
public void stop() -
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin classGoal
-
tick
public void tick()
-