package net.minecraft.server.dialog.body;

import com.mojang.serialization.MapCodec;
import net.minecraft.core.Registry;
import net.minecraft.resources.ResourceLocation;

public class DialogBodyTypes {
    public static MapCodec<? extends DialogBody> bootstrap(Registry<MapCodec<? extends DialogBody>> registry) {
        Registry.register(registry, ResourceLocation.withDefaultNamespace("item"), ItemBody.MAP_CODEC);
        return Registry.register(registry, ResourceLocation.withDefaultNamespace("plain_message"), PlainMessage.MAP_CODEC);
    }
}
