Package net.minecraft.server.network
Class PlayerChunkSender
java.lang.Object
net.minecraft.server.network.PlayerChunkSender
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate floatprivate floatprivate static final org.slf4j.Loggerstatic final floatprivate static final intprivate intprivate final booleanstatic final floatprivate final it.unimi.dsi.fastutil.longs.LongSetprivate static final floatprivate int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate List<LevelChunk>collectChunksToSend(ChunkMap p_298180_, ChunkPos p_298514_) voiddropChunk(ServerPlayer p_298166_, ChunkPos p_300687_) booleanisPending(long p_299869_) voidmarkChunkPendingToSend(LevelChunk p_298187_) voidonChunkBatchReceivedByClient(float p_298238_) private static voidsendChunk(ServerGamePacketListenerImpl p_299748_, ServerLevel p_298120_, LevelChunk p_297712_) voidsendNextChunks(ServerPlayer p_297274_) 
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
MIN_CHUNKS_PER_TICKpublic static final float MIN_CHUNKS_PER_TICK- See Also:
 
- 
MAX_CHUNKS_PER_TICKpublic static final float MAX_CHUNKS_PER_TICK- See Also:
 
- 
START_CHUNKS_PER_TICKprivate static final float START_CHUNKS_PER_TICK- See Also:
 
- 
MAX_UNACKNOWLEDGED_BATCHESprivate static final int MAX_UNACKNOWLEDGED_BATCHES- See Also:
 
- 
pendingChunksprivate final it.unimi.dsi.fastutil.longs.LongSet pendingChunks
- 
memoryConnectionprivate final boolean memoryConnection
- 
desiredChunksPerTickprivate float desiredChunksPerTick
- 
batchQuotaprivate float batchQuota
- 
unacknowledgedBatchesprivate int unacknowledgedBatches
- 
maxUnacknowledgedBatchesprivate int maxUnacknowledgedBatches
 
- 
- 
Constructor Details- 
PlayerChunkSenderpublic PlayerChunkSender(boolean p_300389_) 
 
- 
- 
Method Details- 
markChunkPendingToSend
- 
dropChunk
- 
sendNextChunks
- 
sendChunkprivate static void sendChunk(ServerGamePacketListenerImpl p_299748_, ServerLevel p_298120_, LevelChunk p_297712_) 
- 
collectChunksToSend
- 
onChunkBatchReceivedByClientpublic void onChunkBatchReceivedByClient(float p_298238_) 
- 
isPendingpublic boolean isPending(long p_299869_) 
 
-