Class PageCompiler

java.lang.Object
guideme.compiler.PageCompiler

public final class PageCompiler extends Object
  • Constructor Details

  • Method Details

    • parse

      public static ParsedGuidePage parse(String sourcePack, net.minecraft.resources.ResourceLocation id, InputStream in) throws IOException
      Throws:
      IOException
    • parse

      public static ParsedGuidePage parse(String sourcePack, net.minecraft.resources.ResourceLocation id, String pageContent)
    • compile

      public static GuidePage compile(PageCollection pages, ExtensionCollection extensions, ParsedGuidePage parsedPage)
    • getExtensions

      public ExtensionCollection getExtensions()
    • getExtensions

      public <T extends Extension> List<T> getExtensions(ExtensionPoint<T> extensionPoint)
    • compileBlockContext

      public void compileBlockContext(guideme.libs.mdast.model.MdAstParent<?> markdownParent, LytBlockContainer layoutParent)
    • compileBlockContext

      public void compileBlockContext(List<? extends guideme.libs.mdast.model.MdAstAnyContent> children, LytBlockContainer layoutParent)
    • compileFlowContext

      public void compileFlowContext(guideme.libs.mdast.model.MdAstParent<?> markdownParent, LytFlowParent layoutParent)
    • compileFlowContext

      public void compileFlowContext(Collection<? extends guideme.libs.mdast.model.MdAstAnyContent> children, LytFlowParent layoutParent)
    • createErrorBlock

      public LytBlock createErrorBlock(String text, guideme.libs.unist.UnistNode child)
    • createErrorFlowContent

      public LytFlowContent createErrorFlowContent(String text, guideme.libs.unist.UnistNode child)
    • resolveId

      public net.minecraft.resources.ResourceLocation resolveId(String idText)
    • getPageId

      public net.minecraft.resources.ResourceLocation getPageId()
      Get the current page id.
    • getPageCollection

      public PageCollection getPageCollection()
    • loadAsset

      public byte @Nullable [] loadAsset(net.minecraft.resources.ResourceLocation imageId)
    • getIndex

      public <T extends PageIndex> T getIndex(Class<T> clazz)
    • getCompilerState

      public <T> T getCompilerState(PageCompiler.State<T> state)
    • setCompilerState

      public <T> void setCompilerState(PageCompiler.State<T> state, T value)
    • clearCompilerState

      public <T> void clearCompilerState(PageCompiler.State<T> state)