Class EntityLookup<T extends EntityAccess>

java.lang.Object
net.minecraft.world.level.entity.EntityLookup<T>

public class EntityLookup<T extends EntityAccess> extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • byId

      private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<T extends EntityAccess> byId
    • byUuid

      private final Map<UUID,​T extends EntityAccess> byUuid
  • Constructor Details

    • EntityLookup

      public EntityLookup()
  • Method Details

    • getEntities

      public <U extends T> void getEntities(EntityTypeTest<T,​U> p_156817_, Consumer<U> p_156818_)
    • getAllEntities

      public Iterable<T> getAllEntities()
    • add

      public void add(T p_156815_)
    • remove

      public void remove(T p_156823_)
    • getEntity

      @Nullable public T getEntity(int p_156813_)
    • getEntity

      @Nullable public T getEntity(UUID p_156820_)
    • count

      public int count()