Class FindInteractionAndLookTargetTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.FindInteractionAndLookTargetTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final Predicate<LivingEntity>
private final Predicate<LivingEntity>
private final EntityType<?>
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionFindInteractionAndLookTargetTask
(EntityType<?> p_i50348_1_, int p_i50348_2_) FindInteractionAndLookTargetTask
(EntityType<?> p_i50347_1_, int p_i50347_2_, Predicate<LivingEntity> p_i50347_3_, Predicate<LivingEntity> p_i50347_4_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkExtraStartConditions
(ServerWorld p_212832_1_, LivingEntity p_212832_2_) private List<LivingEntity>
getVisibleEntities
(LivingEntity p_220530_1_) private boolean
isMatchingTarget
(LivingEntity p_220532_1_) void
start
(ServerWorld p_212831_1_, LivingEntity p_212831_2_, long p_212831_3_) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
type
-
interactionRangeSqr
private final int interactionRangeSqr -
targetFilter
-
selfFilter
-
-
Constructor Details
-
FindInteractionAndLookTargetTask
public FindInteractionAndLookTargetTask(EntityType<?> p_i50347_1_, int p_i50347_2_, Predicate<LivingEntity> p_i50347_3_, Predicate<LivingEntity> p_i50347_4_) -
FindInteractionAndLookTargetTask
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<LivingEntity>
-
start
- Overrides:
start
in classTask<LivingEntity>
-
isMatchingTarget
-
getVisibleEntities
-