Re-add old factory create method and deprecate for removal

This commit is contained in:
dordsor21 2022-06-07 16:41:36 +01:00
parent a46037b1f1
commit 763f7681a7
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -37,6 +37,36 @@ import java.util.function.Consumer;
public interface ChunkCoordinatorFactory { public interface ChunkCoordinatorFactory {
/**
* @deprecated Use {@link ChunkCoordinatorFactory#create(long, int, Consumer, World, Collection, Runnable, Consumer, boolean, Collection, boolean)}
*/
@Deprecated(forRemoval = true, since = "TODO")
@NonNull
default ChunkCoordinator create(
final long maxIterationTime,
final int initialBatchSize,
final @NonNull Consumer<BlockVector2> chunkConsumer,
final @NonNull World world,
final @NonNull Collection<BlockVector2> requestedChunks,
final @NonNull Runnable whenDone,
final @NonNull Consumer<Throwable> throwableConsumer,
final boolean unloadAfter,
final @NonNull Collection<ProgressSubscriber> progressSubscribers
) {
return create(
maxIterationTime,
initialBatchSize,
chunkConsumer,
world,
requestedChunks,
whenDone,
throwableConsumer,
unloadAfter,
progressSubscribers,
false
);
}
@NonNull ChunkCoordinator create( @NonNull ChunkCoordinator create(
final long maxIterationTime, final long maxIterationTime,
final int initialBatchSize, final int initialBatchSize,