Class StartAttacking<E extends Mob>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.StartAttacking<E>
-
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
entryCondition -
Constructor Summary
ConstructorsConstructorDescriptionStartAttacking(Function<E,Optional<? extends LivingEntity>> p_24193_)StartAttacking(Predicate<E> p_24195_, Function<E,Optional<? extends LivingEntity>> p_24196_) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckExtraStartConditions(ServerLevel p_24205_, E p_24206_)private voidsetAttackTarget(E p_24214_, LivingEntity p_24215_)protected voidstart(ServerLevel p_24208_, E p_24209_, long p_24210_)Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart