NameData - DauntlessStudio/Bedrock-Developments GitHub Wiki
Remarks
A class for working with name data like identifiers.
• new NameData(name): NameData
| Name | Type | Description |
|---|---|---|
name |
string |
The source string to create namedata from. |
Remarks
Creates a namedata object from a source string.
Example
let name = new NameData("subfolder/minecraft:test");• directory: string
Remarks
The directory name of the source string, i.e. subfolder/.
• display: string
Remarks
The display name of the source string as used in the lang, i.e. Test.
• fullname: string
Remarks
The full identifier of the source string, i.e. minecraft:test.
• namespace: string
Remarks
The namespace of the source stirng, i.e. minecraft:test.
• original: string
Remarks
The original source string, i.e. subfolder/minecraft:test.
• shortname: string
Remarks
The shortname of the source string, i.e. test from either minecraft:test or geometry.test.
▪ Static Private projectName: string = ''
▪ Static Private teamName: string = ''
• get ProjectName(): string
string
Remarks
The name of the Project
• get TeamName(): string
string
Remarks
The name of the development team.
▸ splitWords(name): string[]
| Name | Type |
|---|---|
name |
string |
string[]
▸ setAddonNamespace(namespace): void
| Name | Type |
|---|---|
namespace |
string |
void