Package com.minecolonies.core.network
Class NetworkChannel.NetworkingMessageEntry<MSG extends IMessage>
java.lang.Object
com.minecolonies.core.network.NetworkChannel.NetworkingMessageEntry<MSG>
- Type Parameters:
MSG- The message type.
- Enclosing class:
- NetworkChannel
public static final class NetworkChannel.NetworkingMessageEntry<MSG extends IMessage>
extends Object
A class that handles the data wrapping for our inner index codec.
-
Method Summary
Modifier and TypeMethodDescriptionGives access to the callback that creates a new message instance.voidonSplitting(int packetIndex) Invoked to indicate that a packet is being split.
-
Method Details
-
getCreator
Gives access to the callback that creates a new message instance.- Returns:
- The callback.
-
onSplitting
public void onSplitting(int packetIndex) Invoked to indicate that a packet is being split.- Parameters:
packetIndex- The index of the split packet that is being send.
-