Class EntitySection<T>

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

public class EntitySection<T> extends Object
  • Field Details

    • LOGGER

      protected static final org.apache.logging.log4j.Logger LOGGER
    • storage

      private final ClassInstanceMultiMap<T> storage
    • chunkStatus

      private Visibility chunkStatus
  • Constructor Details

    • EntitySection

      public EntitySection(Class<T> p_156831_, Visibility p_156832_)
  • Method Details

    • add

      public void add(T p_156841_)
    • remove

      public boolean remove(T p_156847_)
    • getEntities

      public void getEntities(Predicate<? super T> p_156843_, Consumer<T> p_156844_)
    • getEntities

      public <U extends T> void getEntities(EntityTypeTest<T,​U> p_156835_, Predicate<? super U> p_156836_, Consumer<? super U> p_156837_)
    • isEmpty

      public boolean isEmpty()
    • getEntities

      public Stream<T> getEntities()
    • getStatus

      public Visibility getStatus()
    • updateChunkStatus

      public Visibility updateChunkStatus(Visibility p_156839_)
    • size

      public int size()