MCResourceLocation
Link to mcresourcelocation
Importare la Classe
Link to importare-la-classe
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 Copyimport crafttweaker.api.util.MCResourceLocation;
Interfacce Implementate
Link to interfacce-implementate
MCResourceLocation implements the following interfaces. That means all methods defined in these interfaces are also available in MCResourceLocation
- Comparable<MCResourceLocation>
Constructors
Link to constructors
ZenScript Copynew MCResourceLocation(namespace as string, path as string) as MCResourceLocation
Parametro | Tipo | Descrizione |
---|---|---|
Parametro namespace | Tipo string | Descrizione Usually a ModId |
Parametro path | Tipo string | Descrizione May only contain lower-cased alphanumeric values, as well as / and _ |
Caster
Link to caster
Tipo Risultato | Implicito |
---|---|
Tipo Risultato IData | Implicito sì |
Tipo Risultato string | Implicito sì |
Metodi
Link to metodi
Name: asData
Return Type: IData
ZenScript Copy// MCResourceLocation.asData() as IData
myMCResourceLocation.asData();
Name: compareTo
Return Type: int
ZenScript CopyMCResourceLocation.compareTo(other as MCResourceLocation) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo MCResourceLocation | Descrizione No Description Provided |
Name: equals
Return Type: boolean
ZenScript CopyMCResourceLocation.equals(other as Object) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Object | Descrizione 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();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome commandString | Tipo string | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome namespace | Tipo string | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome path | Tipo string | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |