public class EventNetworkChannel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private NetworkInstance |
instance |
Constructor and Description |
---|
EventNetworkChannel(NetworkInstance instance) |
Modifier and Type | Method and Description |
---|---|
<T extends NetworkEvent> |
addListener(java.util.function.Consumer<T> eventListener) |
void |
registerObject(java.lang.Object object) |
void |
unregisterObject(java.lang.Object object) |
private final NetworkInstance instance
public EventNetworkChannel(NetworkInstance instance)
public <T extends NetworkEvent> void addListener(java.util.function.Consumer<T> eventListener)
public void registerObject(java.lang.Object object)
public void unregisterObject(java.lang.Object object)