diff --git a/Core/src/main/java/com/plotsquared/core/inject/factory/ChunkCoordinatorFactory.java b/Core/src/main/java/com/plotsquared/core/inject/factory/ChunkCoordinatorFactory.java index 5be3a5421..87392ef54 100644 --- a/Core/src/main/java/com/plotsquared/core/inject/factory/ChunkCoordinatorFactory.java +++ b/Core/src/main/java/com/plotsquared/core/inject/factory/ChunkCoordinatorFactory.java @@ -37,6 +37,36 @@ import java.util.function.Consumer; 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 chunkConsumer, + final @NonNull World world, + final @NonNull Collection requestedChunks, + final @NonNull Runnable whenDone, + final @NonNull Consumer throwableConsumer, + final boolean unloadAfter, + final @NonNull Collection progressSubscribers + ) { + return create( + maxIterationTime, + initialBatchSize, + chunkConsumer, + world, + requestedChunks, + whenDone, + throwableConsumer, + unloadAfter, + progressSubscribers, + false + ); + } + @NonNull ChunkCoordinator create( final long maxIterationTime, final int initialBatchSize,