Package guideme.compiler
Class IdUtils
java.lang.Object
guideme.compiler.IdUtils
Helper to resolve shorthand and relative IDs found in markdown pages.
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.resources.ResourceLocation
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.
-
Method Details
-
resolveId
-
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
-