ResourceLocation
Link to resourcelocation
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.resource.ResourceLocation;
Interfacce Implementate
Link to interfacce-implementate
ResourceLocation implements the following interfaces. That means all methods defined in these interfaces are also available in ResourceLocation
- Comparable<ResourceLocation>
Constructors
Link to constructors
ZenScript Copynew ResourceLocation(namespace as string, path as string) as ResourceLocation
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
Result Type | Implicito |
---|---|
Result Type IData | Implicito sì |
Result Type string | Implicito sì |
Metodi
Link to metodi
Name: asData
Return Type: IData
ZenScript Copy// ResourceLocation.asData() as IData
myResourceLocation.asData();
Name: compareTo
Return Type: int
ZenScript CopyResourceLocation.compareTo(other as ResourceLocation) as int
Parametro | Tipo |
---|---|
Parametro other | Tipo ResourceLocation |
Name: equals
Return Type: boolean
ZenScript CopyResourceLocation.equals(other as Object) as boolean
Parametro | Tipo |
---|---|
Parametro other | Tipo Object |
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();
Name: hashCode
Return Type: int
ZenScript Copy// ResourceLocation.hashCode() as int
myResourceLocation.hashCode();
Name: toString
Return Type: string
ZenScript Copy// ResourceLocation.toString() as string
myResourceLocation.toString();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter |
---|---|---|---|
Nome commandString | Tipo string | Ha Getter sì | Ha Setter no |
Nome namespace | Tipo string | Ha Getter sì | Ha Setter no |
Nome path | Tipo string | Ha Getter sì | Ha Setter no |