Package net.minecraft.util.concurrent
Interface ITaskExecutor<Msg>
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
DedicatedServer
,DelegatedTaskExecutor
,IntegratedServer
,Minecraft
,MinecraftServer
,RecursiveEventLoop
,ServerChunkProvider.ChunkExecutor
,SoundEngineExecutor
,ThreadTaskExecutor
public interface ITaskExecutor<Msg> extends java.lang.AutoCloseable
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <Source> java.util.concurrent.CompletableFuture<Source>
ask(java.util.function.Function<? super ITaskExecutor<Source>,? extends Msg> p_213141_1_)
default <Source> java.util.concurrent.CompletableFuture<Source>
askEither(java.util.function.Function<? super ITaskExecutor<com.mojang.datafixers.util.Either<Source,java.lang.Exception>>,? extends Msg> p_233528_1_)
default void
close()
java.lang.String
name()
static <Msg> ITaskExecutor<Msg>
of(java.lang.String p_213140_0_, java.util.function.Consumer<Msg> p_213140_1_)
void
tell(Msg p_212871_1_)
-
-
-
Method Detail
-
name
java.lang.String name()
-
tell
void tell(Msg p_212871_1_)
-
close
default void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
ask
default <Source> java.util.concurrent.CompletableFuture<Source> ask(java.util.function.Function<? super ITaskExecutor<Source>,? extends Msg> p_213141_1_)
-
askEither
default <Source> java.util.concurrent.CompletableFuture<Source> askEither(java.util.function.Function<? super ITaskExecutor<com.mojang.datafixers.util.Either<Source,java.lang.Exception>>,? extends Msg> p_233528_1_)
-
of
static <Msg> ITaskExecutor<Msg> of(java.lang.String p_213140_0_, java.util.function.Consumer<Msg> p_213140_1_)
-
-