Class EntityIndex<T extends EntityLike>

java.lang.Object
net.minecraft.world.entity.EntityIndex<T>

public class EntityIndex<T extends EntityLike> extends Object
An index of entities by both their network IDs and UUIDs.
Mappings:
Namespace Name
official dfj
intermediary net/minecraft/class_5570
named net/minecraft/world/entity/EntityIndex
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldfj;a:Lorg/slf4j/Logger;
      intermediary field_27244 Lnet/minecraft/class_5570;field_27244:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/world/entity/EntityIndex;LOGGER:Lorg/slf4j/Logger;
    • idToEntity

      private final Int2ObjectMap<T extends EntityLike> idToEntity
      Mappings:
      Namespace Name Mixin selector
      official b Ldfj;b:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_27245 Lnet/minecraft/class_5570;field_27245:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      named idToEntity Lnet/minecraft/world/entity/EntityIndex;idToEntity:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • uuidToEntity

      private final Map<UUID,T extends EntityLike> uuidToEntity
      Mappings:
      Namespace Name Mixin selector
      official c Ldfj;c:Ljava/util/Map;
      intermediary field_27246 Lnet/minecraft/class_5570;field_27246:Ljava/util/Map;
      named uuidToEntity Lnet/minecraft/world/entity/EntityIndex;uuidToEntity:Ljava/util/Map;
  • Constructor Details

    • EntityIndex

      public EntityIndex()
  • Method Details

    • forEach

      public <U extends T> void forEach(TypeFilter<T,U> filter, LazyIterationConsumer<U> consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldfj;a(Ldfo;Laob;)V
      intermediary method_31754 Lnet/minecraft/class_5570;method_31754(Lnet/minecraft/class_5575;Lnet/minecraft/class_7927;)V
      named forEach Lnet/minecraft/world/entity/EntityIndex;forEach(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/function/LazyIterationConsumer;)V
    • iterate

      public Iterable<T> iterate()
      Mappings:
      Namespace Name Mixin selector
      official a Ldfj;a()Ljava/lang/Iterable;
      intermediary method_31751 Lnet/minecraft/class_5570;method_31751()Ljava/lang/Iterable;
      named iterate Lnet/minecraft/world/entity/EntityIndex;iterate()Ljava/lang/Iterable;
    • add

      public void add(T entity)
      Mappings:
      Namespace Name Mixin selector
      official a Ldfj;a(Ldfh;)V
      intermediary method_31753 Lnet/minecraft/class_5570;method_31753(Lnet/minecraft/class_5568;)V
      named add Lnet/minecraft/world/entity/EntityIndex;add(Lnet/minecraft/world/entity/EntityLike;)V
    • remove

      public void remove(T entity)
      Mappings:
      Namespace Name Mixin selector
      official b Ldfj;b(Ldfh;)V
      intermediary method_31757 Lnet/minecraft/class_5570;method_31757(Lnet/minecraft/class_5568;)V
      named remove Lnet/minecraft/world/entity/EntityIndex;remove(Lnet/minecraft/world/entity/EntityLike;)V
    • get

      @Nullable public T get(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Ldfj;a(I)Ldfh;
      intermediary method_31752 Lnet/minecraft/class_5570;method_31752(I)Lnet/minecraft/class_5568;
      named get Lnet/minecraft/world/entity/EntityIndex;get(I)Lnet/minecraft/world/entity/EntityLike;
    • get

      @Nullable public T get(UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official a Ldfj;a(Ljava/util/UUID;)Ldfh;
      intermediary method_31755 Lnet/minecraft/class_5570;method_31755(Ljava/util/UUID;)Lnet/minecraft/class_5568;
      named get Lnet/minecraft/world/entity/EntityIndex;get(Ljava/util/UUID;)Lnet/minecraft/world/entity/EntityLike;
    • size

      public int size()
      Mappings:
      Namespace Name Mixin selector
      official b Ldfj;b()I
      intermediary method_31756 Lnet/minecraft/class_5570;method_31756()I
      named size Lnet/minecraft/world/entity/EntityIndex;size()I