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> 
- All Implemented Interfaces:
- BehaviorControl<E>
public class CrossbowAttack<E extends Mob & CrossbowAttackMob,T extends LivingEntity> 
extends Behavior<E>
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.BehaviorBehavior.Status
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate CrossbowAttack.CrossbowStateprivate static final intFields inherited from class net.minecraft.world.entity.ai.behavior.BehaviorDEFAULT_DURATION, entryCondition
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel p_22781_, E p_22782_, long p_22783_) protected booleancheckExtraStartConditions(ServerLevel p_22778_, E p_22779_) private voidcrossbowAttack(E p_22787_, LivingEntity p_22788_) private static LivingEntitygetAttackTarget(LivingEntity p_22785_) private voidlookAtTarget(Mob p_22798_, LivingEntity p_22799_) protected voidstop(ServerLevel p_22805_, E p_22806_, long p_22807_) protected voidtick(ServerLevel p_22794_, E p_22795_, long p_22796_) Methods inherited from class net.minecraft.world.entity.ai.behavior.BehaviordebugString, doStop, getStatus, hasRequiredMemories, start, tickOrStop, timedOut, tryStart
- 
Field Details- 
TIMEOUTprivate static final int TIMEOUT- See Also:
 
- 
attackDelayprivate int attackDelay
- 
crossbowState
 
- 
- 
Constructor Details- 
CrossbowAttackpublic CrossbowAttack()
 
- 
- 
Method Details- 
checkExtraStartConditions- Overrides:
- checkExtraStartConditionsin class- Behavior<E extends Mob & CrossbowAttackMob>
 
- 
canStillUse- Overrides:
- canStillUsein class- Behavior<E extends Mob & CrossbowAttackMob>
 
- 
tick- Overrides:
- tickin class- Behavior<E extends Mob & CrossbowAttackMob>
 
- 
stop- Overrides:
- stopin class- Behavior<E extends Mob & CrossbowAttackMob>
 
- 
crossbowAttack
- 
lookAtTarget
- 
getAttackTarget
 
-