@minecraft/server 2.10.0-rc.1.26.60-preview.21 → 2.10.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.
Files changed (3) hide show
  1. package/README.md +0 -2
  2. package/index.d.ts +0 -63
  3. 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.
@@ -47,14 +46,8 @@ export enum AimAssistTargetMode {
47
46
  * function Block.getComponent.
48
47
  */
49
48
  export enum BlockComponentTypes {
50
- /**
51
- * @rc
52
- */
53
49
  DynamicProperties = 'minecraft:dynamic_properties',
54
50
  FluidContainer = 'minecraft:fluid_container',
55
- /**
56
- * @rc
57
- */
58
51
  Instrument = 'minecraft:instrument_sound',
59
52
  /**
60
53
  * @remarks
@@ -202,7 +195,6 @@ export enum ButtonState {
202
195
  }
203
196
 
204
197
  /**
205
- * @rc
206
198
  * Represents the type of shake to apply to the camera.
207
199
  */
208
200
  export enum CameraShakeType {
@@ -221,7 +213,6 @@ export enum CameraShakeType {
221
213
  }
222
214
 
223
215
  /**
224
- * @rc
225
216
  * An enumeration for the clone modes used when cloning blocks.
226
217
  */
227
218
  export enum CloneMode {
@@ -2222,9 +2213,6 @@ export enum InputPermissionCategory {
2222
2213
  * function ItemStack.getComponent.
2223
2214
  */
2224
2215
  export enum ItemComponentTypes {
2225
- /**
2226
- * @rc
2227
- */
2228
2216
  BlockDynamicProperties = 'minecraft:block_actor_dynamic_properties',
2229
2217
  /**
2230
2218
  * @remarks
@@ -4883,7 +4871,6 @@ export class BlockCustomComponentInstance extends BlockComponent {
4883
4871
  }
4884
4872
 
4885
4873
  /**
4886
- * @rc
4887
4874
  * Represents the dynamic properties of a block in the world.
4888
4875
  * Only available with block entities. Up to 1KB per content
4889
4876
  * pack, per block entity in their dynamic properties storage.
@@ -5123,7 +5110,6 @@ export class BlockFluidContainerComponent extends BlockComponent {
5123
5110
  }
5124
5111
 
5125
5112
  /**
5126
- * @rc
5127
5113
  * Represents the instruments a block can have assigned to it's
5128
5114
  * up and down faces.
5129
5115
  */
@@ -6169,7 +6155,6 @@ export class BlockVolumeBase {
6169
6155
  */
6170
6156
  getCapacity(): number;
6171
6157
  /**
6172
- * @rc
6173
6158
  * @remarks
6174
6159
  * Returns a list of block positions within the volume that are
6175
6160
  * closest to a given location, sorted by distance (nearest
@@ -6185,7 +6170,6 @@ export class BlockVolumeBase {
6185
6170
  */
6186
6171
  getClosest(count: number, location: Vector3): Vector3[];
6187
6172
  /**
6188
- * @rc
6189
6173
  * @remarks
6190
6174
  * Returns a list of block positions within the volume that are
6191
6175
  * farthest from a given location, sorted by distance (farthest
@@ -6360,7 +6344,6 @@ export class Camera {
6360
6344
  */
6361
6345
  readonly isValid: boolean;
6362
6346
  /**
6363
- * @rc
6364
6347
  * @remarks
6365
6348
  * @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
6366
6349
  *
@@ -6460,7 +6443,6 @@ export class Camera {
6460
6443
  */
6461
6444
  setFov(fovCameraOptions?: CameraFovOptions): void;
6462
6445
  /**
6463
- * @rc
6464
6446
  * @remarks
6465
6447
  * @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
6466
6448
  *
@@ -7589,7 +7571,6 @@ export class Dimension {
7589
7571
  options?: BiomeSearchOptions,
7590
7572
  ): Vector3 | undefined;
7591
7573
  /**
7592
- * @rc
7593
7574
  * @remarks
7594
7575
  * Clones a region of blocks from one area of the dimension to
7595
7576
  * another.
@@ -7860,7 +7841,6 @@ export class Dimension {
7860
7841
  */
7861
7842
  getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined;
7862
7843
  /**
7863
- * @rc
7864
7844
  * @remarks
7865
7845
  * Gets all the blocks in a volume that satisfy the filter.
7866
7846
  *
@@ -12878,7 +12858,6 @@ export class EntitySpawnAfterEventSignal {
12878
12858
  }
12879
12859
 
12880
12860
  /**
12881
- * @rc
12882
12861
  * Contains data related to an entity beginning to sneak.
12883
12862
  */
12884
12863
  export class EntityStartSneakingAfterEvent {
@@ -12892,7 +12871,6 @@ export class EntityStartSneakingAfterEvent {
12892
12871
  }
12893
12872
 
12894
12873
  /**
12895
- * @rc
12896
12874
  * Manages callbacks that are connected to when an entity
12897
12875
  * begins sneaking.
12898
12876
  */
@@ -12926,7 +12904,6 @@ export class EntityStartSneakingAfterEventSignal {
12926
12904
  }
12927
12905
 
12928
12906
  /**
12929
- * @rc
12930
12907
  * Contains data related to an entity stopping sneaking.
12931
12908
  */
12932
12909
  export class EntityStopSneakingAfterEvent {
@@ -12940,7 +12917,6 @@ export class EntityStopSneakingAfterEvent {
12940
12917
  }
12941
12918
 
12942
12919
  /**
12943
- * @rc
12944
12920
  * Manages callbacks that are connected to when an entity stops
12945
12921
  * sneaking.
12946
12922
  */
@@ -13061,7 +13037,6 @@ export class EntityTameableComponent extends EntityComponent {
13061
13037
  }
13062
13038
 
13063
13039
  /**
13064
- * @rc
13065
13040
  * Contains data related to an entity being tamed.
13066
13041
  */
13067
13042
  export class EntityTamedAfterEvent {
@@ -13071,7 +13046,6 @@ export class EntityTamedAfterEvent {
13071
13046
  }
13072
13047
 
13073
13048
  /**
13074
- * @rc
13075
13049
  * Manages callbacks that are connected to when an entity is
13076
13050
  * tamed.
13077
13051
  */
@@ -13099,7 +13073,6 @@ export class EntityTamedAfterEventSignal {
13099
13073
  }
13100
13074
 
13101
13075
  /**
13102
- * @rc
13103
13076
  * Contains information regarding an event before an entity is
13104
13077
  * tamed.
13105
13078
  */
@@ -13126,7 +13099,6 @@ export class EntityTamedBeforeEvent {
13126
13099
  }
13127
13100
 
13128
13101
  /**
13129
- * @rc
13130
13102
  * Manages callbacks that are connected to before an entity is
13131
13103
  * tamed.
13132
13104
  */
@@ -13677,7 +13649,6 @@ export class FluidContainer {
13677
13649
  }
13678
13650
 
13679
13651
  /**
13680
- * @rc
13681
13652
  * Provides access to the fog definitions stack of a player
13682
13653
  * entity, allowing scripts to push, pop, remove, and query
13683
13654
  * active fog definitions.
@@ -14152,7 +14123,6 @@ export class ISerializable {
14152
14123
  }
14153
14124
 
14154
14125
  /**
14155
- * @rc
14156
14126
  * Represents the dynamic properties of a block. Only available
14157
14127
  * from block entities. Up to 1KBytes of data can be stored per
14158
14128
  * content pack per block entity in their dynamic properties
@@ -17164,7 +17134,6 @@ export class Player extends Entity {
17164
17134
  */
17165
17135
  commandPermissionLevel: CommandPermissionLevel;
17166
17136
  /**
17167
- * @rc
17168
17137
  * @remarks
17169
17138
  * Contains methods for manipulating the render distance fog
17170
17139
  * settings of a Player.
@@ -19623,7 +19592,6 @@ export class PrimitiveShapesManager {
19623
19592
  */
19624
19593
  addText(text: TextPrimitive, dimension?: Dimension): void;
19625
19594
  /**
19626
- * @rc
19627
19595
  * @remarks
19628
19596
  * Fetches and queries all primitive shapes stored in the
19629
19597
  * manager and returns the results as an array of shape
@@ -20871,7 +20839,6 @@ export class SmeltItemFunction extends LootItemFunction {
20871
20839
  }
20872
20840
 
20873
20841
  /**
20874
- * @rc
20875
20842
  * Contains information about a sound thats declared duration
20876
20843
  * elapsed.
20877
20844
  */
@@ -20888,7 +20855,6 @@ export class SoundCompletedAfterEvent {
20888
20855
  }
20889
20856
 
20890
20857
  /**
20891
- * @rc
20892
20858
  * Manages callbacks that are invoked when a tracked sound's
20893
20859
  * declared duration elapses.
20894
20860
  */
@@ -20925,7 +20891,6 @@ export class SoundCompletedAfterEventSignal {
20925
20891
  export class SoundDefinition {
20926
20892
  private constructor();
20927
20893
  /**
20928
- * @rc
20929
20894
  * @remarks
20930
20895
  * Duration metadata declared for this sound. Undefined when
20931
20896
  * the sound definition does not specify a duration.
@@ -20933,7 +20898,6 @@ export class SoundDefinition {
20933
20898
  */
20934
20899
  readonly durationInfo?: SoundDefinitionDurationInfo;
20935
20900
  /**
20936
- * @rc
20937
20901
  * @remarks
20938
20902
  * Music metadata declared for this sound. Undefined when the
20939
20903
  * sound definition does not specify a music_info block.
@@ -20941,7 +20905,6 @@ export class SoundDefinition {
20941
20905
  */
20942
20906
  readonly musicInfo?: SoundDefinitionMusicInfo;
20943
20907
  /**
20944
- * @rc
20945
20908
  * @remarks
20946
20909
  * Identifier of the sound event this definition declares, in
20947
20910
  * the form 'namespace:name'.
@@ -20949,7 +20912,6 @@ export class SoundDefinition {
20949
20912
  */
20950
20913
  readonly soundEventId: string;
20951
20914
  /**
20952
- * @rc
20953
20915
  * @remarks
20954
20916
  * Tag metadata declared for this sound, as a record mapping
20955
20917
  * each tag name to its declared values. A tag declared with a
@@ -20962,7 +20924,6 @@ export class SoundDefinition {
20962
20924
  }
20963
20925
 
20964
20926
  /**
20965
- * @rc
20966
20927
  * Provides read-only access to the sound definitions loaded
20967
20928
  * for the current world.
20968
20929
  */
@@ -20989,7 +20950,6 @@ export class SoundDefinitionRegistry {
20989
20950
  }
20990
20951
 
20991
20952
  /**
20992
- * @rc
20993
20953
  * Provides duration and playback information for a sound whose
20994
20954
  * definition declares a duration.
20995
20955
  */
@@ -21033,28 +20993,24 @@ export class SoundDurationInfo {
21033
20993
  export class SoundInstance {
21034
20994
  private constructor();
21035
20995
  /**
21036
- * @rc
21037
20996
  * @remarks
21038
20997
  * Gets duration and playback information for this sound.
21039
20998
  *
21040
20999
  */
21041
21000
  readonly durationInfo?: SoundDurationInfo;
21042
21001
  /**
21043
- * @rc
21044
21002
  * @remarks
21045
21003
  * Unique identifier of this sound instance.
21046
21004
  *
21047
21005
  */
21048
21006
  readonly id: string;
21049
21007
  /**
21050
- * @rc
21051
21008
  * @remarks
21052
21009
  * Gets the player this sound was played for.
21053
21010
  *
21054
21011
  */
21055
21012
  readonly recipient?: Player;
21056
21013
  /**
21057
- * @rc
21058
21014
  * @remarks
21059
21015
  * Gets the identifier of the sound event this instance was
21060
21016
  * started with.
@@ -22450,7 +22406,6 @@ export class World {
22450
22406
  */
22451
22407
  readonly seed: string;
22452
22408
  /**
22453
- * @rc
22454
22409
  * @remarks
22455
22410
  * Provides read-only access to the sound definitions loaded
22456
22411
  * for this world.
@@ -23084,7 +23039,6 @@ export class WorldAfterEvents {
23084
23039
  */
23085
23040
  readonly entitySpawn: EntitySpawnAfterEventSignal;
23086
23041
  /**
23087
- * @rc
23088
23042
  * @remarks
23089
23043
  * This event fires when an entity starts sneaking.
23090
23044
  *
@@ -23093,7 +23047,6 @@ export class WorldAfterEvents {
23093
23047
  */
23094
23048
  readonly entityStartSneaking: EntityStartSneakingAfterEventSignal;
23095
23049
  /**
23096
- * @rc
23097
23050
  * @remarks
23098
23051
  * This event fires when an entity stops sneaking.
23099
23052
  *
@@ -23102,7 +23055,6 @@ export class WorldAfterEvents {
23102
23055
  */
23103
23056
  readonly entityStopSneaking: EntityStopSneakingAfterEventSignal;
23104
23057
  /**
23105
- * @rc
23106
23058
  * @remarks
23107
23059
  * This event fires when an entity is tamed.
23108
23060
  *
@@ -23392,7 +23344,6 @@ export class WorldAfterEvents {
23392
23344
  */
23393
23345
  readonly projectileHitEntity: ProjectileHitEntityAfterEventSignal;
23394
23346
  /**
23395
- * @rc
23396
23347
  * @remarks
23397
23348
  * A tracked sound's declared duration elapsed.
23398
23349
  *
@@ -23481,7 +23432,6 @@ export class WorldBeforeEvents {
23481
23432
  */
23482
23433
  readonly entityRemove: EntityRemoveBeforeEventSignal;
23483
23434
  /**
23484
- * @rc
23485
23435
  * @remarks
23486
23436
  * Fires before an entity is tamed.
23487
23437
  *
@@ -23898,7 +23848,6 @@ export interface BlockHitInformation {
23898
23848
  }
23899
23849
 
23900
23850
  /**
23901
- * @rc
23902
23851
  * Options for querying blocks in a volume. Extends BlockFilter
23903
23852
  * with additional sorting and limiting options based on
23904
23853
  * distance from a location.
@@ -24102,7 +24051,6 @@ export interface CameraSetRotOptions {
24102
24051
  }
24103
24052
 
24104
24053
  /**
24105
- * @rc
24106
24054
  * Options for applying a camera shake effect to a player's
24107
24055
  * camera via `Camera.addShake`. Each call to `addShake` queues
24108
24056
  * a new independent shake event for the specified `type`;
@@ -25147,7 +25095,6 @@ export interface EntityRaycastOptions extends EntityFilter {
25147
25095
  }
25148
25096
 
25149
25097
  /**
25150
- * @rc
25151
25098
  * Options used to filter entity start sneaking and stop
25152
25099
  * sneaking events.
25153
25100
  */
@@ -25156,7 +25103,6 @@ export interface EntitySneakingChangedEventOptions {
25156
25103
  }
25157
25104
 
25158
25105
  /**
25159
- * @rc
25160
25106
  * Contains options for filtering entity tamed events.
25161
25107
  */
25162
25108
  export interface EntityTamedEventOptions {
@@ -25780,7 +25726,6 @@ export interface PlayerVisibilityRules extends EntityVisibilityRules {
25780
25726
  }
25781
25727
 
25782
25728
  /**
25783
- * @rc
25784
25729
  * Contains optional filters that control which primitive
25785
25730
  * shapes are returned from a primitive shapes query.
25786
25731
  */
@@ -26138,7 +26083,6 @@ export interface ScriptEventMessageFilterOptions {
26138
26083
  }
26139
26084
 
26140
26085
  /**
26141
- * @rc
26142
26086
  * Duration metadata declared in a sound definition.
26143
26087
  */
26144
26088
  export interface SoundDefinitionDurationInfo {
@@ -26152,7 +26096,6 @@ export interface SoundDefinitionDurationInfo {
26152
26096
  }
26153
26097
 
26154
26098
  /**
26155
- * @rc
26156
26099
  * Criteria used to narrow a set of sound definitions. Each
26157
26100
  * field is optional and applies its constraint only when
26158
26101
  * defined; a definition must satisfy every defined field to
@@ -26231,7 +26174,6 @@ export interface SoundDefinitionFilter {
26231
26174
  }
26232
26175
 
26233
26176
  /**
26234
- * @rc
26235
26177
  * Music metadata declared on a sound definition. Each field is
26236
26178
  * optional and is undefined when the sound definition does not
26237
26179
  * declare a value for it.
@@ -26699,10 +26641,6 @@ export interface WaypointTextureSelector {
26699
26641
  * Contains additional options for a playSound occurrence.
26700
26642
  */
26701
26643
  export interface WorldSoundOptions {
26702
- /**
26703
- * @rc
26704
- */
26705
- isBroadcast?: boolean;
26706
26644
  /**
26707
26645
  * @remarks
26708
26646
  * Pitch of the sound played.
@@ -26893,7 +26831,6 @@ export class EntitySpawnError extends Error {
26893
26831
  }
26894
26832
 
26895
26833
  /**
26896
- * @rc
26897
26834
  * Error thrown by {@link FogSettings} operations when the fog
26898
26835
  * stack limit is exceeded or an invalid fog identifier is
26899
26836
  * provided.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "2.10.0-rc.1.26.60-preview.21",
3
+ "version": "2.10.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 || 1.26.60-preview.21"
17
+ "@minecraft/vanilla-data": ">=1.20.70"
18
18
  },
19
19
  "license": "MIT"
20
20
  }