Interface VeilPacketManager.PacketHandler<T extends PacketContext,P extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>

Type Parameters:
T - The context to use
P - The packet to handle
Enclosing interface:
VeilPacketManager
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 static interface VeilPacketManager.PacketHandler<T extends PacketContext,P extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
Handles packets from the client/server.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handlePacket(P payload, T ctx)
    Handles the specified packet.
  • Method Details

    • handlePacket

      void handlePacket(P payload, T ctx)
      Handles the specified packet.
      Parameters:
      payload - The packet payload
      ctx - The sided context