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 aozintermediary net/minecraft/class_3906named 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 voidclose()static <Msg> MessageListener<Msg>create(String name, Consumer<Msg> action)StringgetName()default <Source> CompletableFuture<Source>method_27918(Function<? super MessageListener<com.mojang.datafixers.util.Either<Source,Exception>>,? extends Msg> function)voidsend(Msg message)
-
Method Details
-
getName
String getName()- Mappings:
Namespace Name Mixin selector official bjLaoz;bj()Ljava/lang/String;intermediary method_16898Lnet/minecraft/class_3906;method_16898()Ljava/lang/String;named getNameLnet/minecraft/util/thread/MessageListener;getName()Ljava/lang/String;
-
send
- Mappings:
Namespace Name Mixin selector official aLaoz;a(Ljava/lang/Object;)Vintermediary method_16901Lnet/minecraft/class_3906;method_16901(Ljava/lang/Object;)Vnamed sendLnet/minecraft/util/thread/MessageListener;send(Ljava/lang/Object;)V
-
close
default void close()- Specified by:
closein interfaceAutoCloseable- Mappings:
Namespace Name Mixin selector official closeLaoz;close()Vintermediary closeLnet/minecraft/class_3906;close()Vnamed closeLnet/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 bLaoz;b(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;intermediary method_17345Lnet/minecraft/class_3906;method_17345(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;named askLnet/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 cLaoz;c(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;intermediary method_27918Lnet/minecraft/class_3906;method_27918(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;named method_27918Lnet/minecraft/util/thread/MessageListener;method_27918(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
-
create
- Mappings:
Namespace Name Mixin selector official aLaoz;a(Ljava/lang/String;Ljava/util/function/Consumer;)Laoz;intermediary method_17344Lnet/minecraft/class_3906;method_17344(Ljava/lang/String;Ljava/util/function/Consumer;)Lnet/minecraft/class_3906;named createLnet/minecraft/util/thread/MessageListener;create(Ljava/lang/String;Ljava/util/function/Consumer;)Lnet/minecraft/util/thread/MessageListener;
-