Package net.minecraft.util.concurrent
Interface ITaskExecutor<Msg>
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DedicatedServer
,DelegatedTaskExecutor
,IntegratedServer
,Minecraft
,MinecraftServer
,RecursiveEventLoop
,ServerChunkProvider.ChunkExecutor
,SoundEngineExecutor
,ThreadTaskExecutor
-
Method Summary
Modifier and TypeMethodDescriptiondefault <Source> CompletableFuture<Source>
ask
(Function<? super ITaskExecutor<Source>, ? extends Msg> p_213141_1_) default <Source> CompletableFuture<Source>
askEither
(Function<? super ITaskExecutor<com.mojang.datafixers.util.Either<Source, Exception>>, ? extends Msg> p_233528_1_) default void
close()
name()
static <Msg> ITaskExecutor<Msg>
void
-
Method Details
-
name
String name() -
tell
-
close
default void close()- Specified by:
close
in interfaceAutoCloseable
-
ask
default <Source> CompletableFuture<Source> ask(Function<? super ITaskExecutor<Source>, ? extends Msg> p_213141_1_) -
askEither
default <Source> CompletableFuture<Source> askEither(Function<? super ITaskExecutor<com.mojang.datafixers.util.Either<Source, Exception>>, ? extends Msg> p_233528_1_) -
of
-