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
Nested Classes Modifier and Type Class Description (package private) static class
RangedCrossbowAttackGoal.CrossbowState
-
Field Summary
Fields Modifier and Type Field Description private int
attackDelay
private float
attackRadiusSqr
private RangedCrossbowAttackGoal.CrossbowState
crossbowState
private T
mob
static RangedInteger
PATHFINDING_DELAY_RANGE
private int
seeTime
private double
speedModifier
private int
updatePathDelay
-
Constructor Summary
Constructors Constructor Description RangedCrossbowAttackGoal(T p_i50322_1_, double p_i50322_2_, float p_i50322_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
private boolean
canRun()
boolean
canUse()
private boolean
isHoldingCrossbow()
private boolean
isValidTarget()
void
stop()
void
tick()
-
-
-
Field Detail
-
PATHFINDING_DELAY_RANGE
public static final RangedInteger PATHFINDING_DELAY_RANGE
-
mob
private final T extends MonsterEntity & IRangedAttackMob & ICrossbowUser mob
-
crossbowState
private RangedCrossbowAttackGoal.CrossbowState crossbowState
-
speedModifier
private final double speedModifier
-
attackRadiusSqr
private final float attackRadiusSqr
-
seeTime
private int seeTime
-
attackDelay
private int attackDelay
-
updatePathDelay
private int updatePathDelay
-
-
Constructor Detail
-
RangedCrossbowAttackGoal
public RangedCrossbowAttackGoal(T p_i50322_1_, double p_i50322_2_, float p_i50322_4_)
-
-
Method Detail
-
isHoldingCrossbow
private boolean isHoldingCrossbow()
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
isValidTarget
private boolean isValidTarget()
-
canRun
private boolean canRun()
-
-