Package guideme.siteexport
Interface RecipeExporter
- All Superinterfaces:
Extension
This interface allows mods to control how their custom recipes are exported to the website.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionconvertToJson
(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
referenceAdditionalResources
(ResourceExporter exporter) 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
-
EXTENSION_POINT
-
-
Method Details
-
referenceAdditionalResources
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.
-