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
Copy
import 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

ZenScript
Copy
new MCResourceLocation(namespace as string, path as string) as MCResourceLocation
ParametroTipoDescrizione
Parametro
namespace
Tipo
string
Descrizione
Usually a ModId
Parametro
path
Tipo
string
Descrizione
May only contain lower-cased alphanumeric values, as well as / and _
Tipo RisultatoImplicito
Tipo Risultato
IData
Implicito
Tipo Risultato
string
Implicito

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
ParametroTipoDescrizione
Parametro
other
Tipo
MCResourceLocation
Descrizione
No Description Provided

Name: equals

Return Type: boolean

ZenScript
Copy
MCResourceLocation.equals(other as Object) as boolean
ParametroTipoDescrizione
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();
NomeTipoHa GetterHa SetterDescrizione
Nome
commandString
Tipo
string
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
namespace
Tipo
string
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
path
Tipo
string
Ha Getter
Ha Setter
no
Descrizione
No Description Provided