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 Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @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).
    default void
    If this recipe exporters requires additional resources to be added to the export, this is the callback to do it in.

    Methods inherited from interface guideme.extensions.Extension

    onExtensionsBuilt
  • 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.