Interface ValueFirstEncoder<O,T>

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 ValueFirstEncoder<O,T>
A functional interface that, given a value and a buffer, encodes it.

An instance method taking PacketByteBuf as an argument can be used as a value-first encoder.

See Also:
Mappings:
Namespace Name
named net/minecraft/network/codec/ValueFirstEncoder
intermediary net/minecraft/class_9143
official yv
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(T value, O buf)
     
  • Method Details

    • encode

      void encode(T value, O buf)
      Mappings:
      Namespace Name Mixin selector
      named encode Lnet/minecraft/network/codec/ValueFirstEncoder;encode(Ljava/lang/Object;Ljava/lang/Object;)V
      intermediary encode Lnet/minecraft/class_9143;encode(Ljava/lang/Object;Ljava/lang/Object;)V
      official encode Lyv;encode(Ljava/lang/Object;Ljava/lang/Object;)V