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 Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate CrossbowAttack.CrossbowStateprivate static final intFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel pLevel, E pEntity, long pGameTime) protected booleancheckExtraStartConditions(ServerLevel pLevel, E pOwner) private voidcrossbowAttack(E pShooter, LivingEntity pTarget) private static LivingEntitygetAttackTarget(LivingEntity pShooter) private voidlookAtTarget(Mob pShooter, LivingEntity pTarget) protected voidstop(ServerLevel pLevel, E pEntity, long pGameTime) protected voidtick(ServerLevel pLevel, E pOwner, long pGameTime) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, start, tickOrStop, timedOut, tryStart
-
Field Details
-
TIMEOUT
private static final int TIMEOUT- See Also:
-
attackDelay
private int attackDelay -
crossbowState
-
-
Constructor Details
-
CrossbowAttack
public CrossbowAttack()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<E extends Mob & CrossbowAttackMob>
-
canStillUse
- Overrides:
canStillUsein classBehavior<E extends Mob & CrossbowAttackMob>
-
tick
- Overrides:
tickin classBehavior<E extends Mob & CrossbowAttackMob>
-
stop
- Overrides:
stopin classBehavior<E extends Mob & CrossbowAttackMob>
-
crossbowAttack
-
lookAtTarget
-
getAttackTarget
-