Class SetWalkTargetFromLookTarget
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.SetWalkTargetFromLookTarget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Predicate<LivingEntity>
private final int
private final Function<LivingEntity,
Float> Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
ConstructorDescriptionSetWalkTargetFromLookTarget
(float p_24084_, int p_24085_) SetWalkTargetFromLookTarget
(Predicate<LivingEntity> p_182359_, Function<LivingEntity, Float> p_182360_, int p_182361_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_182366_, LivingEntity p_182367_) protected void
start
(ServerLevel p_24087_, LivingEntity p_24088_, long p_24089_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
speedModifier
-
closeEnoughDistance
private final int closeEnoughDistance -
canSetWalkTargetPredicate
-
-
Constructor Details
-
SetWalkTargetFromLookTarget
public SetWalkTargetFromLookTarget(float p_24084_, int p_24085_) -
SetWalkTargetFromLookTarget
public SetWalkTargetFromLookTarget(Predicate<LivingEntity> p_182359_, Function<LivingEntity, Float> p_182360_, int p_182361_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<LivingEntity>
-
start
- Overrides:
start
in classBehavior<LivingEntity>
-