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.
A functional interface for listeners of
SerializationEvent.REGISTER_STANDARD_CODEC_EVENT-
Method Summary
Modifier and TypeMethodDescriptionvoidregister(BiConsumer<Class<?>, CodecHolder<?>> registry) Registers standard codecs.
-
Method Details
-
register
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.
-