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
named net/minecraft/world/entity/EntityIndex
intermediary net/minecraft/class_5570
official dwf
  • Field Details

    • LOGGER

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

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

      private final Map<UUID,T extends EntityLike> uuidToEntity
      Mappings:
      Namespace Name Mixin selector
      named uuidToEntity Lnet/minecraft/world/entity/EntityIndex;uuidToEntity:Ljava/util/Map;
      intermediary field_27246 Lnet/minecraft/class_5570;field_27246:Ljava/util/Map;
      official c Ldwf;c: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
      named forEach Lnet/minecraft/world/entity/EntityIndex;forEach(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/function/LazyIterationConsumer;)V
      intermediary method_31754 Lnet/minecraft/class_5570;method_31754(Lnet/minecraft/class_5575;Lnet/minecraft/class_7927;)V
      official a Ldwf;a(Ldwk;Laxl;)V
    • iterate

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

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

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

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

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

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