Class SonicBoom
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Warden>
net.minecraft.world.entity.ai.behavior.warden.SonicBoom
- All Implemented Interfaces:
BehaviorControl<Warden>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final intprivate static final intprivate static final intprivate static final doubleprivate static final doubleprivate 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_217695_, Warden p_217696_, long p_217697_) protected booleancheckExtraStartConditions(ServerLevel p_217692_, Warden p_217693_) static voidsetCooldown(LivingEntity p_217699_, int p_217700_) protected voidstart(ServerLevel p_217713_, Warden p_217714_, long p_217715_) protected voidstop(ServerLevel p_217732_, Warden p_217733_, long p_217734_) protected voidtick(ServerLevel p_217724_, Warden p_217725_, long p_217726_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
Field Details
-
DISTANCE_XZ
private static final int DISTANCE_XZ- See Also:
-
DISTANCE_Y
private static final int DISTANCE_Y- See Also:
-
KNOCKBACK_VERTICAL
private static final double KNOCKBACK_VERTICAL- See Also:
-
KNOCKBACK_HORIZONTAL
private static final double KNOCKBACK_HORIZONTAL- See Also:
-
COOLDOWN
public static final int COOLDOWN- See Also:
-
TICKS_BEFORE_PLAYING_SOUND
private static final int TICKS_BEFORE_PLAYING_SOUND -
DURATION
private static final int DURATION
-
-
Constructor Details
-
SonicBoom
public SonicBoom()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<Warden>
-
canStillUse
- Overrides:
canStillUsein classBehavior<Warden>
-
start
-
tick
-
stop
-
setCooldown
-