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
FieldsModifier and TypeFieldDescriptionprivate final floatprivate Optional<LivingEntity>private final Predicate<LivingEntity>Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition -
Constructor Summary
ConstructorsConstructorDescriptionSetEntityLookTarget(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 booleancheckExtraStartConditions(ServerLevel p_23903_, LivingEntity p_23904_) protected voidstart(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:
checkExtraStartConditionsin classBehavior<LivingEntity>
-
start
- Overrides:
startin classBehavior<LivingEntity>
-