Class Shoot
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Breeze>
net.minecraft.world.entity.monster.breeze.Shoot
- All Implemented Interfaces:
BehaviorControl<Breeze>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final floatprivate static final intprivate static final intprivate static final intprivate static final intprivate 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 p_312535_, Breeze p_312174_, long p_311812_) protected booleancheckExtraStartConditions(ServerLevel p_312041_, Breeze p_312169_) static booleanisFacingTarget(Breeze p_311845_, LivingEntity p_312453_) private static booleanisTargetWithinRange(Breeze p_312114_, LivingEntity p_312647_) protected voidstart(ServerLevel p_311932_, Breeze p_312618_, long p_311781_) protected voidstop(ServerLevel p_312137_, Breeze p_311803_, long p_312309_) protected voidtick(ServerLevel p_312907_, Breeze p_312605_, long p_312804_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
Field Details
-
ATTACK_RANGE_MIN_SQRT
private static final int ATTACK_RANGE_MIN_SQRT- See Also:
-
ATTACK_RANGE_MAX_SQRT
private static final int ATTACK_RANGE_MAX_SQRT- See Also:
-
UNCERTAINTY_BASE
private static final int UNCERTAINTY_BASE- See Also:
-
UNCERTAINTY_MULTIPLIER
private static final int UNCERTAINTY_MULTIPLIER- See Also:
-
PROJECTILE_MOVEMENT_SCALE
private static final float PROJECTILE_MOVEMENT_SCALE- See Also:
-
SHOOT_INITIAL_DELAY_TICKS
private static final int SHOOT_INITIAL_DELAY_TICKS -
SHOOT_RECOVER_DELAY_TICKS
private static final int SHOOT_RECOVER_DELAY_TICKS -
SHOOT_COOLDOWN_TICKS
private static final int SHOOT_COOLDOWN_TICKS
-
-
Constructor Details
-
Shoot
public Shoot()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<Breeze>
-
canStillUse
- Overrides:
canStillUsein classBehavior<Breeze>
-
start
-
stop
-
tick
-
isFacingTarget
-
isTargetWithinRange
-