30 lines
791 B
Java
30 lines
791 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.server.jsonrpc.internalapi;
|
|
|
|
import java.util.concurrent.CompletableFuture;
|
|
import java.util.function.Supplier;
|
|
import net.minecraft.server.dedicated.DedicatedServer;
|
|
import net.minecraft.server.jsonrpc.internalapi.MinecraftExecutorService;
|
|
|
|
public class MinecraftExecutorServiceImpl
|
|
implements MinecraftExecutorService {
|
|
private final DedicatedServer server;
|
|
|
|
public MinecraftExecutorServiceImpl(DedicatedServer server) {
|
|
this.server = server;
|
|
}
|
|
|
|
@Override
|
|
public <V> CompletableFuture<V> submit(Supplier<V> supplier) {
|
|
return this.server.submit(supplier);
|
|
}
|
|
|
|
@Override
|
|
public CompletableFuture<Void> submit(Runnable runnable) {
|
|
return this.server.submit(runnable);
|
|
}
|
|
}
|
|
|