类 PlayerChunkSender
java.lang.Object
net.minecraft.server.network.PlayerChunkSender
-
字段概要
字段修饰符和类型字段说明private 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private List
<LevelChunk> collectChunksToSend
(ChunkMap p_296053_, ChunkPos p_295659_) void
dropChunk
(ServerPlayer p_294214_, ChunkPos p_294933_) boolean
isPending
(long p_296128_) void
markChunkPendingToSend
(LevelChunk p_296454_) void
onChunkBatchReceivedByClient
(float p_294462_) private static void
sendChunk
(ServerGamePacketListenerImpl p_295237_, ServerLevel p_294963_, LevelChunk p_295144_) void
sendNextChunks
(ServerPlayer p_296009_)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MIN_CHUNKS_PER_TICK
public static final float MIN_CHUNKS_PER_TICK- 另请参阅:
-
MAX_CHUNKS_PER_TICK
public static final float MAX_CHUNKS_PER_TICK- 另请参阅:
-
START_CHUNKS_PER_TICK
private static final float START_CHUNKS_PER_TICK- 另请参阅:
-
MAX_UNACKNOWLEDGED_BATCHES
private static final int MAX_UNACKNOWLEDGED_BATCHES- 另请参阅:
-
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
-
-
构造器详细资料
-
PlayerChunkSender
public PlayerChunkSender(boolean p_294754_)
-
-
方法详细资料
-
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_)
-