Class StartCelebratingIfTargetDead
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.StartCelebratingIfTargetDead
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final BiPredicate<LivingEntity,
LivingEntity> Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
ConstructorDescriptionStartCelebratingIfTargetDead
(int p_24222_, BiPredicate<LivingEntity, LivingEntity> p_24223_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_24225_, LivingEntity p_24226_) private LivingEntity
getAttackTarget
(LivingEntity p_24232_) protected void
start
(ServerLevel p_24228_, LivingEntity p_24229_, long p_24230_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
celebrateDuration
private final int celebrateDuration -
dancePredicate
-
-
Constructor Details
-
StartCelebratingIfTargetDead
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<LivingEntity>
-
start
- Overrides:
start
in classBehavior<LivingEntity>
-
getAttackTarget
-