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 int
private static final int
private static final float
private static final int
private static final int
private static final int
private static final int
private static final int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerLevel pLevel, Breeze pEntity, long pGameTime) protected boolean
checkExtraStartConditions
(ServerLevel pLevel, Breeze pOwner) static boolean
isFacingTarget
(Breeze pBreeze, LivingEntity pTarget) private static boolean
isTargetWithinRange
(Breeze pBreeze, LivingEntity pTarget) protected void
start
(ServerLevel pLevel, Breeze pEntity, long pGameTime) protected void
stop
(ServerLevel pLevel, Breeze pEntity, long pGameTime) protected void
tick
(ServerLevel pLevel, Breeze pOwner, long pGameTime) 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:
checkExtraStartConditions
in classBehavior<Breeze>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Breeze>
-
start
-
stop
-
tick
-
isFacingTarget
-
isTargetWithinRange
-