Class ChunkUpdateLimitChecker

java.lang.Object
net.minestom.server.utils.chunk.ChunkUpdateLimitChecker

@Internal public final class ChunkUpdateLimitChecker extends Object
  • Constructor Details

    • ChunkUpdateLimitChecker

      public ChunkUpdateLimitChecker(int historySize)
  • Method Details

    • addToHistory

      public boolean addToHistory(Chunk chunk)
      Adds the chunk to the history
      Parameters:
      chunk - chunk to add
      Returns:
      true if it's a new chunk in the history
    • clearHistory

      public void clearHistory()