Interface ScreenNetworking.MessageReceiver

Enclosing interface:
ScreenNetworking
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 ScreenNetworking.MessageReceiver
A handler for received screen messages.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMessage(net.minecraft.network.PacketByteBuf buf)
    Handles a received screen message.
  • Method Details

    • onMessage

      void onMessage(net.minecraft.network.PacketByteBuf buf)
      Handles a received screen message.

      This method should only read from the buffer, not write to it.

      Parameters:
      buf - the message packet buffer