Class RangedCrossbowAttackGoal<T extends Monster & RangedAttackMob & CrossbowAttackMob>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.RangedCrossbowAttackGoal<T>
public class RangedCrossbowAttackGoal<T extends Monster & RangedAttackMob & CrossbowAttackMob>
extends Goal
-
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
-
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
-
-
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()
-