Class GuiJsonDocumentBuilder

java.lang.Object
technology.sola.engine.graphics.gui.json.GuiJsonDocumentBuilder

@NullMarked public class GuiJsonDocumentBuilder extends Object
GuiJsonDocumentBuilder handles building GuiJsonDocument instances from a JsonObject.
  • Constructor Details

    • GuiJsonDocumentBuilder

      public GuiJsonDocumentBuilder(GuiTheme guiTheme, List<GuiElementJsonBlueprint<?,?,?>> guiElementJsonBlueprints)
      Creates an instance of GuiJsonDocumentBuilder with desired GuiElementJsonBlueprints.
      Parameters:
      guiTheme - the GuiTheme to apply to elements parsed from JSON
      guiElementJsonBlueprints - the list of definitions to build from
  • Method Details

    • build

      public GuiJsonDocument build(technology.sola.json.JsonObject elementJson)
      Builds a GuiJsonDocument from JsonObject.
      Parameters:
      elementJson - the JSON to build a GuiJsonDocument from
      Returns:
      the GuiJsonDocument