Interface PacketPlayListenerConsumer<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 PacketPlayListenerConsumer<T extends ClientPacket>
Small convenient interface to use method references with PacketListenerManager.setPlayListener(Class, PacketPlayListenerConsumer).
  • Method Summary

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

    • accept

      void accept(T packet, Player player)