@minecraft/server-editor 0.1.0-beta.1.20.60-preview.20 → 0.1.0-beta.1.20.60-preview.21

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.
Files changed (2) hide show
  1. package/index.d.ts +63 -4
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  * ```json
15
15
  * {
16
16
  * "module_name": "@minecraft/server-editor",
17
- * "version": "0.1.0-beta.1.20.60-preview.20"
17
+ * "version": "0.1.0-beta.1.20.60-preview.21"
18
18
  * }
19
19
  * ```
20
20
  *
@@ -940,6 +940,30 @@ export class Cursor {
940
940
  show(): void;
941
941
  }
942
942
 
943
+ export class CursorPropertiesChangeAfterEvent {
944
+ private constructor();
945
+ readonly properties: CursorProperties;
946
+ }
947
+
948
+ export class CursorPropertyChangeAfterEventSignal {
949
+ private constructor();
950
+ /**
951
+ * @remarks
952
+ * This function can't be called in read-only mode.
953
+ *
954
+ */
955
+ subscribe(
956
+ callback: (arg: CursorPropertiesChangeAfterEvent) => void,
957
+ ): (arg: CursorPropertiesChangeAfterEvent) => void;
958
+ /**
959
+ * @remarks
960
+ * This function can't be called in read-only mode.
961
+ *
962
+ * @throws This function can throw errors.
963
+ */
964
+ unsubscribe(callback: (arg: CursorPropertiesChangeAfterEvent) => void): void;
965
+ }
966
+
943
967
  /**
944
968
  * Editor Extensions are the basis for all player specific,
945
969
  * editor specific functionality within the game. Almost all
@@ -959,6 +983,31 @@ export class Cursor {
959
983
  */
960
984
  export class Extension {
961
985
  private constructor();
986
+ /**
987
+ * @remarks
988
+ * Default identifier for tool rail grouping. All modal tools
989
+ * created from the extension will use this.
990
+ *
991
+ */
992
+ readonly defaultToolGroupId: string;
993
+ /**
994
+ * @remarks
995
+ * Description specified during registration for the extension.
996
+ *
997
+ */
998
+ readonly description: string;
999
+ /**
1000
+ * @remarks
1001
+ * Name of the extension.
1002
+ *
1003
+ */
1004
+ readonly name: string;
1005
+ /**
1006
+ * @remarks
1007
+ * Notes specified during registration for the extension.
1008
+ *
1009
+ */
1010
+ readonly notes: string;
962
1011
  }
963
1012
 
964
1013
  /**
@@ -1000,11 +1049,11 @@ export class ExtensionContext {
1000
1049
  readonly cursor: Cursor;
1001
1050
  /**
1002
1051
  * @remarks
1003
- * The short unique name with which this extension was
1004
- * registered
1052
+ * Contains information about the registered extension
1053
+ * instance.
1005
1054
  *
1006
1055
  */
1007
- readonly extensionName: string;
1056
+ readonly extensionInfo: Extension;
1008
1057
  /**
1009
1058
  * @remarks
1010
1059
  * The current player which is the subject of the extension
@@ -1045,6 +1094,7 @@ export class ExtensionContext {
1045
1094
  */
1046
1095
  export class ExtensionContextAfterEvents {
1047
1096
  private constructor();
1097
+ readonly cursorPropertyChange: CursorPropertyChangeAfterEventSignal;
1048
1098
  /**
1049
1099
  * @remarks
1050
1100
  * This event triggers when the editor mode changes for the
@@ -1872,6 +1922,7 @@ export interface CursorProperties {
1872
1922
  *
1873
1923
  */
1874
1924
  outlineColor?: minecraftserver.RGBA;
1925
+ projectThroughLiquid?: boolean;
1875
1926
  /**
1876
1927
  * @remarks
1877
1928
  * An enum representing the cursor target mode
@@ -1923,6 +1974,14 @@ export interface ExtensionOptionalParameters {
1923
1974
  *
1924
1975
  */
1925
1976
  notes?: string;
1977
+ /**
1978
+ * @remarks
1979
+ * An optional custom identifier that will be used for all
1980
+ * Modal Tools created from the registered extension.
1981
+ * The length of the string is capped to 256 characters
1982
+ *
1983
+ */
1984
+ toolGroupId?: string;
1926
1985
  }
1927
1986
 
1928
1987
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-editor",
3
- "version": "0.1.0-beta.1.20.60-preview.20",
3
+ "version": "0.1.0-beta.1.20.60-preview.21",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "dependencies": {
16
16
  "@minecraft/common": "^1.0.0",
17
- "@minecraft/server": "^1.9.0-beta.1.20.60-preview.20"
17
+ "@minecraft/server": "^1.9.0-beta.1.20.60-preview.21"
18
18
  },
19
19
  "license": "MIT"
20
20
  }