Class HybridStructureLoader

java.lang.Object
com.gtnewhorizons.horizonqa.structure.HybridStructureLoader

public final class HybridStructureLoader extends Object
  • Method Details

    • load

      public static HybridStructureTemplate load(String templateName) throws IOException
      Loads a packaged structure template using the strict test-execution policy.

      Numeric ItemStack identities in legacy structure data are rejected because their meaning depends on the active registry assignment.

      Parameters:
      templateName - namespaced template name, such as examplemod:machines/ebf
      Returns:
      the parsed template
      Throws:
      IOException - if the template is missing, malformed, unsupported, or unsafe to load
    • loadForEditing

      public static HybridStructureTemplate loadForEditing(String templateName) throws IOException
      Loads a template for interactive editing, honoring the one-time legacy-ID migration opt-in. Test runners must use load(String) so test execution always remains strict.
      Parameters:
      templateName - namespaced template name, such as examplemod:machines/ebf
      Returns:
      the parsed template
      Throws:
      IOException - if the template is missing, malformed, unsupported, or unsafe to load