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 Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.resources.ResourceLocation
    resolveId(String idText, String defaultNamespace)
     
    static net.minecraft.resources.ResourceLocation
    resolveLink(String idText, net.minecraft.resources.ResourceLocation anchor)
    Supports relative resource locations such as: ./somepath, which would resolve relative to a given anchor location.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • resolveId

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

      public static net.minecraft.resources.ResourceLocation resolveLink(String idText, net.minecraft.resources.ResourceLocation anchor) throws net.minecraft.ResourceLocationException
      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.ResourceLocationException