Package net.minecraft.util.thread
Interface MessageListener<Msg>
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
IntegratedServer
,MinecraftClient
,MinecraftDedicatedServer
,MinecraftServer
,ReentrantThreadExecutor
,ServerChunkManager.MainThreadExecutor
,SoundExecutor
,TaskExecutor
,ThreadExecutor
public interface MessageListener<Msg> extends AutoCloseable
- Mappings:
Namespace Name official aoz
intermediary net/minecraft/class_3906
named net/minecraft/util/thread/MessageListener
-
Method Summary
Modifier and Type Method Description default <Source> CompletableFuture<Source>
ask(Function<? super MessageListener<Source>,? extends Msg> messageProvider)
default void
close()
static <Msg> MessageListener<Msg>
create(String name, Consumer<Msg> action)
String
getName()
default <Source> CompletableFuture<Source>
method_27918(Function<? super MessageListener<com.mojang.datafixers.util.Either<Source,Exception>>,? extends Msg> function)
void
send(Msg message)
-
Method Details
-
getName
String getName()- Mappings:
Namespace Name Mixin selector official bj
Laoz;bj()Ljava/lang/String;
intermediary method_16898
Lnet/minecraft/class_3906;method_16898()Ljava/lang/String;
named getName
Lnet/minecraft/util/thread/MessageListener;getName()Ljava/lang/String;
-
send
- Mappings:
Namespace Name Mixin selector official a
Laoz;a(Ljava/lang/Object;)V
intermediary method_16901
Lnet/minecraft/class_3906;method_16901(Ljava/lang/Object;)V
named send
Lnet/minecraft/util/thread/MessageListener;send(Ljava/lang/Object;)V
-
close
default void close()- Specified by:
close
in interfaceAutoCloseable
- Mappings:
Namespace Name Mixin selector official close
Laoz;close()V
intermediary close
Lnet/minecraft/class_3906;close()V
named close
Lnet/minecraft/util/thread/MessageListener;close()V
-
ask
default <Source> CompletableFuture<Source> ask(Function<? super MessageListener<Source>,? extends Msg> messageProvider)- Mappings:
Namespace Name Mixin selector official b
Laoz;b(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17345
Lnet/minecraft/class_3906;method_17345(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
named ask
Lnet/minecraft/util/thread/MessageListener;ask(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
-
method_27918
default <Source> CompletableFuture<Source> method_27918(Function<? super MessageListener<com.mojang.datafixers.util.Either<Source,Exception>>,? extends Msg> function)- Mappings:
Namespace Name Mixin selector official c
Laoz;c(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
intermediary method_27918
Lnet/minecraft/class_3906;method_27918(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
named method_27918
Lnet/minecraft/util/thread/MessageListener;method_27918(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
-
create
- Mappings:
Namespace Name Mixin selector official a
Laoz;a(Ljava/lang/String;Ljava/util/function/Consumer;)Laoz;
intermediary method_17344
Lnet/minecraft/class_3906;method_17344(Ljava/lang/String;Ljava/util/function/Consumer;)Lnet/minecraft/class_3906;
named create
Lnet/minecraft/util/thread/MessageListener;create(Ljava/lang/String;Ljava/util/function/Consumer;)Lnet/minecraft/util/thread/MessageListener;
-