Class ExpandResourceLocation
java.lang.Object
com.blamejared.crafttweaker.natives.resource.ExpandResourceLocation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IDataasData(net.minecraft.resources.ResourceLocation internal) static intcompareTo(net.minecraft.resources.ResourceLocation internal, net.minecraft.resources.ResourceLocation other) static booleanstatic net.minecraft.resources.ResourceLocationfromNamespaceAndPath(String namespace, String path) Creates a new ResourceLocation from the given namespace and pathstatic StringgetCommandString(net.minecraft.resources.ResourceLocation internal) static StringgetNamespace(net.minecraft.resources.ResourceLocation internal) static StringgetPath(net.minecraft.resources.ResourceLocation internal) static inthashCode(net.minecraft.resources.ResourceLocation internal) static net.minecraft.resources.ResourceLocationCreates a new ResourceLocation from the given string.static StringtoString(net.minecraft.resources.ResourceLocation internal)
-
Field Details
-
ZC_CLASS_NAME
- See Also:
-
-
Constructor Details
-
ExpandResourceLocation
public ExpandResourceLocation()
-
-
Method Details
-
parse
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 modidpath- 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
-
toString
-
asData
-
equals
-
getNamespace
-
getCommandString
-