bc-minecraft-bedrock-command 1.22.2-2 → 1.23.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/command-info.d.ts +10 -0
- package/dist/data/command-info.d.ts.map +1 -1
- package/dist/data/vanilla/spreadplayers.js +1 -1
- package/dist/data/vanilla/spreadplayers.js.map +1 -1
- package/dist/types/command/command.d.ts +5 -5
- package/dist/types/command/command.d.ts.map +1 -1
- package/dist/types/command/command.js +8 -12
- package/dist/types/command/command.js.map +1 -1
- package/dist/types/command/functions.d.ts +8 -5
- package/dist/types/command/functions.d.ts.map +1 -1
- package/dist/types/command/functions.js +20 -8
- package/dist/types/command/functions.js.map +1 -1
- package/package.json +3 -3
|
@@ -20,6 +20,16 @@ export interface CommandInfo {
|
|
|
20
20
|
obsolete?: boolean | ObsoleteInfo;
|
|
21
21
|
/**The permission level required to use this command*/
|
|
22
22
|
permission_level: number;
|
|
23
|
+
/**Optional metadata about where this command is defined*/
|
|
24
|
+
source?: CommandSource;
|
|
25
|
+
}
|
|
26
|
+
export interface CommandSource {
|
|
27
|
+
/**The uri of the source file defining the command*/
|
|
28
|
+
uri: string;
|
|
29
|
+
/**1-based source line where the command is registered*/
|
|
30
|
+
line: number;
|
|
31
|
+
/**The source language that defined the command*/
|
|
32
|
+
language: 'javascript' | 'typescript';
|
|
23
33
|
}
|
|
24
34
|
/**The information of a single parameter.*/
|
|
25
35
|
export interface ParameterInfo {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-info.d.ts","sourceRoot":"","sources":["../../src/data/command-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,uDAAuD;AACvD,MAAM,WAAW,YAAY;IAC3B,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,iDAAiD;I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C;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,oDAAoD;IACpD,QAAQ,EAAE,OAAO,CAAC;IAElB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAED,gDAAgD;AAChD,MAAM,WAAW,gBAAgB;IAC/B,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,iFAAiF;IACjF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -15,7 +15,7 @@ exports.spreadplayers = [
|
|
|
15
15
|
{ text: 'spread distance', type: parameter_type_1.ParameterType.float, required: true },
|
|
16
16
|
{ text: 'max range', type: parameter_type_1.ParameterType.float, required: true },
|
|
17
17
|
{ text: 'victim', type: parameter_type_1.ParameterType.selector, required: true },
|
|
18
|
-
{ text: 'max height', type: parameter_type_1.ParameterType.
|
|
18
|
+
{ text: 'max height', type: parameter_type_1.ParameterType.coordinate, required: false },
|
|
19
19
|
],
|
|
20
20
|
},
|
|
21
21
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spreadplayers.js","sourceRoot":"","sources":["../../../src/data/vanilla/spreadplayers.ts"],"names":[],"mappings":";;;AAAA,+DAA2D;AAG3D,+BAA+B;AAClB,QAAA,aAAa,GAAkB;IAC1C;QACE,IAAI,EAAE,eAAe;QACrB,aAAa,EAAE,yCAAyC;QACxD,gBAAgB,EAAE,CAAC;QACnB,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,8BAAa,CAAC,OAAO,EAAE,Q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AE;YACtE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,8BAAa,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;YAChE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,8BAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YAChE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,8BAAa,CAAC,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE;SACxE;KACF;CACF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CommandInfo } from '../../data';
|
|
2
2
|
import { ParameterType } from '../parameter-type';
|
|
3
|
+
import { CustomCommandLookup } from './functions';
|
|
3
4
|
import { Parameter } from './parameter';
|
|
4
5
|
/**A class that helps interpreting written commands.*/
|
|
5
6
|
export declare class Command {
|
|
6
|
-
private _matches;
|
|
7
7
|
/**The parameters of the command.*/
|
|
8
8
|
parameters: Parameter[];
|
|
9
9
|
subType: ParameterType;
|
|
@@ -15,15 +15,15 @@ export declare class Command {
|
|
|
15
15
|
/**Gets all the command data that is the possible best match data
|
|
16
16
|
* @param edu Whether or not to include education data
|
|
17
17
|
* @returns An array with commands info*/
|
|
18
|
-
getCommandData(edu?: boolean): CommandInfo[];
|
|
18
|
+
getCommandData(edu?: boolean, custom?: CustomCommandLookup): CommandInfo[];
|
|
19
19
|
/**Gets the best matching commandInfo data, if multiple are returned, it unclear or somewhere not fully specified
|
|
20
20
|
* @param edu Whether or not to include education data
|
|
21
21
|
* @returns An array with commands info*/
|
|
22
|
-
getBestMatch(edu?: boolean): CommandInfo[];
|
|
22
|
+
getBestMatch(edu?: boolean, custom?: CustomCommandLookup): CommandInfo[];
|
|
23
23
|
/**Gets the subcommand if there is any present
|
|
24
24
|
* @param edu Whether or not to include education data
|
|
25
25
|
* @returns A sub command or undefined if there is no subcommand*/
|
|
26
|
-
getSubCommand(edu?: boolean): Command | undefined;
|
|
26
|
+
getSubCommand(edu?: boolean, custom?: CustomCommandLookup): Command | undefined;
|
|
27
27
|
/**Finds the parameter index the cursor is at
|
|
28
28
|
* @param index The index
|
|
29
29
|
* @returns If cursor is not inside command then -1 is returned*/
|
|
@@ -39,7 +39,7 @@ export declare class Command {
|
|
|
39
39
|
/**Checks if the given cursor offset is in the subcommand or in the main command (or outside)
|
|
40
40
|
* @param cursor The cursor offset
|
|
41
41
|
* @returns A subcommand if the cursor is in the subcommand else returned undefined*/
|
|
42
|
-
isInSubCommand(cursor: number, edu?: boolean): Command | undefined;
|
|
42
|
+
isInSubCommand(cursor: number, edu?: boolean, custom?: CustomCommandLookup): Command | undefined;
|
|
43
43
|
/**Parses the given text as a command
|
|
44
44
|
* @param text The text to process
|
|
45
45
|
* @param offset The offset the text starts at in the document
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/types/command/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/types/command/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAkC,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,sDAAsD;AACtD,qBAAa,OAAO;IAClB,mCAAmC;IAC5B,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,OAAO,EAAE,aAAa,CAAC;IAE9B,wCAAwC;;IAMxC;sDACkD;IAClD,UAAU,IAAI,MAAM;IAMpB;;6CAEyC;IACzC,cAAc,CAAC,GAAG,GAAE,OAAe,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,WAAW,EAAE;IAIjF;;6CAEyC;IACzC,YAAY,CAAC,GAAG,GAAE,OAAe,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,WAAW,EAAE;IAI/E;;sEAEkE;IAClE,aAAa,CAAC,GAAG,GAAE,OAAe,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,GAAG,SAAS;IAoBtF;;qEAEiE;IACjE,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAyBvC;wDACoD;IACpD,OAAO,IAAI,OAAO;IAIlB;;;4DAGwD;IACxD,KAAK,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO;IAOzE;;yFAEqF;IACrF,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,GAAE,OAAe,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,GAAG,SAAS;IAQvG;;;2BAGuB;IACvB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,GAAG,OAAO;CAiBxD"}
|
|
@@ -6,13 +6,11 @@ const functions_1 = require("./functions");
|
|
|
6
6
|
const parse_1 = require("./parse");
|
|
7
7
|
/**A class that helps interpreting written commands.*/
|
|
8
8
|
class Command {
|
|
9
|
-
_matches;
|
|
10
9
|
/**The parameters of the command.*/
|
|
11
10
|
parameters;
|
|
12
11
|
subType;
|
|
13
12
|
/**Creates a new instance of a command*/
|
|
14
13
|
constructor() {
|
|
15
|
-
this._matches = undefined;
|
|
16
14
|
this.parameters = [];
|
|
17
15
|
this.subType = parameter_type_1.ParameterType.command;
|
|
18
16
|
}
|
|
@@ -26,22 +24,20 @@ class Command {
|
|
|
26
24
|
/**Gets all the command data that is the possible best match data
|
|
27
25
|
* @param edu Whether or not to include education data
|
|
28
26
|
* @returns An array with commands info*/
|
|
29
|
-
getCommandData(edu = false) {
|
|
30
|
-
return (0, functions_1.getCommandData)(this.getKeyword(), edu, this.subType);
|
|
27
|
+
getCommandData(edu = false, custom) {
|
|
28
|
+
return (0, functions_1.getCommandData)(this.getKeyword(), edu, this.subType, custom);
|
|
31
29
|
}
|
|
32
30
|
/**Gets the best matching commandInfo data, if multiple are returned, it unclear or somewhere not fully specified
|
|
33
31
|
* @param edu Whether or not to include education data
|
|
34
32
|
* @returns An array with commands info*/
|
|
35
|
-
getBestMatch(edu = false) {
|
|
36
|
-
|
|
37
|
-
return this._matches;
|
|
38
|
-
return (this._matches = (0, functions_1.getBestMatches)(this, edu));
|
|
33
|
+
getBestMatch(edu = false, custom) {
|
|
34
|
+
return (0, functions_1.getBestMatches)(this, edu, custom);
|
|
39
35
|
}
|
|
40
36
|
/**Gets the subcommand if there is any present
|
|
41
37
|
* @param edu Whether or not to include education data
|
|
42
38
|
* @returns A sub command or undefined if there is no subcommand*/
|
|
43
|
-
getSubCommand(edu = false) {
|
|
44
|
-
const matches = this.getBestMatch(edu);
|
|
39
|
+
getSubCommand(edu = false, custom) {
|
|
40
|
+
const matches = this.getBestMatch(edu, custom);
|
|
45
41
|
for (let I = 0; I < matches.length; I++) {
|
|
46
42
|
const item = matches[I];
|
|
47
43
|
const index = item.parameters.findIndex((x) => {
|
|
@@ -98,8 +94,8 @@ class Command {
|
|
|
98
94
|
/**Checks if the given cursor offset is in the subcommand or in the main command (or outside)
|
|
99
95
|
* @param cursor The cursor offset
|
|
100
96
|
* @returns A subcommand if the cursor is in the subcommand else returned undefined*/
|
|
101
|
-
isInSubCommand(cursor, edu = false) {
|
|
102
|
-
const get = this.getSubCommand(edu);
|
|
97
|
+
isInSubCommand(cursor, edu = false, custom) {
|
|
98
|
+
const get = this.getSubCommand(edu, custom);
|
|
103
99
|
if (get && get.parameters[0].offset <= cursor)
|
|
104
100
|
return get;
|
|
105
101
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../src/types/command/command.ts"],"names":[],"mappings":";;;AACA,sDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../src/types/command/command.ts"],"names":[],"mappings":";;;AACA,sDAAkD;AAClD,2CAAkF;AAElF,mCAA0D;AAE1D,sDAAsD;AACtD,MAAa,OAAO;IAClB,mCAAmC;IAC5B,UAAU,CAAc;IACxB,OAAO,CAAgB;IAE9B,wCAAwC;IACxC;QACE,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,8BAAa,CAAC,OAAO,CAAC;IACvC,CAAC;IAED;sDACkD;IAClD,UAAU;QACR,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC;YAAE,OAAO,EAAE,CAAC;QAE3C,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjC,CAAC;IAED;;6CAEyC;IACzC,cAAc,CAAC,MAAe,KAAK,EAAE,MAA4B;QAC/D,OAAO,IAAA,0BAAc,EAAC,IAAI,CAAC,UAAU,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACtE,CAAC;IAED;;6CAEyC;IACzC,YAAY,CAAC,MAAe,KAAK,EAAE,MAA4B;QAC7D,OAAO,IAAA,0BAAc,EAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;IAED;;sEAEkE;IAClE,aAAa,CAAC,MAAe,KAAK,EAAE,MAA4B;QAC9D,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAE/C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACxC,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACxB,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,C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 +1,36 @@
|
|
|
1
1
|
import { Command } from './command';
|
|
2
2
|
import { CommandInfo } from '../../data';
|
|
3
|
+
import { CommandContainer } from '../../data/command-container';
|
|
3
4
|
import { ParameterType } from '../parameter-type';
|
|
5
|
+
export type CustomCommandGetter = (name: string) => CommandInfo[] | undefined;
|
|
6
|
+
export type CustomCommandLookup = CommandContainer | CustomCommandGetter;
|
|
4
7
|
/**Gets the best matching commandInfo data, if multiple are returned, it unclear or somewhere not fully specified
|
|
5
8
|
* @param command The command to search through
|
|
6
9
|
* @param edu Whether or not to include education data
|
|
7
10
|
* @returns An array with commands info*/
|
|
8
|
-
export declare function getBestMatches(command: Command, edu?: boolean): CommandInfo[];
|
|
11
|
+
export declare function getBestMatches(command: Command, edu?: boolean, custom?: CustomCommandLookup): CommandInfo[];
|
|
9
12
|
/**Checks if the command matches the commandInfo
|
|
10
13
|
* @param command The command to examine
|
|
11
14
|
* @param data The commandInfo serving as the basis
|
|
12
15
|
* @param edu If education content should be used or not
|
|
13
16
|
* @returns true or false is this commandInfo matches the command*/
|
|
14
|
-
export declare function isMatch(command: Command, data: CommandInfo, edu?: boolean): boolean;
|
|
17
|
+
export declare function isMatch(command: Command, data: CommandInfo, edu?: boolean, custom?: CustomCommandLookup): boolean;
|
|
15
18
|
export declare function checkRequiredParameterLength(command: Command, data: CommandInfo): boolean;
|
|
16
19
|
/**Retrieves the command data related to the given keyword
|
|
17
20
|
* @param name The command to retrieve
|
|
18
21
|
* @param edu Whether or not to include education commands
|
|
19
22
|
* @returns An array with commands info*/
|
|
20
|
-
export declare function getCommandData(name: string, edu?: boolean, type?: ParameterType): CommandInfo[];
|
|
23
|
+
export declare function getCommandData(name: string, edu?: boolean, type?: ParameterType, custom?: CustomCommandLookup): CommandInfo[];
|
|
21
24
|
/**Checks if the given commandData is present
|
|
22
25
|
* @param name The command to retrieve
|
|
23
26
|
* @param edu Whether or not to include education commands
|
|
24
27
|
* @returns An array with commands info*/
|
|
25
|
-
export declare function hasCommandData(name: string, edu?: boolean): boolean;
|
|
28
|
+
export declare function hasCommandData(name: string, edu?: boolean, custom?: CustomCommandLookup): boolean;
|
|
26
29
|
/**Checks if the given commandData is present
|
|
27
30
|
* @param command The command to retrieve
|
|
28
31
|
* @param edu Whether or not to include education commands
|
|
29
32
|
* @returns True or false*/
|
|
30
|
-
export declare function IsCommand(command: string, edu?: boolean): boolean;
|
|
33
|
+
export declare function IsCommand(command: string, edu?: boolean, custom?: CustomCommandLookup): boolean;
|
|
31
34
|
/** Checks if the given command is a execute sub command
|
|
32
35
|
* @param command The command to check
|
|
33
36
|
* @returns True or false*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/types/command/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAe,WAAW,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD;;;yCAGyC;AACzC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,GAAE,OAAe,GAAG,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/types/command/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAe,WAAW,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,WAAW,EAAE,GAAG,SAAS,CAAC;AAC9E,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAEzE;;;yCAGyC;AACzC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,GAAE,OAAe,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,WAAW,EAAE,CAelH;AAED;;;;mEAImE;AACnE,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,GAAE,OAAe,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,CA8DxH;AA6CD,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAiBzF;AAED;;;yCAGyC;AACzC,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,GAAG,GAAE,OAAe,EACpB,IAAI,GAAE,aAAqC,EAC3C,MAAM,CAAC,EAAE,mBAAmB,GAC3B,WAAW,EAAE,CAef;AAED;;;yCAGyC;AACzC,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,OAAe,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAMxG;AAED;;;2BAG2B;AAC3B,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,GAAE,OAAe,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAMtG;AAED;;2BAE2B;AAC3B,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,WAElD"}
|
|
@@ -14,11 +14,11 @@ const bc_minecraft_bedrock_types_1 = require("bc-minecraft-bedrock-types");
|
|
|
14
14
|
* @param command The command to search through
|
|
15
15
|
* @param edu Whether or not to include education data
|
|
16
16
|
* @returns An array with commands info*/
|
|
17
|
-
function getBestMatches(command, edu = false) {
|
|
18
|
-
let m = command.getCommandData(edu);
|
|
17
|
+
function getBestMatches(command, edu = false, custom) {
|
|
18
|
+
let m = command.getCommandData(edu, custom);
|
|
19
19
|
if (m.length === 1)
|
|
20
20
|
return m;
|
|
21
|
-
m = m.filter((x) => isMatch(command, x, edu));
|
|
21
|
+
m = m.filter((x) => isMatch(command, x, edu, custom));
|
|
22
22
|
if (m.length > 1) {
|
|
23
23
|
const n = m.filter((x) => checkRequiredParameterLength(command, x));
|
|
24
24
|
if (n.length === 0)
|
|
@@ -32,7 +32,7 @@ function getBestMatches(command, edu = false) {
|
|
|
32
32
|
* @param data The commandInfo serving as the basis
|
|
33
33
|
* @param edu If education content should be used or not
|
|
34
34
|
* @returns true or false is this commandInfo matches the command*/
|
|
35
|
-
function isMatch(command, data, edu = false) {
|
|
35
|
+
function isMatch(command, data, edu = false, custom) {
|
|
36
36
|
let Limit = data.parameters.length;
|
|
37
37
|
if (Limit > command.parameters.length) {
|
|
38
38
|
Limit = command.parameters.length;
|
|
@@ -66,7 +66,7 @@ function isMatch(command, data, edu = false) {
|
|
|
66
66
|
//TODO program matches types for these
|
|
67
67
|
continue;
|
|
68
68
|
case parameter_type_1.ParameterType.command:
|
|
69
|
-
if (!IsCommand(commandText, edu))
|
|
69
|
+
if (!IsCommand(commandText, edu, custom))
|
|
70
70
|
return false;
|
|
71
71
|
break;
|
|
72
72
|
case parameter_type_1.ParameterType.effect:
|
|
@@ -152,13 +152,14 @@ function checkRequiredParameterLength(command, data) {
|
|
|
152
152
|
* @param name The command to retrieve
|
|
153
153
|
* @param edu Whether or not to include education commands
|
|
154
154
|
* @returns An array with commands info*/
|
|
155
|
-
function getCommandData(name, edu = false, type = parameter_type_1.ParameterType.command) {
|
|
155
|
+
function getCommandData(name, edu = false, type = parameter_type_1.ParameterType.command, custom) {
|
|
156
156
|
const out = [];
|
|
157
157
|
if (type == parameter_type_1.ParameterType.executeSubcommand) {
|
|
158
158
|
Add(out, data_1.CommandData.ExecuteSubcommands[name]);
|
|
159
159
|
}
|
|
160
160
|
if (type == parameter_type_1.ParameterType.command) {
|
|
161
161
|
Add(out, data_1.CommandData.Vanilla[name]);
|
|
162
|
+
Add(out, getCustomCommandData(name, custom));
|
|
162
163
|
if (edu)
|
|
163
164
|
Add(out, data_1.CommandData.Edu[name]);
|
|
164
165
|
}
|
|
@@ -168,9 +169,11 @@ function getCommandData(name, edu = false, type = parameter_type_1.ParameterType
|
|
|
168
169
|
* @param name The command to retrieve
|
|
169
170
|
* @param edu Whether or not to include education commands
|
|
170
171
|
* @returns An array with commands info*/
|
|
171
|
-
function hasCommandData(name, edu = false) {
|
|
172
|
+
function hasCommandData(name, edu = false, custom) {
|
|
172
173
|
if (data_1.CommandData.Vanilla[name])
|
|
173
174
|
return true;
|
|
175
|
+
if (getCustomCommandData(name, custom))
|
|
176
|
+
return true;
|
|
174
177
|
if (edu && data_1.CommandData.Edu[name])
|
|
175
178
|
return true;
|
|
176
179
|
return false;
|
|
@@ -179,9 +182,11 @@ function hasCommandData(name, edu = false) {
|
|
|
179
182
|
* @param command The command to retrieve
|
|
180
183
|
* @param edu Whether or not to include education commands
|
|
181
184
|
* @returns True or false*/
|
|
182
|
-
function IsCommand(command, edu = false) {
|
|
185
|
+
function IsCommand(command, edu = false, custom) {
|
|
183
186
|
if (data_1.CommandData.Vanilla[command])
|
|
184
187
|
return true;
|
|
188
|
+
if (getCustomCommandData(command, custom))
|
|
189
|
+
return true;
|
|
185
190
|
if (edu && data_1.CommandData.Edu[command])
|
|
186
191
|
return true;
|
|
187
192
|
return false;
|
|
@@ -196,4 +201,11 @@ function Add(receiver, items) {
|
|
|
196
201
|
if (items)
|
|
197
202
|
receiver.push(...items);
|
|
198
203
|
}
|
|
204
|
+
function getCustomCommandData(name, custom) {
|
|
205
|
+
if (!custom)
|
|
206
|
+
return undefined;
|
|
207
|
+
if (typeof custom === 'function')
|
|
208
|
+
return custom(name);
|
|
209
|
+
return custom[name];
|
|
210
|
+
}
|
|
199
211
|
//# sourceMappingURL=functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/types/command/functions.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/types/command/functions.ts"],"names":[],"mappings":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EjD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;2BAE2B;AAC3B,SAAgB,mBAAmB,CAAC,OAAe;IACjD,OAAO,kBAAW,CAAC,kBAAkB,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC;AAC9D,CAAC;AAED,SAAS,GAAG,CAAC,QAAuB,EAAE,KAAgC;IACpE,IAAI,KAAK;QAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAY,EAAE,MAA4B;IACtE,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAC9B,IAAI,OAAO,MAAM,KAAK,UAAU;QAAE,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;IAEtD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bc-minecraft-bedrock-command",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0-0",
|
|
4
4
|
"description": "A typescript package library that handles commands for minecraft bedrock",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Blockception Ltd",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@eslint/js": "^10.0.1",
|
|
43
43
|
"@types/eslint__js": "^9.14.0",
|
|
44
44
|
"@types/node": "^25.8.0",
|
|
45
|
-
"eslint": "^10.
|
|
45
|
+
"eslint": "^10.4.0",
|
|
46
46
|
"rimraf": "^6.1.3",
|
|
47
47
|
"ts-node": "^10.9.1",
|
|
48
48
|
"typescript": "6.0.3",
|
|
49
|
-
"typescript-eslint": "^8.59.
|
|
49
|
+
"typescript-eslint": "^8.59.4"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"bc-minecraft-bedrock-types": "*"
|