Class EventNetworkChannel
- java.lang.Object
-
- net.minecraftforge.fml.network.event.EventNetworkChannel
-
public class EventNetworkChannel extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private NetworkInstance
instance
-
Constructor Summary
Constructors Constructor Description EventNetworkChannel(NetworkInstance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends NetworkEvent>
voidaddListener(java.util.function.Consumer<T> eventListener)
boolean
isRemotePresent(NetworkManager manager)
void
registerObject(java.lang.Object object)
void
unregisterObject(java.lang.Object object)
-
-
-
Field Detail
-
instance
private final NetworkInstance instance
-
-
Constructor Detail
-
EventNetworkChannel
public EventNetworkChannel(NetworkInstance instance)
-
-
Method Detail
-
addListener
public <T extends NetworkEvent> void addListener(java.util.function.Consumer<T> eventListener)
-
registerObject
public void registerObject(java.lang.Object object)
-
unregisterObject
public void unregisterObject(java.lang.Object object)
-
isRemotePresent
public boolean isRemotePresent(NetworkManager manager)
-
-