public class InterModComms
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InterModComms.IMCMessage |
private static class |
InterModComms.QueueFilteringSpliterator |
Modifier and Type | Field and Description |
---|---|
private static java.util.concurrent.ConcurrentMap<java.lang.String,java.util.concurrent.ConcurrentLinkedQueue<InterModComms.IMCMessage>> |
containerQueues |
Constructor and Description |
---|
InterModComms() |
Modifier and Type | Method and Description |
---|---|
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.
|
private static java.util.concurrent.ConcurrentMap<java.lang.String,java.util.concurrent.ConcurrentLinkedQueue<InterModComms.IMCMessage>> containerQueues
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