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
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
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
public StartCelebratingIfTargetDead(int p_24222_, BiPredicate<LivingEntity,LivingEntity> p_24223_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<LivingEntity>
-
start
- Overrides:
start
in classBehavior<LivingEntity>
-
getAttackTarget
-