Package net.minecraftforge.network.event
Class EventNetworkChannel
java.lang.Object
net.minecraftforge.network.event.EventNetworkChannel
An event-bus like object on which
NetworkEvent
s are posted.
These events are fired from the network thread, and so should not interact with most game state by default.
NetworkEvent.Context.enqueueWork(Runnable)
can be used to handle the message on the main server or client
thread.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends NetworkEvent>
voidaddListener
(Consumer<T> eventListener) boolean
isRemotePresent
(Connection manager) void
registerObject
(Object object) void
unregisterObject
(Object object)
-
Field Details
-
instance
-
-
Constructor Details
-
EventNetworkChannel
-
-
Method Details
-
addListener
-
registerObject
-
unregisterObject
-
isRemotePresent
-