MCResourceLocation

Link to mcresourcelocation

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.util.MCResourceLocation;

Implemented Interfaces

Link to implemented-interfaces

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

ZenScript
Copy
new MCResourceLocation(namespace as string, path as string) as MCResourceLocation
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 _
반환 자료형암묵적
반환 자료형
IData
암묵적
true
반환 자료형
string
암묵적
true

Name: asData

Return Type: IData

ZenScript
Copy
// MCResourceLocation.asData() as IData

myMCResourceLocation.asData();

Name: compareTo

Return Type: int

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

Name: equals

Return Type: boolean

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

Name: getNamespace

Return Type: string

ZenScript
Copy
// MCResourceLocation.getNamespace() as string

myMCResourceLocation.getNamespace();

Name: getPath

Return Type: string

ZenScript
Copy
// MCResourceLocation.getPath() as string

myMCResourceLocation.getPath();

Name: hashCode

Return Type: int

ZenScript
Copy
// MCResourceLocation.hashCode() as int

myMCResourceLocation.hashCode();

Name: toString

Return Type: string

ZenScript
Copy
// MCResourceLocation.toString() as string

myMCResourceLocation.toString();
이름TypeHas GetterHas SetterDescription
이름
commandString
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
이름
namespace
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
이름
path
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided