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
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
ConstructorDescriptionSetEntityLookTarget(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 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
-
-
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>
-