Interface RecipeExporter

All Superinterfaces:
Extension

public interface RecipeExporter extends Extension
This interface allows mods to control how their custom recipes are exported to the website.
  • Field Details

  • Method Details

    • referenceAdditionalResources

      default void referenceAdditionalResources(ResourceExporter exporter)
      If this recipe exporters requires additional resources to be added to the export, this is the callback to do it in.
    • convertToJson

      @Nullable @Nullable Map<String,Object> convertToJson(net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>> id, net.minecraft.world.item.crafting.Recipe<?> recipe, ResourceExporter exporter)
      Try to convert a recipe to a JSON map (this map will be converted to JSON using GSON).
      Returns:
      null if this exporter was unable to handle the given type of recipe.