Class TicketManager

    • Constructor Detail

      • TicketManager

        protected TicketManager​(java.util.concurrent.Executor p_i50707_1_,
                                java.util.concurrent.Executor p_i50707_2_)
    • Method Detail

      • purgeStaleTickets

        protected void purgeStaleTickets()
      • isChunkToRemove

        protected abstract boolean isChunkToRemove​(long p_219371_1_)
      • getChunk

        @Nullable
        protected abstract ChunkHolder getChunk​(long p_219335_1_)
      • updateChunkScheduling

        @Nullable
        protected abstract ChunkHolder updateChunkScheduling​(long p_219372_1_,
                                                             int p_219372_3_,
                                                             @Nullable
                                                             ChunkHolder p_219372_4_,
                                                             int p_219372_5_)
      • runAllUpdates

        public boolean runAllUpdates​(ChunkManager p_219353_1_)
      • addTicket

        private void addTicket​(long p_219347_1_,
                               Ticket<?> p_219347_3_)
      • removeTicket

        private void removeTicket​(long p_219349_1_,
                                  Ticket<?> p_219349_3_)
      • addTicket

        public <T> void addTicket​(TicketType<T> p_219356_1_,
                                  ChunkPos p_219356_2_,
                                  int p_219356_3_,
                                  T p_219356_4_)
      • removeTicket

        public <T> void removeTicket​(TicketType<T> p_219345_1_,
                                     ChunkPos p_219345_2_,
                                     int p_219345_3_,
                                     T p_219345_4_)
      • addRegionTicket

        public <T> void addRegionTicket​(TicketType<T> p_219331_1_,
                                        ChunkPos p_219331_2_,
                                        int p_219331_3_,
                                        T p_219331_4_)
      • removeRegionTicket

        public <T> void removeRegionTicket​(TicketType<T> p_219362_1_,
                                           ChunkPos p_219362_2_,
                                           int p_219362_3_,
                                           T p_219362_4_)
      • 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)
      • updateChunkForced

        protected void updateChunkForced​(ChunkPos p_219364_1_,
                                         boolean p_219364_2_)
      • getTicketDebugString

        protected java.lang.String getTicketDebugString​(long p_225413_1_)
      • updatePlayerTickets

        protected void updatePlayerTickets​(int p_219354_1_)
      • getNaturalSpawnChunkCount

        public int getNaturalSpawnChunkCount()
      • hasPlayersNearby

        public boolean hasPlayersNearby​(long p_223494_1_)
      • getDebugStatus

        public java.lang.String getDebugStatus()
      • shouldForceTicks

        public boolean shouldForceTicks​(long chunkPos)