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 net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
FieldsFields 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, LivingEntity pEntity, long pGameTime) getCooldownTickMemory
(LivingEntity pEntity) protected void
stop
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) protected void
tick
(ServerLevel pLevel, LivingEntity pOwner, long pGameTime) protected boolean
timedOut
(long pGameTime) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
checkExtraStartConditions, debugString, doStop, getStatus, hasRequiredMemories, start, tickOrStop, tryStart
-
Field Details
-
cooldownTicks
-
-
Constructor Details
-
CountDownCooldownTicks
-
-
Method Details
-
getCooldownTickMemory
-
timedOut
protected boolean timedOut(long pGameTime) - Overrides:
timedOut
in classBehavior<LivingEntity>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<LivingEntity>
-
tick
- Overrides:
tick
in classBehavior<LivingEntity>
-
stop
- Overrides:
stop
in classBehavior<LivingEntity>
-