Interface PacketHandler<T>

Type Parameters:
T - payload type
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 PacketHandler<T>
Handles one received packet on the game thread.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(T packet, PacketContext context)
     
  • Method Details