Interface PacketListenerConsumer<T extends ClientPacket>

Type Parameters:
T - the packet 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 PacketListenerConsumer<T extends ClientPacket>
Small convenient interface to use method references with PacketListenerManager.setListener(Class, PacketListenerConsumer).
  • Method Summary

    Modifier and Type
    accept(T packet, Player player)
  • Method Details

    • accept

      void accept(T packet, Player player)