ResourceLocation
Link to resourcelocation
Diese Klasse importieren
Link to diese-klasse-importieren
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;
Implemented Interfaces
Link to implemented-interfaces
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
Parameter | Type | Beschreibung |
---|---|---|
Parameter namespace | Type string | Beschreibung Usually a ModId |
Parameter path | Type string | Beschreibung May only contain lower-cased alphanumeric values, as well as / and _ |
Casters
Link to casters
Result type | Is Implicit |
---|---|
Result type IData | Is Implicit true |
Result type string | Is Implicit true |
Methoden
Link to methoden
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
Parameter | Type | Beschreibung |
---|---|---|
Parameter other | Type ResourceLocation | Beschreibung No Description Provided |
Name: equals
Return Type: boolean
ZenScript CopyResourceLocation.equals(other as Object) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter other | Type Object | Beschreibung No Description Provided |
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();
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name commandString | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name namespace | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name path | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |