@minecraft/server 2.9.0-rc.1.26.50-preview.20 → 2.9.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/README.md +0 -2
- package/index.d.ts +33 -16
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
4
4
|
|
|
5
|
-
## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
|
|
6
|
-
|
|
7
5
|
See full documentation for this module here:
|
|
8
6
|
|
|
9
7
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
|
package/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
***************************************************************************** */
|
|
9
9
|
/**
|
|
10
|
-
* @preview
|
|
11
10
|
* @packageDocumentation
|
|
12
11
|
* Contains many types related to manipulating a Minecraft
|
|
13
12
|
* world, including entities, blocks, dimensions, and more.
|
|
@@ -2609,7 +2608,6 @@ export enum PlayerPermissionLevel {
|
|
|
2609
2608
|
}
|
|
2610
2609
|
|
|
2611
2610
|
/**
|
|
2612
|
-
* @rc
|
|
2613
2611
|
* The split screen slot of a player.
|
|
2614
2612
|
*/
|
|
2615
2613
|
export enum PlayerSplitScreenSlot {
|
|
@@ -4113,7 +4111,6 @@ export class Block {
|
|
|
4113
4111
|
*/
|
|
4114
4112
|
getLightLevel(): number;
|
|
4115
4113
|
/**
|
|
4116
|
-
* @rc
|
|
4117
4114
|
* @remarks
|
|
4118
4115
|
* Returns array of all loaded block parts if this block has
|
|
4119
4116
|
* the 'minecraft:multi_block' trait. If it does not have the
|
|
@@ -7289,7 +7286,6 @@ export class Dimension {
|
|
|
7289
7286
|
*/
|
|
7290
7287
|
readonly localizationKey: string;
|
|
7291
7288
|
/**
|
|
7292
|
-
* @rc
|
|
7293
7289
|
* @remarks
|
|
7294
7290
|
* Calculates the location of the closest biome of a particular
|
|
7295
7291
|
* type from the world seed. Note that
|
|
@@ -7557,6 +7553,35 @@ export class Dimension {
|
|
|
7557
7553
|
* @throws This function can throw errors.
|
|
7558
7554
|
*/
|
|
7559
7555
|
getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
7556
|
+
/**
|
|
7557
|
+
* @remarks
|
|
7558
|
+
* Gets all the blocks in a volume that satisfy the filter.
|
|
7559
|
+
*
|
|
7560
|
+
* @param volume
|
|
7561
|
+
* Volume of blocks that will be checked.
|
|
7562
|
+
* @param filter
|
|
7563
|
+
* Block filter that will be checked against each block in the
|
|
7564
|
+
* volume.
|
|
7565
|
+
* @param allowUnloadedChunks
|
|
7566
|
+
* If set to true will suppress the UnloadedChunksError if some
|
|
7567
|
+
* or all of the block volume is outside of the loaded chunks.
|
|
7568
|
+
* Will only check the block locations that are within the
|
|
7569
|
+
* loaded chunks in the volume.
|
|
7570
|
+
* Defaults to: false
|
|
7571
|
+
* @returns
|
|
7572
|
+
* Returns the ListBlockVolume that contains all the block
|
|
7573
|
+
* locations that satisfied the block filter.
|
|
7574
|
+
* @throws This function can throw errors.
|
|
7575
|
+
*
|
|
7576
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
7577
|
+
*
|
|
7578
|
+
* {@link Error}
|
|
7579
|
+
*
|
|
7580
|
+
* {@link minecraftcommon.InvalidArgumentError}
|
|
7581
|
+
*
|
|
7582
|
+
* {@link UnloadedChunksError}
|
|
7583
|
+
*/
|
|
7584
|
+
getBlocks(volume: BlockVolumeBase, filter: BlockFilter, allowUnloadedChunks?: boolean): ListBlockVolume;
|
|
7560
7585
|
/**
|
|
7561
7586
|
* @remarks
|
|
7562
7587
|
* Returns a set of entities based on a set of conditions
|
|
@@ -8345,6 +8370,8 @@ export class EffectTypes {
|
|
|
8345
8370
|
* @remarks
|
|
8346
8371
|
* Effect type for the given identifier.
|
|
8347
8372
|
*
|
|
8373
|
+
* This function can't be called in restricted-execution mode.
|
|
8374
|
+
*
|
|
8348
8375
|
* @param identifier
|
|
8349
8376
|
* The identifier for the effect.
|
|
8350
8377
|
* @returns
|
|
@@ -8356,6 +8383,8 @@ export class EffectTypes {
|
|
|
8356
8383
|
* @remarks
|
|
8357
8384
|
* Gets all effects.
|
|
8358
8385
|
*
|
|
8386
|
+
* This function can't be called in restricted-execution mode.
|
|
8387
|
+
*
|
|
8359
8388
|
* @returns
|
|
8360
8389
|
* A list of all effects.
|
|
8361
8390
|
*/
|
|
@@ -15834,9 +15863,6 @@ export class LootingEnchantFunction extends LootItemFunction {
|
|
|
15834
15863
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15835
15864
|
export class LootItem extends LootPoolEntry {
|
|
15836
15865
|
private constructor();
|
|
15837
|
-
/**
|
|
15838
|
-
* @rc
|
|
15839
|
-
*/
|
|
15840
15866
|
readonly conditions: LootItemCondition[];
|
|
15841
15867
|
readonly functions: LootItemFunction[];
|
|
15842
15868
|
/**
|
|
@@ -17220,7 +17246,6 @@ export class PlayerButtonInputAfterEventSignal {
|
|
|
17220
17246
|
}
|
|
17221
17247
|
|
|
17222
17248
|
/**
|
|
17223
|
-
* @rc
|
|
17224
17249
|
* Contains information regarding an event after a player
|
|
17225
17250
|
* cancels breaking a block.
|
|
17226
17251
|
*/
|
|
@@ -17263,7 +17288,6 @@ export class PlayerCancelBreakingBlockAfterEvent extends BlockEvent {
|
|
|
17263
17288
|
}
|
|
17264
17289
|
|
|
17265
17290
|
/**
|
|
17266
|
-
* @rc
|
|
17267
17291
|
* Manages callbacks that are connected to when a player
|
|
17268
17292
|
* cancels breaking a block.
|
|
17269
17293
|
*/
|
|
@@ -18402,7 +18426,6 @@ export class PlayerSpawnAfterEventSignal {
|
|
|
18402
18426
|
}
|
|
18403
18427
|
|
|
18404
18428
|
/**
|
|
18405
|
-
* @rc
|
|
18406
18429
|
* Contains information regarding an event after a player
|
|
18407
18430
|
* starts breaking a block.
|
|
18408
18431
|
*/
|
|
@@ -18438,7 +18461,6 @@ export class PlayerStartBreakingBlockAfterEvent extends BlockEvent {
|
|
|
18438
18461
|
}
|
|
18439
18462
|
|
|
18440
18463
|
/**
|
|
18441
|
-
* @rc
|
|
18442
18464
|
* Manages callbacks that are connected to when a player starts
|
|
18443
18465
|
* breaking a block.
|
|
18444
18466
|
*/
|
|
@@ -20144,7 +20166,6 @@ export class SmeltItemFunction extends LootItemFunction {
|
|
|
20144
20166
|
export class SoundInstance {
|
|
20145
20167
|
private constructor();
|
|
20146
20168
|
/**
|
|
20147
|
-
* @rc
|
|
20148
20169
|
* @remarks
|
|
20149
20170
|
* Stops this sound instance from playing.
|
|
20150
20171
|
*
|
|
@@ -22278,7 +22299,6 @@ export class WorldAfterEvents {
|
|
|
22278
22299
|
*/
|
|
22279
22300
|
readonly playerButtonInput: PlayerButtonInputAfterEventSignal;
|
|
22280
22301
|
/**
|
|
22281
|
-
* @rc
|
|
22282
22302
|
* @remarks
|
|
22283
22303
|
* This event fires when a player cancels breaking a block.
|
|
22284
22304
|
*
|
|
@@ -22392,7 +22412,6 @@ export class WorldAfterEvents {
|
|
|
22392
22412
|
*/
|
|
22393
22413
|
readonly playerSpawn: PlayerSpawnAfterEventSignal;
|
|
22394
22414
|
/**
|
|
22395
|
-
* @rc
|
|
22396
22415
|
* @remarks
|
|
22397
22416
|
* This event fires when a player starts breaking a block.
|
|
22398
22417
|
*
|
|
@@ -22653,7 +22672,6 @@ export interface BiomeFilter {
|
|
|
22653
22672
|
}
|
|
22654
22673
|
|
|
22655
22674
|
/**
|
|
22656
|
-
* @rc
|
|
22657
22675
|
* Contains additional options for searches for the
|
|
22658
22676
|
* dimension.findNearestBiome API.
|
|
22659
22677
|
*/
|
|
@@ -24612,7 +24630,6 @@ export interface PlayerAimAssistSettings {
|
|
|
24612
24630
|
}
|
|
24613
24631
|
|
|
24614
24632
|
/**
|
|
24615
|
-
* @rc
|
|
24616
24633
|
* An interface that is passed into {@link
|
|
24617
24634
|
* PlayerStartBreakingBlockAfterEventSignal.subscribe} or
|
|
24618
24635
|
* {@link PlayerCancelBreakingBlockAfterEventSignal.subscribe}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.9.0
|
|
3
|
+
"version": "2.9.0",
|
|
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
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|