Remap
Remap Actions
A remap action is the action that will remap the code. By default, it is MOJANG_TO_SPIGOT,  meaning it will remap all Mojang mappings to Spigot. Under is a list of all possible actions:
MOJANG_TO_SPIGOTMOJANG_TO_OBFOBF_TO_MOJANGOBF_TO_SPIGOTSPIGOT_TO_MOJANGSPIGOT_TO_OBF
You can modify the action using the action method inside the remap task configuration block:
remap {
    minecraftVersion("1.21.4")
    action(RemapTask.Action.MOJANG_TO_OBF)
}