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
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
ConstructorDescriptionStartAttacking(Function<E,Optional<? extends LivingEntity>> p_24193_)
StartAttacking(Predicate<E> p_24195_, Function<E,Optional<? extends LivingEntity>> p_24196_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions(ServerLevel p_24205_, E p_24206_)
private void
setAttackTarget(E p_24214_, LivingEntity p_24215_)
protected void
start(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