Class LivingTargetCache

java.lang.Object
net.minecraft.entity.ai.brain.LivingTargetCache

public class LivingTargetCache extends Object
Mappings:
Namespace Name
official bfi
intermediary net/minecraft/class_6670
named net/minecraft/entity/ai/brain/LivingTargetCache
  • Field Details

    • EMPTY

      private static final LivingTargetCache EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lbfi;a:Lbfi;
      intermediary field_35104 Lnet/minecraft/class_6670;field_35104:Lnet/minecraft/class_6670;
      named EMPTY Lnet/minecraft/entity/ai/brain/LivingTargetCache;EMPTY:Lnet/minecraft/entity/ai/brain/LivingTargetCache;
    • entities

      private final List<LivingEntity> entities
      Mappings:
      Namespace Name Mixin selector
      official b Lbfi;b:Ljava/util/List;
      intermediary field_35105 Lnet/minecraft/class_6670;field_35105:Ljava/util/List;
      named entities Lnet/minecraft/entity/ai/brain/LivingTargetCache;entities:Ljava/util/List;
    • targetPredicate

      private final Predicate<LivingEntity> targetPredicate
      Mappings:
      Namespace Name Mixin selector
      official c Lbfi;c:Ljava/util/function/Predicate;
      intermediary field_35106 Lnet/minecraft/class_6670;field_35106:Ljava/util/function/Predicate;
      named targetPredicate Lnet/minecraft/entity/ai/brain/LivingTargetCache;targetPredicate:Ljava/util/function/Predicate;
  • Constructor Details

    • LivingTargetCache

      private LivingTargetCache()
    • LivingTargetCache

      public LivingTargetCache(LivingEntity owner, List<LivingEntity> entities)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfi;<init>(Laxh;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_6670;<init>(Lnet/minecraft/class_1309;Ljava/util/List;)V
      named <init> Lnet/minecraft/entity/ai/brain/LivingTargetCache;<init>(Lnet/minecraft/entity/LivingEntity;Ljava/util/List;)V
  • Method Details

    • empty

      public static LivingTargetCache empty()
      Mappings:
      Namespace Name Mixin selector
      official a Lbfi;a()Lbfi;
      intermediary method_38971 Lnet/minecraft/class_6670;method_38971()Lnet/minecraft/class_6670;
      named empty Lnet/minecraft/entity/ai/brain/LivingTargetCache;empty()Lnet/minecraft/entity/ai/brain/LivingTargetCache;
    • findFirst

      public Optional<LivingEntity> findFirst(Predicate<LivingEntity> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfi;a(Ljava/util/function/Predicate;)Ljava/util/Optional;
      intermediary method_38975 Lnet/minecraft/class_6670;method_38975(Ljava/util/function/Predicate;)Ljava/util/Optional;
      named findFirst Lnet/minecraft/entity/ai/brain/LivingTargetCache;findFirst(Ljava/util/function/Predicate;)Ljava/util/Optional;
    • iterate

      public Iterable<LivingEntity> iterate(Predicate<LivingEntity> predicate)
      Mappings:
      Namespace Name Mixin selector
      official b Lbfi;b(Ljava/util/function/Predicate;)Ljava/lang/Iterable;
      intermediary method_38978 Lnet/minecraft/class_6670;method_38978(Ljava/util/function/Predicate;)Ljava/lang/Iterable;
      named iterate Lnet/minecraft/entity/ai/brain/LivingTargetCache;iterate(Ljava/util/function/Predicate;)Ljava/lang/Iterable;
    • stream

      public Stream<LivingEntity> stream(Predicate<LivingEntity> predicate)
      Mappings:
      Namespace Name Mixin selector
      official c Lbfi;c(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
      intermediary method_38980 Lnet/minecraft/class_6670;method_38980(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
      named stream Lnet/minecraft/entity/ai/brain/LivingTargetCache;stream(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
    • contains

      public boolean contains(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfi;a(Laxh;)Z
      intermediary method_38972 Lnet/minecraft/class_6670;method_38972(Lnet/minecraft/class_1309;)Z
      named contains Lnet/minecraft/entity/ai/brain/LivingTargetCache;contains(Lnet/minecraft/entity/LivingEntity;)Z
    • anyMatch

      public boolean anyMatch(Predicate<LivingEntity> predicate)
      Mappings:
      Namespace Name Mixin selector
      official d Lbfi;d(Ljava/util/function/Predicate;)Z
      intermediary method_38981 Lnet/minecraft/class_6670;method_38981(Ljava/util/function/Predicate;)Z
      named anyMatch Lnet/minecraft/entity/ai/brain/LivingTargetCache;anyMatch(Ljava/util/function/Predicate;)Z