Class SetEntityLookTarget
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.SetEntityLookTarget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
private Optional<LivingEntity>
private final Predicate<LivingEntity>
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
ConstructorDescriptionSetEntityLookTarget
(float p_23892_) SetEntityLookTarget
(Predicate<LivingEntity> p_23900_, float p_23901_) SetEntityLookTarget
(TagKey<EntityType<?>> p_204047_, float p_204048_) SetEntityLookTarget
(EntityType<?> p_23894_, float p_23895_) SetEntityLookTarget
(MobCategory p_23897_, float p_23898_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_23903_, LivingEntity p_23904_) protected void
start
(ServerLevel p_23906_, LivingEntity p_23907_, long p_23908_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
predicate
-
maxDistSqr
private final float maxDistSqr -
nearestEntityMatchingTest
-
-
Constructor Details
-
SetEntityLookTarget
-
SetEntityLookTarget
-
SetEntityLookTarget
-
SetEntityLookTarget
public SetEntityLookTarget(float p_23892_) -
SetEntityLookTarget
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<LivingEntity>
-
start
- Overrides:
start
in classBehavior<LivingEntity>
-