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
FieldsFields 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(Tag<EntityType<?>> p_147885_, float p_147886_)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
-
-
Constructor Details
-
SetEntityLookTarget
-
SetEntityLookTarget
-
SetEntityLookTarget
-
SetEntityLookTarget
public SetEntityLookTarget(float p_23892_) -
SetEntityLookTarget
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<LivingEntity>
-
start
- Overrides:
startin classBehavior<LivingEntity>
-