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 pLevel, Warden pEntity, long pGameTime) protected booleancheckExtraStartConditions(ServerLevel pLevel, Warden pOwner) static voidsetCooldown(LivingEntity pEntity, int pCooldown) protected voidstart(ServerLevel pLevel, Warden pEntity, long pGameTime) protected voidstop(ServerLevel pLevel, Warden pEntity, long pGameTime) protected voidtick(ServerLevel pLevel, Warden pOwner, long pGameTime) 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
-