Class CrossbowAttack<E extends Mob & CrossbowAttackMob,T extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.CrossbowAttack<E,T>
public class CrossbowAttack<E extends Mob & CrossbowAttackMob,T extends LivingEntity>
extends Behavior<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private CrossbowAttack.CrossbowState
private static final int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerLevel p_22781_, E p_22782_, long p_22783_) protected boolean
checkExtraStartConditions
(ServerLevel p_22778_, E p_22779_) private void
crossbowAttack
(E p_22787_, LivingEntity p_22788_) private static LivingEntity
getAttackTarget
(LivingEntity p_22785_) private void
lookAtTarget
(Mob p_22798_, LivingEntity p_22799_) protected void
stop
(ServerLevel p_22805_, E p_22806_, long p_22807_) protected void
tick
(ServerLevel p_22794_, E p_22795_, long p_22796_)
-
Field Details
-
TIMEOUT
private static final int TIMEOUT- See Also:
-
attackDelay
private int attackDelay -
crossbowState
-
-
Constructor Details
-
CrossbowAttack
public CrossbowAttack()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<E extends Mob & CrossbowAttackMob>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<E extends Mob & CrossbowAttackMob>
-
tick
- Overrides:
tick
in classBehavior<E extends Mob & CrossbowAttackMob>
-
stop
- Overrides:
stop
in classBehavior<E extends Mob & CrossbowAttackMob>
-
crossbowAttack
-
lookAtTarget
-
getAttackTarget
-