Interface SerializationEvent.RegisterStandardCodecEvent

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.RegisterStandardCodecEvent
A functional interface for listeners of SerializationEvent.REGISTER_STANDARD_CODEC_EVENT
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Registers standard codecs.
  • Method Details

    • register

      void register(BiConsumer<Class<?>,CodecHolder<?>> registry)
      Registers standard codecs.
      Parameters:
      registry - A bi-consumer that accepts and registers a standard codec. The first parameter is the class, the second is a codec holder for that class.