Class ExpandResourceLocation

java.lang.Object
com.blamejared.crafttweaker.natives.resource.ExpandResourceLocation

@ZenRegister(loaders={"crafttweaker","tags"}) public class ExpandResourceLocation extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static IData
    asData(net.minecraft.resources.ResourceLocation internal)
     
    static int
    compareTo(net.minecraft.resources.ResourceLocation internal, net.minecraft.resources.ResourceLocation other)
     
    static boolean
    equals(net.minecraft.resources.ResourceLocation internal, Object other)
     
    static net.minecraft.resources.ResourceLocation
    Creates a new ResourceLocation from the given namespace and path
    static String
    getCommandString(net.minecraft.resources.ResourceLocation internal)
     
    static String
    getNamespace(net.minecraft.resources.ResourceLocation internal)
     
    static String
    getPath(net.minecraft.resources.ResourceLocation internal)
     
    static int
    hashCode(net.minecraft.resources.ResourceLocation internal)
     
    static net.minecraft.resources.ResourceLocation
    Creates a new ResourceLocation from the given string.
    static String
    toString(net.minecraft.resources.ResourceLocation internal)
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • ExpandResourceLocation

      public ExpandResourceLocation()
  • Method Details

    • parse

      public static net.minecraft.resources.ResourceLocation parse(String id)
      Creates a new ResourceLocation from the given string.
      Parameters:
      id - The ResourceLocation to parse.
      Returns:
      A new ResourceLocation from the given id
      DocParam:
      id "crafttweaker:some-path/to.1"
    • fromNamespaceAndPath

      public static net.minecraft.resources.ResourceLocation fromNamespaceAndPath(String namespace, String path)
      Creates a new ResourceLocation from the given namespace and path
      Parameters:
      namespace - The namespace of the resource, usually a modid
      path - The path of the resource, May only contain lower-cased alphanumeric values, as well as / and _
      Returns:
      A new ResourceLocation from the given values.
      DocParam:
      namespace "crafttweaker", path "some-path/to.1"
    • compareTo

      public static int compareTo(net.minecraft.resources.ResourceLocation internal, net.minecraft.resources.ResourceLocation other)
    • hashCode

      public static int hashCode(net.minecraft.resources.ResourceLocation internal)
    • getPath

      public static String getPath(net.minecraft.resources.ResourceLocation internal)
    • toString

      public static String toString(net.minecraft.resources.ResourceLocation internal)
    • asData

      public static IData asData(net.minecraft.resources.ResourceLocation internal)
    • equals

      public static boolean equals(net.minecraft.resources.ResourceLocation internal, Object other)
    • getNamespace

      public static String getNamespace(net.minecraft.resources.ResourceLocation internal)
    • getCommandString

      public static String getCommandString(net.minecraft.resources.ResourceLocation internal)