Class RangedCrossbowAttackGoal<T extends Mob & CrossbowAttackMob>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.RangedCrossbowAttackGoal<T>
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final float
private final T
static final UniformInt
private int
private final double
private int
-
Constructor Summary
ConstructorDescriptionRangedCrossbowAttackGoal
(M p_25814_, double p_25815_, float p_25816_) RangedCrossbowAttackGoal
(T p_25814_, double p_25815_, float p_25816_) -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, start, toString
-
Field Details
-
PATHFINDING_DELAY_RANGE
-
mob
-
crossbowState
-
speedModifier
private final double speedModifier -
attackRadiusSqr
private final float attackRadiusSqr -
seeTime
private int seeTime -
attackDelay
private int attackDelay -
updatePathDelay
private int updatePathDelay
-
-
Constructor Details
-
RangedCrossbowAttackGoal
public RangedCrossbowAttackGoal(M p_25814_, double p_25815_, float p_25816_) -
RangedCrossbowAttackGoal
-
-
Method Details
-
canUse
public boolean canUse() -
isHoldingCrossbow
private boolean isHoldingCrossbow() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
isValidTarget
private boolean isValidTarget() -
stop
public void stop() -
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTick
in classGoal
-
tick
public void tick() -
canRun
private boolean canRun()
-