ResourceLocation

Link to resourcelocation

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.resource.ResourceLocation;

Implemented Interfaces

Link to implemented-interfaces

ResourceLocation implements the following interfaces. That means all methods defined in these interfaces are also available in ResourceLocation

ZenScript
Copy
new ResourceLocation(namespace as string, path as string) as ResourceLocation
ParameterTypeDescription
Parameter
namespace
Type
string
Description
Usually a ModId
Parameter
path
Type
string
Description
May only contain lower-cased alphanumeric values, as well as / and _
Result typeIs Implicit
Result type
IData
Is Implicit
true
Result type
string
Is Implicit
true

Name: asData

Return Type: IData

ZenScript
Copy
// ResourceLocation.asData() as IData

myResourceLocation.asData();

Link to g--1

Name: compareTo

Return Type: int

ZenScript
Copy
ResourceLocation.compareTo(other as ResourceLocation) as int
ParameterTypeDescription
Parameter
other
Type
ResourceLocation
Description
No Description Provided

Name: equals

Return Type: boolean

ZenScript
Copy
ResourceLocation.equals(other as Object) as boolean
ParameterTypeDescription
Parameter
other
Type
Object
Description
No Description Provided

Link to g--3

Name: getNamespace

Return Type: string

ZenScript
Copy
// ResourceLocation.getNamespace() as string

myResourceLocation.getNamespace();

Name: getPath

Return Type: string

ZenScript
Copy
// ResourceLocation.getPath() as string

myResourceLocation.getPath();

Link to g--5

Name: hashCode

Return Type: int

ZenScript
Copy
// ResourceLocation.hashCode() as int

myResourceLocation.hashCode();

Link to g--6

Name: toString

Return Type: string

ZenScript
Copy
// ResourceLocation.toString() as string

myResourceLocation.toString();
NameTypeHas GetterHas SetterDescription
Name
commandString
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
namespace
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
path
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided