Uses of Class
net.minecraft.util.JsonSerializing.SerializerBuilder
-
Uses of JsonSerializing.SerializerBuilder in net.minecraft.util
Modifier and TypeMethodDescriptionstatic <E,
T extends JsonSerializableType<E>>
JsonSerializing.SerializerBuilder<E,T> JsonSerializing.createSerializerBuilder
(Registry<T> registry, String rootFieldName, String idFieldName, Function<E, T> typeGetter) JsonSerializing.SerializerBuilder.defaultType
(T defaultType) Sets the default type that is used when there's no ID field.JsonSerializing.SerializerBuilder.elementSerializer
(T type, JsonSerializing.ElementSerializer<? extends E> serializer) Sets the element serializer and its target type.