Interface PayloadCodecs.Factory

Enclosing class:
PayloadCodecs
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 PayloadCodecs.Factory
Builds the codec of a generic type from its type arguments.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, ?>
    create(Type[] typeArguments, PayloadCodecs.Lookup lookup)
     
  • Method Details

    • create

      net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, ?> create(Type[] typeArguments, PayloadCodecs.Lookup lookup)