Class DistanceManager

java.lang.Object
net.minecraft.server.level.DistanceManager
Direct Known Subclasses:
ChunkMap.DistanceManager

public abstract class DistanceManager extends Object
  • Field Details

  • Constructor Details

    • DistanceManager

      protected DistanceManager(Executor p_140774_, Executor p_140775_)
  • Method Details

    • purgeStaleTickets

      protected void purgeStaleTickets()
    • getTicketLevelAt

      private static int getTicketLevelAt(SortedArraySet<Ticket<?>> p_140798_)
    • isChunkToRemove

      protected abstract boolean isChunkToRemove(long p_140779_)
    • getChunk

      @Nullable protected abstract ChunkHolder getChunk(long p_140817_)
    • updateChunkScheduling

      @Nullable protected abstract ChunkHolder updateChunkScheduling(long p_140780_, int p_140781_, @Nullable ChunkHolder p_140782_, int p_140783_)
    • runAllUpdates

      public boolean runAllUpdates(ChunkMap p_140806_)
    • addTicket

      void addTicket(long p_140785_, Ticket<?> p_140786_)
    • removeTicket

      void removeTicket(long p_140819_, Ticket<?> p_140820_)
    • addTicket

      public <T> void addTicket(TicketType<T> p_140793_, ChunkPos p_140794_, int p_140795_, T p_140796_)
    • removeTicket

      public <T> void removeTicket(TicketType<T> p_140824_, ChunkPos p_140825_, int p_140826_, T p_140827_)
    • addRegionTicket

      public <T> void addRegionTicket(TicketType<T> p_140841_, ChunkPos p_140842_, int p_140843_, T p_140844_)
    • removeRegionTicket

      public <T> void removeRegionTicket(TicketType<T> p_140850_, ChunkPos p_140851_, int p_140852_, T p_140853_)
    • registerTicking

      public <T> void registerTicking(TicketType<T> type, ChunkPos pos, int distance, T value)
    • releaseTicking

      public <T> void releaseTicking(TicketType<T> type, ChunkPos pos, int distance, T value)
    • getTickets

      private SortedArraySet<Ticket<?>> getTickets(long p_140858_)
    • updateChunkForced

      protected void updateChunkForced(ChunkPos p_140800_, boolean p_140801_)
    • addPlayer

      public void addPlayer(SectionPos p_140803_, ServerPlayer p_140804_)
    • removePlayer

      public void removePlayer(SectionPos p_140829_, ServerPlayer p_140830_)
    • getTicketDebugString

      protected String getTicketDebugString(long p_140839_)
    • updatePlayerTickets

      protected void updatePlayerTickets(int p_140778_)
    • getNaturalSpawnChunkCount

      public int getNaturalSpawnChunkCount()
    • hasPlayersNearby

      public boolean hasPlayersNearby(long p_140848_)
    • getDebugStatus

      public String getDebugStatus()
    • shouldForceTicks

      public boolean shouldForceTicks(long chunkPos)
    • dumpTickets

      private void dumpTickets(String p_143208_)