Interface MessageDecoder<T extends Message>

Type Parameters:
T - the message type handled by this decoder
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 MessageDecoder<T extends Message>
Decodes a Message from a FriendlyByteBuf.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a network receiver from this decoder.
    decode(net.minecraft.network.FriendlyByteBuf buf)
    Decodes a T message from a byte buffer.
  • Method Details