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 crq
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 Lcrq;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_27244 Lnet/minecraft/class_5570;field_27244:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/world/entity/EntityIndex;LOGGER:Lorg/apache/logging/log4j/Logger;
    • idToEntity

      private final Int2ObjectMap<T extends EntityLike> idToEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lcrq;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 Lcrq;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, Consumer<U> action)
      Mappings:
      Namespace Name Mixin selector
      official a Lcrq;a(Lcrv;Ljava/util/function/Consumer;)V
      intermediary method_31754 Lnet/minecraft/class_5570;method_31754(Lnet/minecraft/class_5575;Ljava/util/function/Consumer;)V
      named forEach Lnet/minecraft/world/entity/EntityIndex;forEach(Lnet/minecraft/util/TypeFilter;Ljava/util/function/Consumer;)V
    • iterate

      public Iterable<T> iterate()
      Mappings:
      Namespace Name Mixin selector
      official a Lcrq;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 Lcrq;a(Lcro;)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 Lcrq;b(Lcro;)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 Lcrq;a(I)Lcro;
      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 Lcrq;a(Ljava/util/UUID;)Lcro;
      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 Lcrq;b()I
      intermediary method_31756 Lnet/minecraft/class_5570;method_31756()I
      named size Lnet/minecraft/world/entity/EntityIndex;size()I