Package net.minecraft.server.network
Class PlayerChunkSender
java.lang.Object
net.minecraft.server.network.PlayerChunkSender
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float
private float
private static final org.slf4j.Logger
static final float
private static final int
private int
private final boolean
static final float
private final it.unimi.dsi.fastutil.longs.LongSet
private static final float
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate List
<LevelChunk> collectChunksToSend
(ChunkMap pChunkMap, ChunkPos pChunkPos) void
dropChunk
(ServerPlayer pPlayer, ChunkPos pChunkPos) boolean
isPending
(long pChunkPos) void
markChunkPendingToSend
(LevelChunk pChunk) void
onChunkBatchReceivedByClient
(float pDesiredBatchSize) private static void
sendChunk
(ServerGamePacketListenerImpl pPacketListener, ServerLevel pLevel, LevelChunk pChunk) void
sendNextChunks
(ServerPlayer pPlayer)
-
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 pMemoryConnection)
-
-
Method Details
-
markChunkPendingToSend
-
dropChunk
-
sendNextChunks
-
sendChunk
private static void sendChunk(ServerGamePacketListenerImpl pPacketListener, ServerLevel pLevel, LevelChunk pChunk) -
collectChunksToSend
-
onChunkBatchReceivedByClient
public void onChunkBatchReceivedByClient(float pDesiredBatchSize) -
isPending
public boolean isPending(long pChunkPos)
-