Directories - DauntlessStudio/Bedrock-Developments GitHub Wiki
Remarks
A global class for getting and setting workspace paths.
- ADDON_PATH
- BEHAVIOR_PATH
- PACKAGE_PATH
- RESOURCE_PATH
- SOURCE_PATH
- VANILLA_BEHAVIOR_PATH
- VANILLA_RESOURCE_PATH
• new Directories(): Directories
▪ Static Private addon_path: string = ''
▪ Static Private behavior_path: string = '**/behavior_packs/*bp/'
▪ Static Private package_path: string
▪ Static Private resource_path: string = '**/resource_packs/*rp/'
▪ Static Private source_path: string
• get ADDON_PATH(): string
string
Remarks
The addon subpath / or an empty string if unspecified.
• set ADDON_PATH(v): void
| Name | Type |
|---|---|
v |
string |
void
• get BEHAVIOR_PATH(): string
string
Remarks
The behavior pack in the workspace.
• set BEHAVIOR_PATH(v): void
| Name | Type |
|---|---|
v |
string |
void
• get PACKAGE_PATH(): string
string
• get RESOURCE_PATH(): string
string
Remarks
The resource pack in the workspace.
• set RESOURCE_PATH(v): void
| Name | Type |
|---|---|
v |
string |
void
• get SOURCE_PATH(): string
string
Remarks
The path to the module's /src
• get VANILLA_BEHAVIOR_PATH(): string
string
Remarks
The path to the vanilla behavior pack samples packaged with the module.
• get VANILLA_RESOURCE_PATH(): string
string
Remarks
The path to the vanilla resource pack samples packaged with the module.