Class NetworkChannel.NetworkingMessageEntry<MSG extends IMessage>

java.lang.Object
com.ldtteam.structurize.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 Details

    • getCreator

      public Function<net.minecraft.network.FriendlyByteBuf,MSG> 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.