Package net.minecraft.entity.ai.goal
Class RangedCrossbowAttackGoal<T extends MonsterEntity & IRangedAttackMob & ICrossbowUser>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.RangedCrossbowAttackGoal<T>
public class RangedCrossbowAttackGoal<T extends MonsterEntity & IRangedAttackMob & ICrossbowUser>
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 RangedInteger
private int
private final double
private int
-
Constructor Summary
ConstructorDescriptionRangedCrossbowAttackGoal
(T p_i50322_1_, double p_i50322_2_, float p_i50322_4_) -
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()
-