Interface PacketChannelCallback<L extends net.minecraft.network.listener.PacketListener>

Type Parameters:
L - the network handler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface PacketChannelCallback<L extends net.minecraft.network.listener.PacketListener>
A callback that involves a network handler and a list of channels.
See Also:
ServerNetworking.CHANNEL_REGISTERED, ServerNetworking.CHANNEL_UNREGISTERED, ClientNetworking.CHANNEL_REGISTERED, ClientNetworking.CHANNEL_UNREGISTERED
  • Method Summary

    Modifier and Type Method Description
    void handle​(L handler, List<net.minecraft.util.Identifier> channels)
    Receive the network handler and the channels.
  • Method Details

    • handle

      void handle​(L handler, List<net.minecraft.util.Identifier> channels)
      Receive the network handler and the channels.
      Parameters:
      handler - the network handler
      channels - the channels