Class IdUtils

java.lang.Object
guideme.compiler.IdUtils

public final class IdUtils extends Object
Helper to resolve shorthand and relative IDs found in markdown pages.
  • Method Details

    • resolveId

      public static net.minecraft.resources.Identifier resolveId(String idText, String defaultNamespace)
    • resolveLink

      public static net.minecraft.resources.Identifier resolveLink(String idText, net.minecraft.resources.Identifier anchor) throws net.minecraft.IdentifierException
      Supports relative resource locations such as: ./somepath, which would resolve relative to a given anchor location. Relative locations must not be namespaced since we would otherwise run into the problem if namespaced locations potentially having a different namespace than the anchor.
      Throws:
      net.minecraft.IdentifierException