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 p_157510_, EntitySection<T> p_157511_)
    • addEntityUuid

      private boolean addEntityUuid(T p_157558_)
    • addNewEntity

      public boolean addNewEntity(T p_157534_)
    • addNewEntityWithoutEvent

      public boolean addNewEntityWithoutEvent(T entity)
    • addEntity

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

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

      static <T extends EntityAccess> Visibility getEffectiveStatus(T p_157536_, Visibility p_157537_)
    • addLegacyChunkEntities

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

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

      void startTicking(T p_157565_)
    • stopTicking

      void stopTicking(T p_157571_)
    • startTracking

      void startTracking(T p_157576_)
    • stopTracking

      void stopTracking(T p_157581_)
    • updateChunkStatus

      public void updateChunkStatus(ChunkPos p_157525_, ChunkHolder.FullChunkStatus p_157526_)
    • updateChunkStatus

      public void updateChunkStatus(ChunkPos p_157528_, Visibility p_157529_)
    • ensureChunkQueuedForLoad

      private void ensureChunkQueuedForLoad(long p_157556_)
    • storeChunkSections

      private boolean storeChunkSections(long p_157513_, Consumer<T> p_157514_)
    • requestChunkLoad

      private void requestChunkLoad(long p_157563_)
    • processChunkUnload

      private boolean processChunkUnload(long p_157569_)
    • unloadEntity

      private void unloadEntity(EntityAccess p_157586_)
    • 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 p_157551_)
    • getEntityGetter

      public LevelEntityGetter<T> getEntityGetter()
    • isPositionTicking

      public boolean isPositionTicking(BlockPos p_157547_)
    • isPositionTicking

      public boolean isPositionTicking(ChunkPos p_157523_)
    • areEntitiesLoaded

      public boolean areEntitiesLoaded(long p_157508_)
    • dumpSections

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

      public String gatherStats()