minor reviewdog changes

This commit is contained in:
Matt Worzala 2021-01-27 13:15:27 -05:00
parent ca8eac5356
commit 2cb343f493

View File

@ -25,13 +25,17 @@ import java.util.concurrent.ExecutorService;
* operation will return a new batch with the blocks set to whatever they were before the batch was * operation will return a new batch with the blocks set to whatever they were before the batch was
* applied. * applied.
* *
* @param <C> The callback function type.
*
* @see ChunkBatch * @see ChunkBatch
* @see AbsoluteBlockBatch * @see AbsoluteBlockBatch
* @see RelativeBlockBatch * @see RelativeBlockBatch
*/ */
public interface Batch<Callback> extends BlockModifier { public interface Batch<C> extends BlockModifier {
ExecutorService BLOCK_BATCH_POOL = new MinestomThread(MinecraftServer.THREAD_COUNT_BLOCK_BATCH, MinecraftServer.THREAD_NAME_BLOCK_BATCH); ExecutorService BLOCK_BATCH_POOL = new MinestomThread(
MinecraftServer.THREAD_COUNT_BLOCK_BATCH,
MinecraftServer.THREAD_NAME_BLOCK_BATCH);
@Override @Override
default void setBlockStateId(int x, int y, int z, short blockStateId, @Nullable Data data) { default void setBlockStateId(int x, int y, int z, short blockStateId, @Nullable Data data) {
@ -86,5 +90,5 @@ public interface Batch<Callback> extends BlockModifier {
* @return The inverse of this batch, if inverse is enabled in the {@link BatchOption} * @return The inverse of this batch, if inverse is enabled in the {@link BatchOption}
*/ */
@Nullable @Nullable
Batch<Callback> apply(@NotNull Instance instance, @Nullable Callback callback); Batch<C> apply(@NotNull Instance instance, @Nullable C callback);
} }