Interface SerializationEvent.RegisterCodecResolverEvent

Enclosing class:
SerializationEvent
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 SerializationEvent.RegisterCodecResolverEvent
A functional interface for listeners of SerializationEvent.REGISTER_CODEC_RESOLVER_EVENT
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Registers codec resolvers.
  • Method Details

    • register

      void register(Consumer<CodecResolver> registry)
      Registers codec resolvers.
      Parameters:
      registry - A consumer that accepts and registers a codec resolver.