Package net.minecraft.server.network
Class PlayerChunkSender
java.lang.Object
net.minecraft.server.network.PlayerChunkSender
-
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate List<LevelChunk> collectChunksToSend(ChunkMap p_296053_, ChunkPos p_295659_) voiddropChunk(ServerPlayer p_294214_, ChunkPos p_294933_) booleanisPending(long p_296128_) voidmarkChunkPendingToSend(LevelChunk p_296454_) voidonChunkBatchReceivedByClient(float p_294462_) private static voidsendChunk(ServerGamePacketListenerImpl p_295237_, ServerLevel p_294963_, LevelChunk p_295144_) voidsendNextChunks(ServerPlayer p_296009_)
-
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_294754_)
-
-
Method Details
-
markChunkPendingToSend
-
dropChunk
-
sendNextChunks
-
sendChunk
private static void sendChunk(ServerGamePacketListenerImpl p_295237_, ServerLevel p_294963_, LevelChunk p_295144_) -
collectChunksToSend
-
onChunkBatchReceivedByClient
public void onChunkBatchReceivedByClient(float p_294462_) -
isPending
public boolean isPending(long p_296128_)
-