net.minecraft.world.entity.ai.memory

public class NearestVisibleLivingEntities

cfm
net.minecraft.world.entity.ai.memory.NearestVisibleLivingEntities
net.minecraft.class_6670
net.minecraft.entity.ai.brain.LivingTargetCache
net.minecraft.world.entity.ai.memory.NearestVisibleLivingEntities

Field summary

Modifier and TypeField
private static final NearestVisibleLivingEntities
a
EMPTY
field_35104
EMPTY
private final List<LivingEntity>
b
nearbyEntities
field_35105
entities
private final Predicate<LivingEntity>
c
lineOfSightTest
field_35106
targetPredicate

Constructor summary

ModifierConstructor
private ()
public (ServerLevel world, LivingEntity owner, List<LivingEntity> entities)

Method summary

Modifier and TypeMethod
public static NearestVisibleLivingEntities
a()
empty()
method_38971()
empty()
public Optional<LivingEntity>
a(Predicate<bwg> arg0)
findClosest(Predicate<LivingEntity> arg0)
method_38975(Predicate<class_1309> arg0)
findFirst(Predicate<LivingEntity> predicate)
public Iterable<LivingEntity>
b(Predicate<bwg> arg0)
findAll(Predicate<LivingEntity> arg0)
method_38978(Predicate<class_1309> arg0)
iterate(Predicate<LivingEntity> predicate)
public Stream<LivingEntity>
c(Predicate<bwg> arg0)
find(Predicate<LivingEntity> arg0)
method_38980(Predicate<class_1309> arg0)
stream(Predicate<LivingEntity> predicate)
public boolean
a(bwg arg0)
contains(LivingEntity arg0)
method_38972(class_1309 arg0)
contains(LivingEntity entity)
public boolean
d(Predicate<bwg> arg0)
contains(Predicate<LivingEntity> arg0)
method_38981(Predicate<class_1309> arg0)
anyMatch(Predicate<LivingEntity> predicate)