Interface RecipeLoader.RecipeHandler

Enclosing class:
RecipeLoader
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface RecipeLoader.RecipeHandler
Functional interface for handling the conversion of raw YAML data into a recipe object.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Processes raw recipe data and registers it to the appropriate registry.
  • Method Details

    • handle

      void handle(Map<Object,Object> data) throws Codec.CodecException
      Processes raw recipe data and registers it to the appropriate registry.
      Parameters:
      data - The raw key-value mapping from the YAML file.
      Throws:
      Codec.CodecException - If the data does not match the expected recipe format.