Interface PacketDecoder<I,T>

All Known Subinterfaces:
PacketCodec<B,V>
All Known Implementing Classes:
PacketCodecDispatcher
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 PacketDecoder<I,T>
A functional interface that, given a buffer, decodes a value.

A constructor taking PacketByteBuf as an argument can be used as a decoder.

See Also:
Mappings:
Namespace Name
named net/minecraft/network/codec/PacketDecoder
intermediary net/minecraft/class_9141
official zo
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(I buf)
     
  • Method Details

    • decode

      T decode(I buf)
      Mappings:
      Namespace Name Mixin selector
      named decode Lnet/minecraft/network/codec/PacketDecoder;decode(Ljava/lang/Object;)Ljava/lang/Object;
      intermediary decode Lnet/minecraft/class_9141;decode(Ljava/lang/Object;)Ljava/lang/Object;
      official decode Lzo;decode(Ljava/lang/Object;)Ljava/lang/Object;