Open main menu
Home
Random
Log in
Settings
About Forge Community Wiki
Disclaimers
Forge Community Wiki
Search
Changes
← Older edit
SimpleChannel
(view source)
Revision as of 21:21, 28 August 2023
10 bytes added
,
21:21, 28 August 2023
m
→Registering Packets
Line 63:
Line 63:
.encoder(MessagePacket::encoder)
.encoder(MessagePacket::encoder)
.decoder(MessagePacket::decoder)
.decoder(MessagePacket::decoder)
−
.consumerMainThread(MessagePacket::messageConsumer);
+
.consumerMainThread(MessagePacket::messageConsumer
)
+
.add(
);
// You can use consumerMainThread or consumerNetworkThread.
// You can use consumerMainThread or consumerNetworkThread.
// If you use consumerMainThread, the builder will take care of the enqueueWork and setPacketHandled.
// If you use consumerMainThread, the builder will take care of the enqueueWork and setPacketHandled.
Ferri Arnus
25
edits