Class PersistentEntitySectionManager<T extends EntityAccess>

java.lang.Object
net.minecraft.world.level.entity.PersistentEntitySectionManager<T>
All Implemented Interfaces:
AutoCloseable

public class PersistentEntitySectionManager<T extends EntityAccess> extends Object implements AutoCloseable
  • Field Details

  • Constructor Details

  • Method Details

    • removeSectionIfEmpty

      void removeSectionIfEmpty(long sectionKey, EntitySection<T> section)
    • addEntityUuid

      private boolean addEntityUuid(T entity)
    • addNewEntity

      public boolean addNewEntity(T entity)
    • addNewEntityWithoutEvent

      public boolean addNewEntityWithoutEvent(T entity)
    • addEntity

      private boolean addEntity(T p_entity, boolean worldGenSpawned)
    • addEntityWithoutEvent

      private boolean addEntityWithoutEvent(T p_157539_, boolean p_157540_)
    • getEffectiveStatus

      static <T extends EntityAccess> Visibility getEffectiveStatus(T entity, Visibility visibility)
    • addLegacyChunkEntities

      public void addLegacyChunkEntities(Stream<T> entities)
    • addWorldGenChunkEntities

      public void addWorldGenChunkEntities(Stream<T> entities)
    • startTicking

      void startTicking(T entity)
    • stopTicking

      void stopTicking(T entity)
    • startTracking

      void startTracking(T entity)
    • stopTracking

      void stopTracking(T entity)
    • updateChunkStatus

      public void updateChunkStatus(ChunkPos chunkPos, FullChunkStatus fullChunkStatus)
    • updateChunkStatus

      public void updateChunkStatus(ChunkPos pos, Visibility p_visibility)
    • ensureChunkQueuedForLoad

      private void ensureChunkQueuedForLoad(long chunkPosValue)
    • storeChunkSections

      private boolean storeChunkSections(long chunkPosValue, Consumer<T> entityAction)
    • requestChunkLoad

      private void requestChunkLoad(long chunkPosValue)
    • processChunkUnload

      private boolean processChunkUnload(long chunkPosValue)
    • unloadEntity

      private void unloadEntity(EntityAccess entity)
    • processUnloads

      private void processUnloads()
    • processPendingLoads

      private void processPendingLoads()
    • tick

      public void tick()
    • getAllChunksToSave

      private it.unimi.dsi.fastutil.longs.LongSet getAllChunksToSave()
    • autoSave

      public void autoSave()
    • saveAll

      public void saveAll()
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException
    • isLoaded

      public boolean isLoaded(UUID uuid)
    • getEntityGetter

      public LevelEntityGetter<T> getEntityGetter()
    • canPositionTick

      public boolean canPositionTick(BlockPos pos)
    • canPositionTick

      public boolean canPositionTick(ChunkPos chunkPos)
    • areEntitiesLoaded

      public boolean areEntitiesLoaded(long chunkPos)
    • dumpSections

      public void dumpSections(Writer writer) throws IOException
      Throws:
      IOException
    • gatherStats

      public String gatherStats()
    • count

      public int count()