Class CountDownCooldownTicks
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.CountDownCooldownTicks
- All Implemented Interfaces:
BehaviorControl<LivingEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from class Behavior
Behavior.Status -
Field Summary
FieldsFields inherited from class Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel level, LivingEntity body, long timestamp) protected voidstop(ServerLevel level, LivingEntity body, long timestamp) protected voidtick(ServerLevel level, LivingEntity body, long timestamp) protected booleantimedOut(long timestamp) Methods inherited from class Behavior
checkExtraStartConditions, debugString, doStop, getRequiredMemories, getStatus, hasRequiredMemories, start, tickOrStop, tryStart
-
Field Details
-
cooldownTicks
-
-
Constructor Details
-
CountDownCooldownTicks
-
-
Method Details
-
getCooldownTickMemory
-
timedOut
protected boolean timedOut(long timestamp) - Overrides:
timedOutin classBehavior<LivingEntity>
-
canStillUse
- Overrides:
canStillUsein classBehavior<LivingEntity>
-
tick
- Overrides:
tickin classBehavior<LivingEntity>
-
stop
- Overrides:
stopin classBehavior<LivingEntity>
-