@minecraft/server 2.8.0-rc.1.26.40-preview.23 → 2.8.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 +2 -109
  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.
@@ -781,7 +780,6 @@ export enum EntityComponentTypes {
781
780
  Color2 = 'minecraft:color2',
782
781
  CursorInventory = 'minecraft:cursor_inventory',
783
782
  /**
784
- * @rc
785
783
  * @remarks
786
784
  * Represents this entity's ender inventory properties.
787
785
  *
@@ -1439,7 +1437,6 @@ export enum EntityHealCause {
1439
1437
  */
1440
1438
  SelfHeal = 'SelfHeal',
1441
1439
  /**
1442
- * @rc
1443
1440
  * @remarks
1444
1441
  * Healing caused when Totem of Undying is activated.
1445
1442
  *
@@ -2266,7 +2263,6 @@ export enum LiquidType {
2266
2263
  }
2267
2264
 
2268
2265
  /**
2269
- * @rc
2270
2266
  * Enum representing the different reasons why a locator bar
2271
2267
  * operation may fail.
2272
2268
  */
@@ -2938,7 +2934,6 @@ export enum TintMethod {
2938
2934
  }
2939
2935
 
2940
2936
  /**
2941
- * @rc
2942
2937
  * Enum representing different texture icons that can be
2943
2938
  * displayed for waypoints on the locator bar.
2944
2939
  */
@@ -4411,7 +4406,6 @@ export class BlockComponentBlockBreakEvent extends BlockEvent {
4411
4406
  }
4412
4407
 
4413
4408
  /**
4414
- * @rc
4415
4409
  * Contains information regarding a specific block permutation
4416
4410
  * that was changed from a previous permutation.
4417
4411
  */
@@ -4674,7 +4668,6 @@ export class BlockComponentTickEvent extends BlockEvent {
4674
4668
  }
4675
4669
 
4676
4670
  /**
4677
- * @rc
4678
4671
  * Contains information regarding a specific container block
4679
4672
  * being closed.
4680
4673
  */
@@ -4692,7 +4685,6 @@ export class BlockContainerClosedAfterEvent extends BlockEvent {
4692
4685
  }
4693
4686
 
4694
4687
  /**
4695
- * @rc
4696
4688
  * Manages callbacks that are connected to when a block
4697
4689
  * container is closed.
4698
4690
  */
@@ -4726,7 +4718,6 @@ export class BlockContainerClosedAfterEventSignal {
4726
4718
  }
4727
4719
 
4728
4720
  /**
4729
- * @rc
4730
4721
  * Contains information regarding a specific container block
4731
4722
  * being opened.
4732
4723
  */
@@ -4744,7 +4735,6 @@ export class BlockContainerOpenedAfterEvent extends BlockEvent {
4744
4735
  }
4745
4736
 
4746
4737
  /**
4747
- * @rc
4748
4738
  * Manages callbacks that are connected to when a block
4749
4739
  * container is opened.
4750
4740
  */
@@ -5367,7 +5357,6 @@ export class BlockPrecipitationInteractionsComponent extends BlockComponent {
5367
5357
  */
5368
5358
  accumulatesSnow(): boolean;
5369
5359
  /**
5370
- * @rc
5371
5360
  * @remarks
5372
5361
  * Returns `true` if this block can have snow within it, like a
5373
5362
  * flower submerged in snow. Returns `false` if this block
@@ -6187,7 +6176,6 @@ export class CatmullRomSpline {
6187
6176
  export class ClientSystemInfo extends SystemInfo {
6188
6177
  private constructor();
6189
6178
  /**
6190
- * @rc
6191
6179
  * @remarks
6192
6180
  * The locale selected by the client (e.g., en_US, fr_FR,
6193
6181
  * ja_JP). Note that in most cases, server scripts should not
@@ -7510,12 +7498,8 @@ export class Dimension {
7510
7498
  * locations that satisfied the block filter.
7511
7499
  * @throws This function can throw errors.
7512
7500
  *
7513
- * {@link minecraftcommon.ArgumentOutOfBoundsError}
7514
- *
7515
7501
  * {@link Error}
7516
7502
  *
7517
- * {@link minecraftcommon.InvalidArgumentError}
7518
- *
7519
7503
  * {@link UnloadedChunksError}
7520
7504
  */
7521
7505
  getBlocks(volume: BlockVolumeBase, filter: BlockFilter, allowUnloadedChunks?: boolean): ListBlockVolume;
@@ -7772,11 +7756,9 @@ export class Dimension {
7772
7756
  * An error will be thrown if pitch is less than 0.01.
7773
7757
  * An error will be thrown if volume is less than 0.0.
7774
7758
  *
7775
- * {@link minecraftcommon.EngineError}
7776
- *
7777
7759
  * {@link minecraftcommon.PropertyOutOfBoundsError}
7778
7760
  */
7779
- playSound(soundId: string, location: Vector3, soundOptions?: WorldSoundOptions): SoundInstance;
7761
+ playSound(soundId: string, location: Vector3, soundOptions?: WorldSoundOptions): void;
7780
7762
  /**
7781
7763
  * @remarks
7782
7764
  * Runs a command synchronously using the context of the
@@ -8036,7 +8018,6 @@ export class Dimension {
8036
8018
  }
8037
8019
 
8038
8020
  /**
8039
- * @rc
8040
8021
  * Provides the functionality for registering custom
8041
8022
  * dimensions. Custom dimensions can only be registered during
8042
8023
  * the system startup event.
@@ -8584,26 +8565,6 @@ export class Entity {
8584
8565
  * {@link InvalidEntityError}
8585
8566
  */
8586
8567
  readonly location: Vector3;
8587
- /**
8588
- * @rc
8589
- * @remarks
8590
- * Boolean which determines if the player nameplate should be
8591
- * depth tested for visibility.
8592
- *
8593
- * This property can't be edited in restricted-execution mode.
8594
- *
8595
- */
8596
- nameplateDepthTested: boolean;
8597
- /**
8598
- * @rc
8599
- * @remarks
8600
- * Float that determines the render distance of this entity's
8601
- * nameplate.
8602
- *
8603
- * This property can't be edited in restricted-execution mode.
8604
- *
8605
- */
8606
- nameplateRenderDistance: number;
8607
8568
  /**
8608
8569
  * @remarks
8609
8570
  * Given name of the entity.
@@ -10021,7 +9982,6 @@ export class EntityComponent extends Component {
10021
9982
  }
10022
9983
 
10023
9984
  /**
10024
- * @rc
10025
9985
  * Contains information regarding a specific entity container
10026
9986
  * being closed.
10027
9987
  */
@@ -10037,7 +9997,6 @@ export class EntityContainerClosedAfterEvent {
10037
9997
  }
10038
9998
 
10039
9999
  /**
10040
- * @rc
10041
10000
  * Manages callbacks that are connected to when an entity
10042
10001
  * container is closed.
10043
10002
  */
@@ -10071,7 +10030,6 @@ export class EntityContainerClosedAfterEventSignal {
10071
10030
  }
10072
10031
 
10073
10032
  /**
10074
- * @rc
10075
10033
  * Contains information regarding a specific entity container
10076
10034
  * being opened.
10077
10035
  */
@@ -10087,7 +10045,6 @@ export class EntityContainerOpenedAfterEvent {
10087
10045
  }
10088
10046
 
10089
10047
  /**
10090
- * @rc
10091
10048
  * Manages callbacks that are connected to when an entity
10092
10049
  * container is opened.
10093
10050
  */
@@ -10214,7 +10171,6 @@ export class EntityDieAfterEventSignal {
10214
10171
  }
10215
10172
 
10216
10173
  /**
10217
- * @rc
10218
10174
  * Represents this entity's ender inventory properties. This
10219
10175
  * component is always present on players and any items in its
10220
10176
  * container will display for the player when they access an
@@ -12733,7 +12689,6 @@ export class EntityUnderwaterMovementComponent extends EntityAttributeComponent
12733
12689
  }
12734
12690
 
12735
12691
  /**
12736
- * @rc
12737
12692
  * Contains information related to firing of a data driven
12738
12693
  * entity version upgrade.
12739
12694
  */
@@ -12761,7 +12716,6 @@ export class EntityUpgradeAfterEvent {
12761
12716
  }
12762
12717
 
12763
12718
  /**
12764
- * @rc
12765
12719
  * Contains event registration related to firing of a data
12766
12720
  * driven entity version upgrade.
12767
12721
  */
@@ -12823,7 +12777,6 @@ export class EntityWantsJockeyComponent extends EntityComponent {
12823
12777
  }
12824
12778
 
12825
12779
  /**
12826
- * @rc
12827
12780
  * Waypoint that tracks an entity's position. The waypoint
12828
12781
  * automatically updates as the entity moves and becomes
12829
12782
  * invalid when the entity is removed.
@@ -15622,7 +15575,6 @@ export class ListBlockVolume extends BlockVolumeBase {
15622
15575
  }
15623
15576
 
15624
15577
  /**
15625
- * @rc
15626
15578
  * Waypoint that points to a fixed location in the world.
15627
15579
  * Unlike entity waypoints, location waypoints always remain
15628
15580
  * valid and their position can be updated.
@@ -15650,7 +15602,6 @@ export class LocationWaypoint extends Waypoint {
15650
15602
  }
15651
15603
 
15652
15604
  /**
15653
- * @rc
15654
15605
  * Manages the collection of waypoints displayed on a player's
15655
15606
  * locator bar. Allows adding, removing, and querying waypoints
15656
15607
  * with a maximum capacity limit.
@@ -16478,7 +16429,6 @@ export class Player extends Entity {
16478
16429
  */
16479
16430
  readonly level: number;
16480
16431
  /**
16481
- * @rc
16482
16432
  * @remarks
16483
16433
  * The player's Locator Bar. This property is used for managing
16484
16434
  * waypoints displayed on the HUD.
@@ -16643,10 +16593,6 @@ export class Player extends Entity {
16643
16593
  * @param soundOptions
16644
16594
  * Additional optional options for the sound.
16645
16595
  * @throws This function can throw errors.
16646
- *
16647
- * {@link minecraftcommon.EngineError}
16648
- *
16649
- * {@link Error}
16650
16596
  * @example playMusicAndSound.ts
16651
16597
  * ```typescript
16652
16598
  * import { world, MusicOptions, WorldSoundOptions, PlayerSoundOptions, DimensionLocation } from '@minecraft/server';
@@ -16676,7 +16622,7 @@ export class Player extends Entity {
16676
16622
  * }
16677
16623
  * ```
16678
16624
  */
16679
- playSound(soundId: string, soundOptions?: PlayerSoundOptions): SoundInstance;
16625
+ playSound(soundId: string, soundOptions?: PlayerSoundOptions): void;
16680
16626
  /**
16681
16627
  * @remarks
16682
16628
  * Queues an additional music track that only this particular
@@ -18365,7 +18311,6 @@ export class PlayerSwingStartAfterEventSignal {
18365
18311
  }
18366
18312
 
18367
18313
  /**
18368
- * @rc
18369
18314
  * Waypoint that tracks a player's position. Extends {@link
18370
18315
  * EntityWaypoint} with additional player-specific visibility
18371
18316
  * rules such as hidden state and spectator mode.
@@ -18599,7 +18544,6 @@ export class PressurePlatePushAfterEventSignal {
18599
18544
  }
18600
18545
 
18601
18546
  /**
18602
- * @rc
18603
18547
  * The base class for a text primitive. Represents an object in
18604
18548
  * the world and its base properties.
18605
18549
  */
@@ -18703,7 +18647,6 @@ export class PrimitiveShape {
18703
18647
  }
18704
18648
 
18705
18649
  /**
18706
- * @rc
18707
18650
  * Primitive Shapes class used to allow adding and removing
18708
18651
  * text primitives to the world.
18709
18652
  */
@@ -19964,19 +19907,6 @@ export class SmeltItemFunction extends LootItemFunction {
19964
19907
  private constructor();
19965
19908
  }
19966
19909
 
19967
- /**
19968
- * Represents a handle to a sound that has been played. The
19969
- * handle is required to control the sound while it is playing
19970
- * (for example, to call `stop`, `setVolume`, `setPitch`,
19971
- * `fade`, or `seekTo`). Infinitely-looping sounds (started
19972
- * with `loop: -1`) stop automatically when the last
19973
- * `SoundInstance` reference is dropped; retain the handle for
19974
- * as long as the sound should keep playing.
19975
- */
19976
- export class SoundInstance {
19977
- private constructor();
19978
- }
19979
-
19980
19910
  /**
19981
19911
  * Loot item function that applies one or several predefined
19982
19912
  * enchants to the dropped item.
@@ -20028,7 +19958,6 @@ export class StartupEvent {
20028
19958
  */
20029
19959
  readonly customCommandRegistry: CustomCommandRegistry;
20030
19960
  /**
20031
- * @rc
20032
19961
  * @remarks
20033
19962
  * This property can be read in early-execution mode.
20034
19963
  *
@@ -20284,7 +20213,6 @@ export class StructureManager {
20284
20213
  */
20285
20214
  get(identifier: string): Structure | undefined;
20286
20215
  /**
20287
- * @rc
20288
20216
  * @remarks
20289
20217
  * Returns a list of all structures contained in behavior
20290
20218
  * packs. Does not include structures saved to the world or in
@@ -20771,7 +20699,6 @@ export class TargetBlockHitAfterEventSignal {
20771
20699
  }
20772
20700
 
20773
20701
  /**
20774
- * @rc
20775
20702
  * A primitive shape class that represents a text label in the
20776
20703
  * world with a background.
20777
20704
  */
@@ -21079,7 +21006,6 @@ export class TripWireTripAfterEventSignal {
21079
21006
  }
21080
21007
 
21081
21008
  /**
21082
- * @rc
21083
21009
  * Base class for waypoints displayed on the player's locator
21084
21010
  * bar. Waypoints can track locations or entities and are
21085
21011
  * rendered with customizable textures and colors.
@@ -21339,7 +21265,6 @@ export class World {
21339
21265
  readonly gameRules: GameRules;
21340
21266
  readonly isHardcore: boolean;
21341
21267
  /**
21342
- * @rc
21343
21268
  * @remarks
21344
21269
  * Manager for adding and removing primitive text objects in
21345
21270
  * the world.
@@ -21566,7 +21491,6 @@ export class World {
21566
21491
  */
21567
21492
  getMoonPhase(): MoonPhase;
21568
21493
  /**
21569
- * @rc
21570
21494
  * @remarks
21571
21495
  * Returns a map of pack setting name and value pairs.
21572
21496
  *
@@ -21829,7 +21753,6 @@ export class World {
21829
21753
  export class WorldAfterEvents {
21830
21754
  private constructor();
21831
21755
  /**
21832
- * @rc
21833
21756
  * @remarks
21834
21757
  * This event fires when a block container is closed.
21835
21758
  *
@@ -21838,7 +21761,6 @@ export class WorldAfterEvents {
21838
21761
  */
21839
21762
  readonly blockContainerClosed: BlockContainerClosedAfterEventSignal;
21840
21763
  /**
21841
- * @rc
21842
21764
  * @remarks
21843
21765
  * This event fires when a block container is opened.
21844
21766
  *
@@ -21884,7 +21806,6 @@ export class WorldAfterEvents {
21884
21806
  */
21885
21807
  readonly effectAdd: EffectAddAfterEventSignal;
21886
21808
  /**
21887
- * @rc
21888
21809
  * @remarks
21889
21810
  * This event fires when an entity container is closed.
21890
21811
  *
@@ -21893,7 +21814,6 @@ export class WorldAfterEvents {
21893
21814
  */
21894
21815
  readonly entityContainerClosed: EntityContainerClosedAfterEventSignal;
21895
21816
  /**
21896
- * @rc
21897
21817
  * @remarks
21898
21818
  * This event fires when an entity container is opened.
21899
21819
  *
@@ -21991,7 +21911,6 @@ export class WorldAfterEvents {
21991
21911
  */
21992
21912
  readonly entitySpawn: EntitySpawnAfterEventSignal;
21993
21913
  /**
21994
- * @rc
21995
21914
  * @remarks
21996
21915
  * This property can be read in early-execution mode.
21997
21916
  *
@@ -22502,7 +22421,6 @@ export interface BlockBoundingBox {
22502
22421
  }
22503
22422
 
22504
22423
  /**
22505
- * @rc
22506
22424
  * Options used to filter block container access events.
22507
22425
  */
22508
22426
  export interface BlockContainerAccessEventOptions {
@@ -22534,9 +22452,6 @@ export interface BlockCustomComponent {
22534
22452
  *
22535
22453
  */
22536
22454
  beforeOnPlayerPlace?: (arg0: BlockComponentPlayerPlaceBeforeEvent, arg1: CustomComponentParameters) => void;
22537
- /**
22538
- * @rc
22539
- */
22540
22455
  onBlockStateChange?: (arg0: BlockComponentBlockStateChangeEvent, arg1: CustomComponentParameters) => void;
22541
22456
  /**
22542
22457
  * @remarks
@@ -22926,7 +22841,6 @@ export interface CameraTargetOptions {
22926
22841
  }
22927
22842
 
22928
22843
  /**
22929
- * @rc
22930
22844
  * Represents the source of a container access.
22931
22845
  */
22932
22846
  export interface ContainerAccessSource {
@@ -22939,7 +22853,6 @@ export interface ContainerAccessSource {
22939
22853
  }
22940
22854
 
22941
22855
  /**
22942
- * @rc
22943
22856
  * Options for use when filtering container access sources.
22944
22857
  */
22945
22858
  export interface ContainerAccessSourceFilter {
@@ -23069,9 +22982,6 @@ export interface CustomCommandResult {
23069
22982
  status: CustomCommandStatus;
23070
22983
  }
23071
22984
 
23072
- /**
23073
- * @rc
23074
- */
23075
22985
  export interface CustomTexture {
23076
22986
  /**
23077
22987
  * @remarks
@@ -23226,7 +23136,6 @@ export interface EntityApplyDamageOptions {
23226
23136
  }
23227
23137
 
23228
23138
  /**
23229
- * @rc
23230
23139
  * Options used to filter entity container access events.
23231
23140
  */
23232
23141
  export interface EntityContainerAccessEventOptions {
@@ -23919,7 +23828,6 @@ export interface EntityRaycastOptions extends EntityFilter {
23919
23828
  }
23920
23829
 
23921
23830
  /**
23922
- * @rc
23923
23831
  * Controls when a waypoint is visible based on the state of
23924
23832
  * the entity it tracks. These rules allow filtering waypoint
23925
23833
  * visibility by entity conditions like sneaking, invisibility,
@@ -24475,7 +24383,6 @@ export interface PlayerSwingEventOptions {
24475
24383
  }
24476
24384
 
24477
24385
  /**
24478
- * @rc
24479
24386
  * Controls when a waypoint is visible based on player-specific
24480
24387
  * states. Extends {@link EntityVisibilityRules} with
24481
24388
  * additional rules for player-only states like hidden mode and
@@ -25204,7 +25111,6 @@ export interface VectorXZ {
25204
25111
  }
25205
25112
 
25206
25113
  /**
25207
- * @rc
25208
25114
  * Defines a texture and the distance range in which it should
25209
25115
  * be displayed. Used within a {@link WaypointTextureSelector}
25210
25116
  * to create distance-based texture switching.
@@ -25239,7 +25145,6 @@ export interface WaypointTextureBounds {
25239
25145
  }
25240
25146
 
25241
25147
  /**
25242
- * @rc
25243
25148
  * Defines how waypoint textures change based on distance.
25244
25149
  * Contains a list of texture bounds that determine which
25245
25150
  * texture is displayed at different distance ranges.
@@ -25393,7 +25298,6 @@ export class CustomComponentNameError extends Error {
25393
25298
  }
25394
25299
 
25395
25300
  /**
25396
- * @rc
25397
25301
  * Thrown when trying to register a custom dimension with a
25398
25302
  * name that has already been registered.
25399
25303
  */
@@ -25403,7 +25307,6 @@ export class CustomDimensionAlreadyRegisteredError extends Error {
25403
25307
  }
25404
25308
 
25405
25309
  /**
25406
- * @rc
25407
25310
  * Thrown when trying to register a custom dimension outside of
25408
25311
  * the system startup event.
25409
25312
  */
@@ -25413,7 +25316,6 @@ export class CustomDimensionInvalidRegistryError extends Error {
25413
25316
  }
25414
25317
 
25415
25318
  /**
25416
- * @rc
25417
25319
  * Thrown when trying to register a custom dimension with a
25418
25320
  * name that contains invalid characters.
25419
25321
  */
@@ -25423,7 +25325,6 @@ export class CustomDimensionNameError extends Error {
25423
25325
  }
25424
25326
 
25425
25327
  /**
25426
- * @rc
25427
25328
  * Thrown after using the /reload command when trying to
25428
25329
  * register a custom dimension that was not previously
25429
25330
  * registered. New custom dimensions cannot be added during a
@@ -25558,7 +25459,6 @@ export class InvalidStructureError extends Error {
25558
25459
  }
25559
25460
 
25560
25461
  /**
25561
- * @rc
25562
25462
  * Error thrown when attempting to perform operations on an
25563
25463
  * invalid waypoint. A waypoint becomes invalid when it is
25564
25464
  * removed or when the entity it tracks is no longer valid.
@@ -25568,9 +25468,6 @@ export class InvalidWaypointError extends Error {
25568
25468
  private constructor();
25569
25469
  }
25570
25470
 
25571
- /**
25572
- * @rc
25573
- */
25574
25471
  // @ts-ignore Class inheritance allowed for native defined classes
25575
25472
  export class InvalidWaypointTextureSelectorError extends Error {
25576
25473
  private constructor();
@@ -25633,7 +25530,6 @@ export class LocationOutOfWorldBoundariesError extends Error {
25633
25530
  }
25634
25531
 
25635
25532
  /**
25636
- * @rc
25637
25533
  * Error thrown when a locator bar operation fails. Contains a
25638
25534
  * reason code indicating the specific cause of the error.
25639
25535
  */
@@ -25671,9 +25567,6 @@ export class PlaceJigsawError extends Error {
25671
25567
  private constructor();
25672
25568
  }
25673
25569
 
25674
- /**
25675
- * @rc
25676
- */
25677
25570
  // @ts-ignore Class inheritance allowed for native defined classes
25678
25571
  export class PrimitiveShapeError extends Error {
25679
25572
  private constructor();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "2.8.0-rc.1.26.40-preview.23",
3
+ "version": "2.8.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.40-preview.23"
17
+ "@minecraft/vanilla-data": ">=1.20.70"
18
18
  },
19
19
  "license": "MIT"
20
20
  }