Interface ICustomPayloadEvent<T>

Type Parameters:
T - The type of the channel, either Identifier or String.

public interface ICustomPayloadEvent<T>
An event fired when custom payloads to or from older servers are blocked by multiconnect.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    The custom payload channel.
    net.minecraft.network.PacketByteBuf
    The payload itself.
    net.minecraft.client.network.ClientPlayNetworkHandler
    The ClientPlayNetworkHandler that is being sent to or from.
    int
    The protocol version that the server is on, to be compared with values in Protocols.
  • Method Details

    • getProtocol

      int getProtocol()
      The protocol version that the server is on, to be compared with values in Protocols.
    • getChannel

      T getChannel()
      The custom payload channel.
    • getData

      net.minecraft.network.PacketByteBuf getData()
      The payload itself.
    • getNetworkHandler

      net.minecraft.client.network.ClientPlayNetworkHandler getNetworkHandler()
      The ClientPlayNetworkHandler that is being sent to or from.