MCResourceLocation
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.
import crafttweaker.api.util.MCResourceLocation;
Interfacce Implementate
MCResourceLocation implements the following interfaces. That means all methods defined in these interfaces are also available in MCResourceLocation
Constructors
new MCResourceLocation(namespace as string, path as string) as MCResourceLocation
Parameter | Type | Description |
---|
namespace | string | Usually a ModId |
path | string | May only contain lower-cased alphanumeric values, as well as / and _ |
Caster
Tipo Risultato | Implicito |
---|
IData | true |
string | true |
Methods
asData
Return Type: IData
MCResourceLocation.asData() as IData
myMCResourceLocation.asData();
confrontaA
Return Type: int
MCResourceLocation.compareTo(other as MCResourceLocation) as int
equals
Return Type: boolean
MCResourceLocation.equals(other as Object) as boolean
Parameter | Type | Description |
---|
other | Object | No Description Provided |
getNamespace
Return Type: string
MCResourceLocation.getNamespace() as string
myMCResourceLocation.getNamespace();
getPath
Return Type: string
MCResourceLocation.getPath() as string
myMCResourceLocation.getPath();
hashCode
Return Type: int
MCResourceLocation.hashCode() as int
myMCResourceLocation.hashCode();
toString
Return Type: string
MCResourceLocation.toString() as string
myMCResourceLocation.toString();
Properties
Name | Type | Ha Getter | Ha Setter |
---|
commandString | string | true | false |
namespace | string | true | false |
path | string | true | false |