Package net.minecraft.entity.ai.goal
Class RangedAttackGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.RangedAttackGoal
-
- Direct Known Subclasses:
DrownedEntity.TridentAttackGoal
public class RangedAttackGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private int
attackIntervalMax
private int
attackIntervalMin
private float
attackRadius
private float
attackRadiusSqr
private int
attackTime
private MobEntity
mob
private IRangedAttackMob
rangedAttackMob
private int
seeTime
private double
speedModifier
private LivingEntity
target
-
Constructor Summary
Constructors Constructor Description RangedAttackGoal(IRangedAttackMob p_i1649_1_, double p_i1649_2_, int p_i1649_4_, float p_i1649_5_)
RangedAttackGoal(IRangedAttackMob p_i1650_1_, double p_i1650_2_, int p_i1650_4_, int p_i1650_5_, float p_i1650_6_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
void
stop()
void
tick()
-
-
-
Field Detail
-
mob
private final MobEntity mob
-
rangedAttackMob
private final IRangedAttackMob rangedAttackMob
-
target
private LivingEntity 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 Detail
-
RangedAttackGoal
public RangedAttackGoal(IRangedAttackMob p_i1649_1_, double p_i1649_2_, int p_i1649_4_, float p_i1649_5_)
-
RangedAttackGoal
public RangedAttackGoal(IRangedAttackMob p_i1650_1_, double p_i1650_2_, int p_i1650_4_, int p_i1650_5_, float p_i1650_6_)
-
-