Package net.minecraftforge.network
Class EventNetworkChannel
An event-bus like object on which 
CustomPayloadEvents are posted.
 These events are fired from the network thread, and so should not interact with most game state by default.
 CustomPayloadEvent.Context.enqueueWork(Runnable) can be used to handle the message on the main server or client
 thread.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.network.ChannelChannel.VersionTest
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T extends CustomPayloadEvent>
 EventNetworkChanneladdListener(Consumer<T> eventListener) voidencode(FriendlyByteBuf out, FriendlyByteBuf message) registerObject(Object object) voidunregisterObject(Object object) Methods inherited from class net.minecraftforge.network.ChannelgetName, getName, getProtocolVersion, isRemotePresent, reply, send, send, toVanillaPacket, validate
- 
Constructor Details- 
EventNetworkChannelEventNetworkChannel(NetworkInstance instance) 
 
- 
- 
Method Details- 
addListener
- 
registerObject
- 
unregisterObject
- 
encode- Specified by:
- encodein class- Channel<FriendlyByteBuf>
 
 
-