@minecraft/server-ui 2.1.0-beta.1.26.30-preview.27 → 2.1.0-beta.1.26.30-preview.28
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/index.d.ts +18 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -440,6 +440,8 @@ export class CustomForm {
|
|
|
440
440
|
* @throws This function can throw errors.
|
|
441
441
|
*
|
|
442
442
|
* {@link InvalidFormModificationError}
|
|
443
|
+
*
|
|
444
|
+
* {@link InvalidObservableError}
|
|
443
445
|
*/
|
|
444
446
|
dropdown(
|
|
445
447
|
label: ObservableString | ObservableUIRawMessage | string | UIRawMessage,
|
|
@@ -531,6 +533,8 @@ export class CustomForm {
|
|
|
531
533
|
* @throws This function can throw errors.
|
|
532
534
|
*
|
|
533
535
|
* {@link InvalidFormModificationError}
|
|
536
|
+
*
|
|
537
|
+
* {@link InvalidObservableError}
|
|
534
538
|
*/
|
|
535
539
|
slider(
|
|
536
540
|
label: ObservableString | ObservableUIRawMessage | string | UIRawMessage,
|
|
@@ -574,6 +578,8 @@ export class CustomForm {
|
|
|
574
578
|
* @throws This function can throw errors.
|
|
575
579
|
*
|
|
576
580
|
* {@link InvalidFormModificationError}
|
|
581
|
+
*
|
|
582
|
+
* {@link InvalidObservableError}
|
|
577
583
|
*/
|
|
578
584
|
textField(
|
|
579
585
|
label: ObservableString | ObservableUIRawMessage | string | UIRawMessage,
|
|
@@ -600,6 +606,8 @@ export class CustomForm {
|
|
|
600
606
|
* @throws This function can throw errors.
|
|
601
607
|
*
|
|
602
608
|
* {@link InvalidFormModificationError}
|
|
609
|
+
*
|
|
610
|
+
* {@link InvalidObservableError}
|
|
603
611
|
*/
|
|
604
612
|
toggle(
|
|
605
613
|
label: ObservableString | ObservableUIRawMessage | string | UIRawMessage,
|
|
@@ -1902,6 +1910,16 @@ export class InvalidFormModificationError extends Error {
|
|
|
1902
1910
|
readonly formId: string;
|
|
1903
1911
|
}
|
|
1904
1912
|
|
|
1913
|
+
/**
|
|
1914
|
+
* @beta
|
|
1915
|
+
* Thrown when an observable value is expected to be writable,
|
|
1916
|
+
* but it is not.
|
|
1917
|
+
*/
|
|
1918
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
1919
|
+
export class InvalidObservableError extends Error {
|
|
1920
|
+
private constructor();
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1905
1923
|
/**
|
|
1906
1924
|
* @beta
|
|
1907
1925
|
* Thrown when a form operation fails because the target player
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-ui",
|
|
3
|
-
"version": "2.1.0-beta.1.26.30-preview.
|
|
3
|
+
"version": "2.1.0-beta.1.26.30-preview.28",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^2.0.0 || ^2.9.0-beta.1.26.30-preview.
|
|
17
|
+
"@minecraft/server": "^2.0.0 || ^2.9.0-beta.1.26.30-preview.28"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|