Class SetLookAndInteract
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.SetLookAndInteract
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private Predicate<LivingEntity>
private Predicate<LivingEntity>
private EntityType<?>
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
ConstructorDescriptionSetLookAndInteract(EntityType<?> p_23942_, int p_23943_)
SetLookAndInteract(EntityType<?> p_23945_, int p_23946_, Predicate<LivingEntity> p_23947_, Predicate<LivingEntity> p_23948_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkExtraStartConditions(ServerLevel p_23950_, LivingEntity p_23951_)
private List<LivingEntity>
getVisibleEntities(LivingEntity p_23969_)
private boolean
isMatchingTarget(LivingEntity p_23957_)
void
start(ServerLevel p_23953_, LivingEntity p_23954_, long p_23955_)
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
type
-
interactionRangeSqr
private final int interactionRangeSqr -
targetFilter
-
selfFilter
-
-
Constructor Details
-
SetLookAndInteract
public SetLookAndInteract(EntityType<?> p_23945_, int p_23946_, Predicate<LivingEntity> p_23947_, Predicate<LivingEntity> p_23948_) -
SetLookAndInteract
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<LivingEntity>
-
start
- Overrides:
start
in classBehavior<LivingEntity>
-
isMatchingTarget
-
getVisibleEntities
-