Class NearestVisibleLivingEntities
java.lang.Object
net.minecraft.world.entity.ai.memory.NearestVisibleLivingEntities
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final NearestVisibleLivingEntities
private final Predicate
<LivingEntity> private final List
<LivingEntity> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
NearestVisibleLivingEntities
(LivingEntity livingEntity, List<LivingEntity> nearbyLivingEntities) -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(Predicate<LivingEntity> predicate) boolean
contains
(LivingEntity entity) static NearestVisibleLivingEntities
empty()
find
(Predicate<LivingEntity> predicate) findAll
(Predicate<LivingEntity> predicate) findClosest
(Predicate<LivingEntity> predicate)
-
Field Details
-
EMPTY
-
nearbyEntities
-
lineOfSightTest
-
-
Constructor Details
-
NearestVisibleLivingEntities
private NearestVisibleLivingEntities() -
NearestVisibleLivingEntities
public NearestVisibleLivingEntities(LivingEntity livingEntity, List<LivingEntity> nearbyLivingEntities)
-
-
Method Details
-
empty
-
findClosest
-
findAll
-
find
-
contains
-
contains
-