C - The type of the config instancepublic class TypeSerializerList<C>
extends java.lang.Object
Object is a passthrough serializer that just returns the value without any changes.| Constructor and Description |
|---|
TypeSerializerList() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
add(java.lang.Class<T> type,
java.util.function.Function<C,ConfigTypeSerializer<C,T>> serializerSupplier) |
<T> ConfigTypeSerializer<C,T> |
get(C config,
java.lang.Class<T> type) |
public <T> void add(java.lang.Class<T> type,
java.util.function.Function<C,ConfigTypeSerializer<C,T>> serializerSupplier)
public <T> ConfigTypeSerializer<C,T> get(C config, java.lang.Class<T> type)