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
DEFAULT_DURATION, entryCondition
-
Constructor Summary
ConstructorDescriptionStartAttacking
(Function<E, Optional<? extends LivingEntity>> p_24193_) StartAttacking
(Predicate<E> p_24195_, Function<E, Optional<? extends LivingEntity>> p_24196_) StartAttacking
(Predicate<E> p_217378_, Function<E, Optional<? extends LivingEntity>> p_217379_, int p_217380_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_24205_, E p_24206_) static <E extends Mob>
voidsetAttackTarget
(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
-
Field Details
-
canAttackPredicate
-
targetFinderFunction
-
-
Constructor Details
-
StartAttacking
-
StartAttacking
-
StartAttacking
-
-
Method Details