@minecraft/server 2.9.0-rc.1.26.40-preview.20 → 2.9.0-rc.1.26.40-preview.24

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 +46 -0
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -2611,6 +2611,38 @@ export enum PlayerPermissionLevel {
2611
2611
  Custom = 3,
2612
2612
  }
2613
2613
 
2614
+ /**
2615
+ * @rc
2616
+ * The split screen slot of a player.
2617
+ */
2618
+ export enum PlayerSplitScreenSlot {
2619
+ /**
2620
+ * @remarks
2621
+ * The first player in the split screen session. This is the
2622
+ * primary player.
2623
+ *
2624
+ */
2625
+ First = 'First',
2626
+ /**
2627
+ * @remarks
2628
+ * The fourth player in the split screen session.
2629
+ *
2630
+ */
2631
+ Fourth = 'Fourth',
2632
+ /**
2633
+ * @remarks
2634
+ * The second player in the split screen session.
2635
+ *
2636
+ */
2637
+ Second = 'Second',
2638
+ /**
2639
+ * @remarks
2640
+ * The third player in the split screen session.
2641
+ *
2642
+ */
2643
+ Third = 'Third',
2644
+ }
2645
+
2614
2646
  /**
2615
2647
  * Contains objectives and participants for the scoreboard.
2616
2648
  */
@@ -4084,6 +4116,20 @@ export class Block {
4084
4116
  * {@link LocationInUnloadedChunkError}
4085
4117
  */
4086
4118
  getLightLevel(): number;
4119
+ /**
4120
+ * @rc
4121
+ * @remarks
4122
+ * Returns array of all loaded block parts if this block has
4123
+ * the 'minecraft:multi_block' trait. If it does not have the
4124
+ * trait returns undefined
4125
+ *
4126
+ * @throws This function can throw errors.
4127
+ *
4128
+ * {@link LocationInUnloadedChunkError}
4129
+ *
4130
+ * {@link LocationOutOfWorldBoundariesError}
4131
+ */
4132
+ getParts(): Block[] | undefined;
4087
4133
  /**
4088
4134
  * @remarks
4089
4135
  * Returns the net redstone power of this block.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "2.9.0-rc.1.26.40-preview.20",
3
+ "version": "2.9.0-rc.1.26.40-preview.24",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "peerDependencies": {
16
16
  "@minecraft/common": "^1.2.0",
17
- "@minecraft/vanilla-data": ">=1.20.70 || 1.26.40-preview.20"
17
+ "@minecraft/vanilla-data": ">=1.20.70 || 1.26.40-preview.24"
18
18
  },
19
19
  "license": "MIT"
20
20
  }