mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Re-add old factory create method and deprecate for removal
This commit is contained in:
parent
a46037b1f1
commit
763f7681a7
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user