Class PlayerChunkSender

java.lang.Object
net.minecraft.server.network.PlayerChunkSender

public class PlayerChunkSender extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • MIN_CHUNKS_PER_TICK

      public static final float MIN_CHUNKS_PER_TICK
      See Also:
    • MAX_CHUNKS_PER_TICK

      public static final float MAX_CHUNKS_PER_TICK
      See Also:
    • START_CHUNKS_PER_TICK

      private static final float START_CHUNKS_PER_TICK
      See Also:
    • MAX_UNACKNOWLEDGED_BATCHES

      private static final int MAX_UNACKNOWLEDGED_BATCHES
      See Also:
    • pendingChunks

      private final it.unimi.dsi.fastutil.longs.LongSet pendingChunks
    • memoryConnection

      private final boolean memoryConnection
    • desiredChunksPerTick

      private float desiredChunksPerTick
    • batchQuota

      private float batchQuota
    • unacknowledgedBatches

      private int unacknowledgedBatches
    • maxUnacknowledgedBatches

      private int maxUnacknowledgedBatches
  • Constructor Details

    • PlayerChunkSender

      public PlayerChunkSender(boolean p_300389_)
  • Method Details

    • markChunkPendingToSend

      public void markChunkPendingToSend(LevelChunk p_298187_)
    • dropChunk

      public void dropChunk(ServerPlayer p_298166_, ChunkPos p_300687_)
    • sendNextChunks

      public void sendNextChunks(ServerPlayer p_297274_)
    • sendChunk

      private static void sendChunk(ServerGamePacketListenerImpl p_299748_, ServerLevel p_298120_, LevelChunk p_297712_)
    • collectChunksToSend

      private List<LevelChunk> collectChunksToSend(ChunkMap p_298180_, ChunkPos p_298514_)
    • onChunkBatchReceivedByClient

      public void onChunkBatchReceivedByClient(float p_298238_)
    • isPending

      public boolean isPending(long p_299869_)