@minecraft/server 2.2.0-rc.1.21.120-preview.23 → 2.2.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 +5 -22
- 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.
|
|
@@ -114,7 +113,6 @@ export enum BlockVolumeIntersection {
|
|
|
114
113
|
}
|
|
115
114
|
|
|
116
115
|
/**
|
|
117
|
-
* @rc
|
|
118
116
|
* An enum of error reasons relating to using {@link
|
|
119
117
|
* ItemBookComponent}.
|
|
120
118
|
*/
|
|
@@ -1936,7 +1934,6 @@ export enum InputPermissionCategory {
|
|
|
1936
1934
|
*/
|
|
1937
1935
|
export enum ItemComponentTypes {
|
|
1938
1936
|
/**
|
|
1939
|
-
* @rc
|
|
1940
1937
|
* @remarks
|
|
1941
1938
|
* The minecraft:book component.
|
|
1942
1939
|
*
|
|
@@ -4811,7 +4808,6 @@ export class Camera {
|
|
|
4811
4808
|
*/
|
|
4812
4809
|
setDefaultCamera(cameraPreset: string, easeOptions?: EaseOptions): void;
|
|
4813
4810
|
/**
|
|
4814
|
-
* @rc
|
|
4815
4811
|
* @remarks
|
|
4816
4812
|
* This function can't be called in read-only mode.
|
|
4817
4813
|
*
|
|
@@ -5475,7 +5471,6 @@ export class ContainerSlot {
|
|
|
5475
5471
|
*/
|
|
5476
5472
|
getLore(): string[];
|
|
5477
5473
|
/**
|
|
5478
|
-
* @rc
|
|
5479
5474
|
* @remarks
|
|
5480
5475
|
* Returns the lore value - a secondary display string - for an
|
|
5481
5476
|
* ItemStack. String lore lines will be converted to a {@link
|
|
@@ -5591,8 +5586,7 @@ export class ContainerSlot {
|
|
|
5591
5586
|
* @param identifier
|
|
5592
5587
|
* The property identifier.
|
|
5593
5588
|
* @param value
|
|
5594
|
-
* Data value of the property to set.
|
|
5595
|
-
* will remove the property instead.
|
|
5589
|
+
* Data value of the property to set.
|
|
5596
5590
|
* @throws
|
|
5597
5591
|
* Throws if the slot's container is invalid.
|
|
5598
5592
|
*
|
|
@@ -7711,8 +7705,7 @@ export class Entity {
|
|
|
7711
7705
|
* @param identifier
|
|
7712
7706
|
* The property identifier.
|
|
7713
7707
|
* @param value
|
|
7714
|
-
* Data value of the property to set.
|
|
7715
|
-
* will remove the property instead.
|
|
7708
|
+
* Data value of the property to set.
|
|
7716
7709
|
* @throws This function can throw errors.
|
|
7717
7710
|
*
|
|
7718
7711
|
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
@@ -10984,7 +10977,6 @@ export class InputInfo {
|
|
|
10984
10977
|
}
|
|
10985
10978
|
|
|
10986
10979
|
/**
|
|
10987
|
-
* @rc
|
|
10988
10980
|
* When present on an item, this item is a book item. Can
|
|
10989
10981
|
* access and modify the contents of the book and sign it.
|
|
10990
10982
|
*/
|
|
@@ -12237,7 +12229,6 @@ export class ItemStack {
|
|
|
12237
12229
|
*/
|
|
12238
12230
|
getLore(): string[];
|
|
12239
12231
|
/**
|
|
12240
|
-
* @rc
|
|
12241
12232
|
* @remarks
|
|
12242
12233
|
* Returns the lore value - a secondary display string - for an
|
|
12243
12234
|
* ItemStack. String lore lines will be converted to a {@link
|
|
@@ -12386,8 +12377,7 @@ export class ItemStack {
|
|
|
12386
12377
|
* @param identifier
|
|
12387
12378
|
* The property identifier.
|
|
12388
12379
|
* @param value
|
|
12389
|
-
* Data value of the property to set.
|
|
12390
|
-
* will remove the property instead.
|
|
12380
|
+
* Data value of the property to set.
|
|
12391
12381
|
* @throws
|
|
12392
12382
|
* Throws if the item stack is stackable.
|
|
12393
12383
|
*
|
|
@@ -12993,7 +12983,6 @@ export class ListBlockVolume extends BlockVolumeBase {
|
|
|
12993
12983
|
}
|
|
12994
12984
|
|
|
12995
12985
|
/**
|
|
12996
|
-
* @rc
|
|
12997
12986
|
* Manager for Loot Table related APIs. Allows for generation
|
|
12998
12987
|
* of drops from blocks and entities according to their loot
|
|
12999
12988
|
* tables.
|
|
@@ -13441,7 +13430,7 @@ export class Player extends Entity {
|
|
|
13441
13430
|
* The Entity whose Entity Property overrides are being
|
|
13442
13431
|
* cleared.
|
|
13443
13432
|
* @throws
|
|
13444
|
-
* Throws if the
|
|
13433
|
+
* Throws if the entity is invalid.
|
|
13445
13434
|
*/
|
|
13446
13435
|
clearPropertyOverridesForEntity(targetEntity: Entity): void;
|
|
13447
13436
|
/**
|
|
@@ -17301,7 +17290,6 @@ export class World {
|
|
|
17301
17290
|
*/
|
|
17302
17291
|
getEntity(id: string): Entity | undefined;
|
|
17303
17292
|
/**
|
|
17304
|
-
* @rc
|
|
17305
17293
|
* @remarks
|
|
17306
17294
|
* Returns a manager capable of generating loot from an
|
|
17307
17295
|
* assortment of sources.
|
|
@@ -17457,8 +17445,7 @@ export class World {
|
|
|
17457
17445
|
* @param identifier
|
|
17458
17446
|
* The property identifier.
|
|
17459
17447
|
* @param value
|
|
17460
|
-
* Data value of the property to set.
|
|
17461
|
-
* will remove the property instead.
|
|
17448
|
+
* Data value of the property to set.
|
|
17462
17449
|
* @throws
|
|
17463
17450
|
* Throws if the given dynamic property identifier is not
|
|
17464
17451
|
* defined.
|
|
@@ -18396,7 +18383,6 @@ export interface CameraFixedBoomOptions {
|
|
|
18396
18383
|
}
|
|
18397
18384
|
|
|
18398
18385
|
/**
|
|
18399
|
-
* @rc
|
|
18400
18386
|
* Used to change the field of view of the current camera.
|
|
18401
18387
|
*/
|
|
18402
18388
|
export interface CameraFovOptions {
|
|
@@ -20226,7 +20212,6 @@ export class BlockCustomComponentReloadVersionError extends Error {
|
|
|
20226
20212
|
}
|
|
20227
20213
|
|
|
20228
20214
|
/**
|
|
20229
|
-
* @rc
|
|
20230
20215
|
* Errors that can be thrown when using {@link
|
|
20231
20216
|
* ItemBookComponent}.
|
|
20232
20217
|
*/
|
|
@@ -20244,7 +20229,6 @@ export class BookError extends Error {
|
|
|
20244
20229
|
}
|
|
20245
20230
|
|
|
20246
20231
|
/**
|
|
20247
|
-
* @rc
|
|
20248
20232
|
* The error called if page content being set on an {@link
|
|
20249
20233
|
* ItemBookComponent} are invalid ie. exceeding the maximum
|
|
20250
20234
|
* page length.
|
|
@@ -20380,7 +20364,6 @@ export class InvalidEntityError extends Error {
|
|
|
20380
20364
|
}
|
|
20381
20365
|
|
|
20382
20366
|
/**
|
|
20383
|
-
* @rc
|
|
20384
20367
|
* The error called when an item is invalid. This can occur
|
|
20385
20368
|
* when accessing components on a removed item.
|
|
20386
20369
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.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
|
}
|