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 class
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private float
private T
static UniformInt
private int
private double
private int
-
Constructor Summary
-
Method Summary
-
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() -
tick
public void tick() -
canRun
private boolean canRun()
-