public class InterModComms
extends java.lang.Object
修飾子とタイプ | クラスと説明 |
---|---|
static class |
InterModComms.IMCMessage |
コンストラクタと説明 |
---|
InterModComms() |
修飾子とタイプ | メソッドと説明 |
---|---|
static java.util.stream.Stream<InterModComms.IMCMessage> |
getMessages(java.lang.String modId)
Retrieve all message for your modid.
|
static java.util.stream.Stream<InterModComms.IMCMessage> |
getMessages(java.lang.String modId,
java.util.function.Predicate<java.lang.String> methodMatcher)
Retrieve pending messages for your modid.
|
static boolean |
sendTo(java.lang.String senderModId,
java.lang.String modId,
java.lang.String method,
java.util.function.Supplier<?> thing)
Send IMC to remote.
|
static boolean |
sendTo(java.lang.String modId,
java.lang.String method,
java.util.function.Supplier<?> thing)
Send IMC to remote.
|
public static boolean sendTo(java.lang.String modId, java.lang.String method, java.util.function.Supplier<?> thing)
modId
- the mod id to send tomethod
- the method name to sendthing
- the thing associated with the method namepublic static boolean sendTo(java.lang.String senderModId, java.lang.String modId, java.lang.String method, java.util.function.Supplier<?> thing)
senderModId
- the mod id you are sending frommodId
- the mod id to send tomethod
- the method name to sendthing
- the thing associated with the method namepublic static java.util.stream.Stream<InterModComms.IMCMessage> getMessages(java.lang.String modId, java.util.function.Predicate<java.lang.String> methodMatcher)
modId
- the modid you are querying formethodMatcher
- a predicate for the method you are interested inpublic static java.util.stream.Stream<InterModComms.IMCMessage> getMessages(java.lang.String modId)
modId
- the modid you are querying for