ResourceLocation

Link to resourcelocation

Импорт класса

Link to импорт-класса

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.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

ZenScript
Copy
new ResourceLocation(namespace as string, path as string) as ResourceLocation
ПараметрТипОписание
Параметр
пространство имён
Тип
string
Описание
Usually a ModId
Параметр
path
Тип
string
Описание
May only contain lower-cased alphanumeric values, as well as / and _
Тип результатаЯвляется неявным
Тип результата
IData
Является неявным
true
Тип результата
string
Является неявным
true

Name: asData

Return Type: IData

ZenScript
Copy
// ResourceLocation.asData() as IData

myResourceLocation.asData();

Name: compareTo

Return Type: int

ZenScript
Copy
ResourceLocation.compareTo(other as ResourceLocation) as int
ПараметрТипОписание
Параметр
other
Тип
ResourceLocation
Описание
No Description Provided

Name: equals

Return Type: boolean

ZenScript
Copy
ResourceLocation.equals(other as Object) as boolean
ПараметрТипОписание
Параметр
other
Тип
Object
Описание
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();

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет SetterОписание
Название
commandString
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
пространство имён
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
path
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided