Interface PayloadReceiver<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>

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 PayloadReceiver<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
Handles a received payload. Called on the game's main thread; PacketContext.queue(java.lang.Runnable) defers work to the next tick if needed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    receive(T payload, PacketContext context)
     
  • Method Details