Class ArmadilloAi.ArmadilloBallUp
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Armadillo>
net.minecraft.world.entity.animal.armadillo.ArmadilloAi.ArmadilloBallUp
- All Implemented Interfaces:
BehaviorControl<Armadillo>
- Enclosing class:
ArmadilloAi
-
Nested Class Summary
Nested classes/interfaces inherited from class Behavior
Behavior.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate booleanprivate intprivate static final intFields inherited from class Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel level, Armadillo body, long timestamp) protected booleancheckExtraStartConditions(ServerLevel level, Armadillo body) private intpickNextPeekTimer(Armadillo body) protected voidstart(ServerLevel level, Armadillo body, long timestamp) protected voidstop(ServerLevel level, Armadillo body, long timestamp) protected voidtick(ServerLevel level, Armadillo body, long timestamp) Methods inherited from class Behavior
debugString, doStop, getRequiredMemories, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
Field Details
-
BALL_UP_STAY_IN_STATE
private static final int BALL_UP_STAY_IN_STATE -
TICKS_DELAY_TO_DETERMINE_IF_DANGER_IS_STILL_AROUND
private static final int TICKS_DELAY_TO_DETERMINE_IF_DANGER_IS_STILL_AROUND- See Also:
-
DANGER_DETECTED_RECENTLY_DANGER_THRESHOLD
private static final int DANGER_DETECTED_RECENTLY_DANGER_THRESHOLD- See Also:
-
nextPeekTimer
private int nextPeekTimer -
dangerWasAround
private boolean dangerWasAround
-
-
Constructor Details
-
ArmadilloBallUp
public ArmadilloBallUp()
-
-
Method Details
-
tick
-
pickNextPeekTimer
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<Armadillo>
-
canStillUse
- Overrides:
canStillUsein classBehavior<Armadillo>
-
start
-
stop
-