@minecraft/server 2.12.0-beta.1.26.60-preview.21 → 2.12.0-beta.1.26.60-preview.25
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/index.d.ts +94 -69
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -47,14 +47,8 @@ export enum AimAssistTargetMode {
|
|
|
47
47
|
* function Block.getComponent.
|
|
48
48
|
*/
|
|
49
49
|
export enum BlockComponentTypes {
|
|
50
|
-
/**
|
|
51
|
-
* @rc
|
|
52
|
-
*/
|
|
53
50
|
DynamicProperties = 'minecraft:dynamic_properties',
|
|
54
51
|
FluidContainer = 'minecraft:fluid_container',
|
|
55
|
-
/**
|
|
56
|
-
* @rc
|
|
57
|
-
*/
|
|
58
52
|
Instrument = 'minecraft:instrument_sound',
|
|
59
53
|
/**
|
|
60
54
|
* @remarks
|
|
@@ -206,7 +200,6 @@ export enum ButtonState {
|
|
|
206
200
|
}
|
|
207
201
|
|
|
208
202
|
/**
|
|
209
|
-
* @rc
|
|
210
203
|
* Represents the type of shake to apply to the camera.
|
|
211
204
|
*/
|
|
212
205
|
export enum CameraShakeType {
|
|
@@ -225,7 +218,6 @@ export enum CameraShakeType {
|
|
|
225
218
|
}
|
|
226
219
|
|
|
227
220
|
/**
|
|
228
|
-
* @rc
|
|
229
221
|
* An enumeration for the clone modes used when cloning blocks.
|
|
230
222
|
*/
|
|
231
223
|
export enum CloneMode {
|
|
@@ -2257,9 +2249,6 @@ export enum InputPermissionCategory {
|
|
|
2257
2249
|
* function ItemStack.getComponent.
|
|
2258
2250
|
*/
|
|
2259
2251
|
export enum ItemComponentTypes {
|
|
2260
|
-
/**
|
|
2261
|
-
* @rc
|
|
2262
|
-
*/
|
|
2263
2252
|
BlockDynamicProperties = 'minecraft:block_actor_dynamic_properties',
|
|
2264
2253
|
/**
|
|
2265
2254
|
* @remarks
|
|
@@ -4441,6 +4430,15 @@ export class Block {
|
|
|
4441
4430
|
* {@link LocationOutOfWorldBoundariesError}
|
|
4442
4431
|
*/
|
|
4443
4432
|
hasComponent(componentId: string): boolean;
|
|
4433
|
+
/**
|
|
4434
|
+
* @beta
|
|
4435
|
+
* @throws This function can throw errors.
|
|
4436
|
+
*
|
|
4437
|
+
* {@link LocationInUnloadedChunkError}
|
|
4438
|
+
*
|
|
4439
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
4440
|
+
*/
|
|
4441
|
+
hasScheduledNamedTick(eventName: string): boolean;
|
|
4444
4442
|
/**
|
|
4445
4443
|
* @remarks
|
|
4446
4444
|
* Checks to see if the permutation of this block has a
|
|
@@ -4581,6 +4579,47 @@ export class Block {
|
|
|
4581
4579
|
* {@link LocationOutOfWorldBoundariesError}
|
|
4582
4580
|
*/
|
|
4583
4581
|
offset(offset: Vector3): Block | undefined;
|
|
4582
|
+
/**
|
|
4583
|
+
* @beta
|
|
4584
|
+
* @remarks
|
|
4585
|
+
* Removes all scheduled named tick events from this block with
|
|
4586
|
+
* the specified event name.
|
|
4587
|
+
*
|
|
4588
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
4589
|
+
*
|
|
4590
|
+
* @param eventName
|
|
4591
|
+
* Name of the scheduled event to remove.
|
|
4592
|
+
* @throws This function can throw errors.
|
|
4593
|
+
*
|
|
4594
|
+
* {@link LocationInUnloadedChunkError}
|
|
4595
|
+
*
|
|
4596
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
4597
|
+
*/
|
|
4598
|
+
removeScheduledNamedTick(eventName: string): void;
|
|
4599
|
+
/**
|
|
4600
|
+
* @beta
|
|
4601
|
+
* @remarks
|
|
4602
|
+
* Schedules a named tick event for this block. The event will
|
|
4603
|
+
* be delivered to block custom components registered with the
|
|
4604
|
+
* `onNamedTick` callback after the specified delay.
|
|
4605
|
+
*
|
|
4606
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
4607
|
+
*
|
|
4608
|
+
* @param eventName
|
|
4609
|
+
* Name of the event to schedule. Up to 31 characters.
|
|
4610
|
+
* @param tickDelay
|
|
4611
|
+
* Number of ticks to wait before the event is raised. Must be
|
|
4612
|
+
* at least 1.
|
|
4613
|
+
* Minimum value: 1
|
|
4614
|
+
* @throws This function can throw errors.
|
|
4615
|
+
*
|
|
4616
|
+
* {@link Error}
|
|
4617
|
+
*
|
|
4618
|
+
* {@link LocationInUnloadedChunkError}
|
|
4619
|
+
*
|
|
4620
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
4621
|
+
*/
|
|
4622
|
+
scheduleNamedTick(eventName: string, tickDelay: number): void;
|
|
4584
4623
|
/**
|
|
4585
4624
|
* @remarks
|
|
4586
4625
|
* Sets the block in the dimension to the state of the
|
|
@@ -4924,6 +4963,30 @@ export class BlockComponentEntityFallOnEvent extends BlockEvent {
|
|
|
4924
4963
|
readonly fallDistance: number;
|
|
4925
4964
|
}
|
|
4926
4965
|
|
|
4966
|
+
/**
|
|
4967
|
+
* @beta
|
|
4968
|
+
* Contains information regarding a named tick event for a
|
|
4969
|
+
* specific block.
|
|
4970
|
+
*/
|
|
4971
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4972
|
+
export class BlockComponentNamedTickEvent extends BlockEvent {
|
|
4973
|
+
private constructor();
|
|
4974
|
+
/**
|
|
4975
|
+
* @remarks
|
|
4976
|
+
* Checks whether this named tick event has the specified name.
|
|
4977
|
+
* Events are namespaced with their content UUID. Two named
|
|
4978
|
+
* tick events with the same name but scheduled from different
|
|
4979
|
+
* packs will not respond the same to this method.
|
|
4980
|
+
*
|
|
4981
|
+
* @param eventName
|
|
4982
|
+
* The name to check against this event.
|
|
4983
|
+
* @returns
|
|
4984
|
+
* Returns true if the event name matches the specified name;
|
|
4985
|
+
* otherwise, false.
|
|
4986
|
+
*/
|
|
4987
|
+
isName(eventName: string): boolean;
|
|
4988
|
+
}
|
|
4989
|
+
|
|
4927
4990
|
/**
|
|
4928
4991
|
* Contains information regarding a specific block that was
|
|
4929
4992
|
* placed.
|
|
@@ -5239,7 +5302,6 @@ export class BlockCustomComponentInstance extends BlockComponent {
|
|
|
5239
5302
|
}
|
|
5240
5303
|
|
|
5241
5304
|
/**
|
|
5242
|
-
* @rc
|
|
5243
5305
|
* Represents the dynamic properties of a block in the world.
|
|
5244
5306
|
* Only available with block entities. Up to 1KB per content
|
|
5245
5307
|
* pack, per block entity in their dynamic properties storage.
|
|
@@ -5479,7 +5541,6 @@ export class BlockFluidContainerComponent extends BlockComponent {
|
|
|
5479
5541
|
}
|
|
5480
5542
|
|
|
5481
5543
|
/**
|
|
5482
|
-
* @rc
|
|
5483
5544
|
* Represents the instruments a block can have assigned to it's
|
|
5484
5545
|
* up and down faces.
|
|
5485
5546
|
*/
|
|
@@ -6581,7 +6642,6 @@ export class BlockVolumeBase {
|
|
|
6581
6642
|
*/
|
|
6582
6643
|
getCapacity(): number;
|
|
6583
6644
|
/**
|
|
6584
|
-
* @rc
|
|
6585
6645
|
* @remarks
|
|
6586
6646
|
* Returns a list of block positions within the volume that are
|
|
6587
6647
|
* closest to a given location, sorted by distance (nearest
|
|
@@ -6597,7 +6657,6 @@ export class BlockVolumeBase {
|
|
|
6597
6657
|
*/
|
|
6598
6658
|
getClosest(count: number, location: Vector3): Vector3[];
|
|
6599
6659
|
/**
|
|
6600
|
-
* @rc
|
|
6601
6660
|
* @remarks
|
|
6602
6661
|
* Returns a list of block positions within the volume that are
|
|
6603
6662
|
* farthest from a given location, sorted by distance (farthest
|
|
@@ -6772,7 +6831,6 @@ export class Camera {
|
|
|
6772
6831
|
*/
|
|
6773
6832
|
readonly isValid: boolean;
|
|
6774
6833
|
/**
|
|
6775
|
-
* @rc
|
|
6776
6834
|
* @remarks
|
|
6777
6835
|
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
6778
6836
|
*
|
|
@@ -6889,7 +6947,6 @@ export class Camera {
|
|
|
6889
6947
|
*/
|
|
6890
6948
|
setFov(fovCameraOptions?: CameraFovOptions): void;
|
|
6891
6949
|
/**
|
|
6892
|
-
* @rc
|
|
6893
6950
|
* @remarks
|
|
6894
6951
|
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
6895
6952
|
*
|
|
@@ -8208,7 +8265,6 @@ export class Dimension {
|
|
|
8208
8265
|
options?: BiomeSearchOptions,
|
|
8209
8266
|
): Vector3 | undefined;
|
|
8210
8267
|
/**
|
|
8211
|
-
* @rc
|
|
8212
8268
|
* @remarks
|
|
8213
8269
|
* Clones a region of blocks from one area of the dimension to
|
|
8214
8270
|
* another.
|
|
@@ -8479,7 +8535,6 @@ export class Dimension {
|
|
|
8479
8535
|
*/
|
|
8480
8536
|
getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
8481
8537
|
/**
|
|
8482
|
-
* @rc
|
|
8483
8538
|
* @remarks
|
|
8484
8539
|
* Gets all the blocks in a volume that satisfy the block query
|
|
8485
8540
|
* options.
|
|
@@ -13665,7 +13720,6 @@ export class EntitySpawnAfterEventSignal {
|
|
|
13665
13720
|
}
|
|
13666
13721
|
|
|
13667
13722
|
/**
|
|
13668
|
-
* @rc
|
|
13669
13723
|
* Contains data related to an entity beginning to sneak.
|
|
13670
13724
|
*/
|
|
13671
13725
|
export class EntityStartSneakingAfterEvent {
|
|
@@ -13679,7 +13733,6 @@ export class EntityStartSneakingAfterEvent {
|
|
|
13679
13733
|
}
|
|
13680
13734
|
|
|
13681
13735
|
/**
|
|
13682
|
-
* @rc
|
|
13683
13736
|
* Manages callbacks that are connected to when an entity
|
|
13684
13737
|
* begins sneaking.
|
|
13685
13738
|
*/
|
|
@@ -13713,7 +13766,6 @@ export class EntityStartSneakingAfterEventSignal {
|
|
|
13713
13766
|
}
|
|
13714
13767
|
|
|
13715
13768
|
/**
|
|
13716
|
-
* @rc
|
|
13717
13769
|
* Contains data related to an entity stopping sneaking.
|
|
13718
13770
|
*/
|
|
13719
13771
|
export class EntityStopSneakingAfterEvent {
|
|
@@ -13727,7 +13779,6 @@ export class EntityStopSneakingAfterEvent {
|
|
|
13727
13779
|
}
|
|
13728
13780
|
|
|
13729
13781
|
/**
|
|
13730
|
-
* @rc
|
|
13731
13782
|
* Manages callbacks that are connected to when an entity stops
|
|
13732
13783
|
* sneaking.
|
|
13733
13784
|
*/
|
|
@@ -13848,7 +13899,6 @@ export class EntityTameableComponent extends EntityComponent {
|
|
|
13848
13899
|
}
|
|
13849
13900
|
|
|
13850
13901
|
/**
|
|
13851
|
-
* @rc
|
|
13852
13902
|
* Contains data related to an entity being tamed.
|
|
13853
13903
|
*/
|
|
13854
13904
|
export class EntityTamedAfterEvent {
|
|
@@ -13858,7 +13908,6 @@ export class EntityTamedAfterEvent {
|
|
|
13858
13908
|
}
|
|
13859
13909
|
|
|
13860
13910
|
/**
|
|
13861
|
-
* @rc
|
|
13862
13911
|
* Manages callbacks that are connected to when an entity is
|
|
13863
13912
|
* tamed.
|
|
13864
13913
|
*/
|
|
@@ -13886,7 +13935,6 @@ export class EntityTamedAfterEventSignal {
|
|
|
13886
13935
|
}
|
|
13887
13936
|
|
|
13888
13937
|
/**
|
|
13889
|
-
* @rc
|
|
13890
13938
|
* Contains information regarding an event before an entity is
|
|
13891
13939
|
* tamed.
|
|
13892
13940
|
*/
|
|
@@ -13913,7 +13961,6 @@ export class EntityTamedBeforeEvent {
|
|
|
13913
13961
|
}
|
|
13914
13962
|
|
|
13915
13963
|
/**
|
|
13916
|
-
* @rc
|
|
13917
13964
|
* Manages callbacks that are connected to before an entity is
|
|
13918
13965
|
* tamed.
|
|
13919
13966
|
*/
|
|
@@ -14464,7 +14511,6 @@ export class FluidContainer {
|
|
|
14464
14511
|
}
|
|
14465
14512
|
|
|
14466
14513
|
/**
|
|
14467
|
-
* @rc
|
|
14468
14514
|
* Provides access to the fog definitions stack of a player
|
|
14469
14515
|
* entity, allowing scripts to push, pop, remove, and query
|
|
14470
14516
|
* active fog definitions.
|
|
@@ -14946,7 +14992,6 @@ export class ISerializable {
|
|
|
14946
14992
|
}
|
|
14947
14993
|
|
|
14948
14994
|
/**
|
|
14949
|
-
* @rc
|
|
14950
14995
|
* Represents the dynamic properties of a block. Only available
|
|
14951
14996
|
* from block entities. Up to 1KBytes of data can be stored per
|
|
14952
14997
|
* content pack per block entity in their dynamic properties
|
|
@@ -18085,7 +18130,6 @@ export class Player extends Entity {
|
|
|
18085
18130
|
*/
|
|
18086
18131
|
commandPermissionLevel: CommandPermissionLevel;
|
|
18087
18132
|
/**
|
|
18088
|
-
* @rc
|
|
18089
18133
|
* @remarks
|
|
18090
18134
|
* Contains methods for manipulating the render distance fog
|
|
18091
18135
|
* settings of a Player.
|
|
@@ -21059,6 +21103,10 @@ export class PrimitiveShape {
|
|
|
21059
21103
|
*
|
|
21060
21104
|
*/
|
|
21061
21105
|
color: RGBA;
|
|
21106
|
+
/**
|
|
21107
|
+
* @beta
|
|
21108
|
+
*/
|
|
21109
|
+
defaultVisibleToAll: boolean;
|
|
21062
21110
|
/**
|
|
21063
21111
|
* @remarks
|
|
21064
21112
|
* The dimension the shape is visible within. If the dimension
|
|
@@ -21073,6 +21121,10 @@ export class PrimitiveShape {
|
|
|
21073
21121
|
*
|
|
21074
21122
|
*/
|
|
21075
21123
|
readonly hasDuration: boolean;
|
|
21124
|
+
/**
|
|
21125
|
+
* @beta
|
|
21126
|
+
*/
|
|
21127
|
+
hiddenFrom: Player[];
|
|
21076
21128
|
/**
|
|
21077
21129
|
* @remarks
|
|
21078
21130
|
* The location of the shape.
|
|
@@ -21168,7 +21220,6 @@ export class PrimitiveShapesManager {
|
|
|
21168
21220
|
*/
|
|
21169
21221
|
addText(text: TextPrimitive, dimension?: Dimension): void;
|
|
21170
21222
|
/**
|
|
21171
|
-
* @rc
|
|
21172
21223
|
* @remarks
|
|
21173
21224
|
* Fetches and queries all primitive shapes stored in the
|
|
21174
21225
|
* manager and returns the results as an array of shape
|
|
@@ -22561,7 +22612,6 @@ export class SmeltItemFunction extends LootItemFunction {
|
|
|
22561
22612
|
}
|
|
22562
22613
|
|
|
22563
22614
|
/**
|
|
22564
|
-
* @rc
|
|
22565
22615
|
* Contains information about a sound thats declared duration
|
|
22566
22616
|
* elapsed.
|
|
22567
22617
|
*/
|
|
@@ -22578,7 +22628,6 @@ export class SoundCompletedAfterEvent {
|
|
|
22578
22628
|
}
|
|
22579
22629
|
|
|
22580
22630
|
/**
|
|
22581
|
-
* @rc
|
|
22582
22631
|
* Manages callbacks that are invoked when a tracked sound's
|
|
22583
22632
|
* declared duration elapses.
|
|
22584
22633
|
*/
|
|
@@ -22615,7 +22664,6 @@ export class SoundCompletedAfterEventSignal {
|
|
|
22615
22664
|
export class SoundDefinition {
|
|
22616
22665
|
private constructor();
|
|
22617
22666
|
/**
|
|
22618
|
-
* @rc
|
|
22619
22667
|
* @remarks
|
|
22620
22668
|
* Duration metadata declared for this sound. Undefined when
|
|
22621
22669
|
* the sound definition does not specify a duration.
|
|
@@ -22623,7 +22671,6 @@ export class SoundDefinition {
|
|
|
22623
22671
|
*/
|
|
22624
22672
|
readonly durationInfo?: SoundDefinitionDurationInfo;
|
|
22625
22673
|
/**
|
|
22626
|
-
* @rc
|
|
22627
22674
|
* @remarks
|
|
22628
22675
|
* Music metadata declared for this sound. Undefined when the
|
|
22629
22676
|
* sound definition does not specify a music_info block.
|
|
@@ -22631,7 +22678,6 @@ export class SoundDefinition {
|
|
|
22631
22678
|
*/
|
|
22632
22679
|
readonly musicInfo?: SoundDefinitionMusicInfo;
|
|
22633
22680
|
/**
|
|
22634
|
-
* @rc
|
|
22635
22681
|
* @remarks
|
|
22636
22682
|
* Identifier of the sound event this definition declares, in
|
|
22637
22683
|
* the form 'namespace:name'.
|
|
@@ -22639,7 +22685,6 @@ export class SoundDefinition {
|
|
|
22639
22685
|
*/
|
|
22640
22686
|
readonly soundEventId: string;
|
|
22641
22687
|
/**
|
|
22642
|
-
* @rc
|
|
22643
22688
|
* @remarks
|
|
22644
22689
|
* Tag metadata declared for this sound, as a record mapping
|
|
22645
22690
|
* each tag name to its declared values. A tag declared with a
|
|
@@ -22652,7 +22697,6 @@ export class SoundDefinition {
|
|
|
22652
22697
|
}
|
|
22653
22698
|
|
|
22654
22699
|
/**
|
|
22655
|
-
* @rc
|
|
22656
22700
|
* Provides read-only access to the sound definitions loaded
|
|
22657
22701
|
* for the current world.
|
|
22658
22702
|
*/
|
|
@@ -22679,7 +22723,6 @@ export class SoundDefinitionRegistry {
|
|
|
22679
22723
|
}
|
|
22680
22724
|
|
|
22681
22725
|
/**
|
|
22682
|
-
* @rc
|
|
22683
22726
|
* Provides duration and playback information for a sound whose
|
|
22684
22727
|
* definition declares a duration.
|
|
22685
22728
|
*/
|
|
@@ -22723,28 +22766,24 @@ export class SoundDurationInfo {
|
|
|
22723
22766
|
export class SoundInstance {
|
|
22724
22767
|
private constructor();
|
|
22725
22768
|
/**
|
|
22726
|
-
* @rc
|
|
22727
22769
|
* @remarks
|
|
22728
22770
|
* Gets duration and playback information for this sound.
|
|
22729
22771
|
*
|
|
22730
22772
|
*/
|
|
22731
22773
|
readonly durationInfo?: SoundDurationInfo;
|
|
22732
22774
|
/**
|
|
22733
|
-
* @rc
|
|
22734
22775
|
* @remarks
|
|
22735
22776
|
* Unique identifier of this sound instance.
|
|
22736
22777
|
*
|
|
22737
22778
|
*/
|
|
22738
22779
|
readonly id: string;
|
|
22739
22780
|
/**
|
|
22740
|
-
* @rc
|
|
22741
22781
|
* @remarks
|
|
22742
22782
|
* Gets the player this sound was played for.
|
|
22743
22783
|
*
|
|
22744
22784
|
*/
|
|
22745
22785
|
readonly recipient?: Player;
|
|
22746
22786
|
/**
|
|
22747
|
-
* @rc
|
|
22748
22787
|
* @remarks
|
|
22749
22788
|
* Gets the identifier of the sound event this instance was
|
|
22750
22789
|
* started with.
|
|
@@ -22752,7 +22791,7 @@ export class SoundInstance {
|
|
|
22752
22791
|
*/
|
|
22753
22792
|
readonly soundEventId: string;
|
|
22754
22793
|
/**
|
|
22755
|
-
* @
|
|
22794
|
+
* @rc
|
|
22756
22795
|
* @remarks
|
|
22757
22796
|
* Fades this sound instance from its current volume to the
|
|
22758
22797
|
* target volume over the specified duration. To fade in from
|
|
@@ -22770,7 +22809,7 @@ export class SoundInstance {
|
|
|
22770
22809
|
*/
|
|
22771
22810
|
fade(duration: number, targetVolume: number): void;
|
|
22772
22811
|
/**
|
|
22773
|
-
* @
|
|
22812
|
+
* @rc
|
|
22774
22813
|
* @remarks
|
|
22775
22814
|
* Pauses this sound.
|
|
22776
22815
|
*
|
|
@@ -22779,7 +22818,7 @@ export class SoundInstance {
|
|
|
22779
22818
|
*/
|
|
22780
22819
|
pause(): void;
|
|
22781
22820
|
/**
|
|
22782
|
-
* @
|
|
22821
|
+
* @rc
|
|
22783
22822
|
* @remarks
|
|
22784
22823
|
* Resumes this sound after a pause.
|
|
22785
22824
|
*
|
|
@@ -22788,7 +22827,7 @@ export class SoundInstance {
|
|
|
22788
22827
|
*/
|
|
22789
22828
|
resume(): void;
|
|
22790
22829
|
/**
|
|
22791
|
-
* @
|
|
22830
|
+
* @rc
|
|
22792
22831
|
* @remarks
|
|
22793
22832
|
* Sets the playback position of this sound instance.
|
|
22794
22833
|
*
|
|
@@ -22805,7 +22844,7 @@ export class SoundInstance {
|
|
|
22805
22844
|
*/
|
|
22806
22845
|
seekTo(seconds: number): void;
|
|
22807
22846
|
/**
|
|
22808
|
-
* @
|
|
22847
|
+
* @rc
|
|
22809
22848
|
* @remarks
|
|
22810
22849
|
* Sets the pitch of this sound instance.
|
|
22811
22850
|
*
|
|
@@ -22818,7 +22857,7 @@ export class SoundInstance {
|
|
|
22818
22857
|
*/
|
|
22819
22858
|
setPitch(pitch: number): void;
|
|
22820
22859
|
/**
|
|
22821
|
-
* @
|
|
22860
|
+
* @rc
|
|
22822
22861
|
* @remarks
|
|
22823
22862
|
* Sets the volume of this sound instance.
|
|
22824
22863
|
*
|
|
@@ -24359,7 +24398,6 @@ export class World {
|
|
|
24359
24398
|
*/
|
|
24360
24399
|
readonly seed: string;
|
|
24361
24400
|
/**
|
|
24362
|
-
* @rc
|
|
24363
24401
|
* @remarks
|
|
24364
24402
|
* Provides read-only access to the sound definitions loaded
|
|
24365
24403
|
* for this world.
|
|
@@ -25033,7 +25071,6 @@ export class WorldAfterEvents {
|
|
|
25033
25071
|
*/
|
|
25034
25072
|
readonly entitySpawn: EntitySpawnAfterEventSignal;
|
|
25035
25073
|
/**
|
|
25036
|
-
* @rc
|
|
25037
25074
|
* @remarks
|
|
25038
25075
|
* This event fires when an entity starts sneaking.
|
|
25039
25076
|
*
|
|
@@ -25042,7 +25079,6 @@ export class WorldAfterEvents {
|
|
|
25042
25079
|
*/
|
|
25043
25080
|
readonly entityStartSneaking: EntityStartSneakingAfterEventSignal;
|
|
25044
25081
|
/**
|
|
25045
|
-
* @rc
|
|
25046
25082
|
* @remarks
|
|
25047
25083
|
* This event fires when an entity stops sneaking.
|
|
25048
25084
|
*
|
|
@@ -25051,7 +25087,6 @@ export class WorldAfterEvents {
|
|
|
25051
25087
|
*/
|
|
25052
25088
|
readonly entityStopSneaking: EntityStopSneakingAfterEventSignal;
|
|
25053
25089
|
/**
|
|
25054
|
-
* @rc
|
|
25055
25090
|
* @remarks
|
|
25056
25091
|
* This event fires when an entity is tamed.
|
|
25057
25092
|
*
|
|
@@ -25379,7 +25414,6 @@ export class WorldAfterEvents {
|
|
|
25379
25414
|
*/
|
|
25380
25415
|
readonly projectileHitEntity: ProjectileHitEntityAfterEventSignal;
|
|
25381
25416
|
/**
|
|
25382
|
-
* @rc
|
|
25383
25417
|
* @remarks
|
|
25384
25418
|
* A tracked sound's declared duration elapsed.
|
|
25385
25419
|
*
|
|
@@ -25546,7 +25580,6 @@ export class WorldBeforeEvents {
|
|
|
25546
25580
|
*/
|
|
25547
25581
|
readonly entityRemove: EntityRemoveBeforeEventSignal;
|
|
25548
25582
|
/**
|
|
25549
|
-
* @rc
|
|
25550
25583
|
* @remarks
|
|
25551
25584
|
* Fires before an entity is tamed.
|
|
25552
25585
|
*
|
|
@@ -26246,6 +26279,10 @@ export interface BlockCustomComponent {
|
|
|
26246
26279
|
*
|
|
26247
26280
|
*/
|
|
26248
26281
|
onEntityFallOn?: (arg0: BlockComponentEntityFallOnEvent, arg1: CustomComponentParameters) => void;
|
|
26282
|
+
/**
|
|
26283
|
+
* @beta
|
|
26284
|
+
*/
|
|
26285
|
+
onNamedTick?: (arg0: BlockComponentNamedTickEvent, arg1: CustomComponentParameters) => void;
|
|
26249
26286
|
/**
|
|
26250
26287
|
* @remarks
|
|
26251
26288
|
* This function will be called when the block that this custom
|
|
@@ -26419,7 +26456,6 @@ export interface BlockHitInformation {
|
|
|
26419
26456
|
}
|
|
26420
26457
|
|
|
26421
26458
|
/**
|
|
26422
|
-
* @rc
|
|
26423
26459
|
* Options for querying blocks in a volume. Extends BlockFilter
|
|
26424
26460
|
* with additional sorting and limiting options based on
|
|
26425
26461
|
* distance from a location.
|
|
@@ -26623,7 +26659,6 @@ export interface CameraSetRotOptions {
|
|
|
26623
26659
|
}
|
|
26624
26660
|
|
|
26625
26661
|
/**
|
|
26626
|
-
* @rc
|
|
26627
26662
|
* Options for applying a camera shake effect to a player's
|
|
26628
26663
|
* camera via `Camera.addShake`. Each call to `addShake` queues
|
|
26629
26664
|
* a new independent shake event for the specified `type`;
|
|
@@ -27685,7 +27720,6 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
27685
27720
|
}
|
|
27686
27721
|
|
|
27687
27722
|
/**
|
|
27688
|
-
* @rc
|
|
27689
27723
|
* Options used to filter entity start sneaking and stop
|
|
27690
27724
|
* sneaking events.
|
|
27691
27725
|
*/
|
|
@@ -27694,7 +27728,6 @@ export interface EntitySneakingChangedEventOptions {
|
|
|
27694
27728
|
}
|
|
27695
27729
|
|
|
27696
27730
|
/**
|
|
27697
|
-
* @rc
|
|
27698
27731
|
* Contains options for filtering entity tamed events.
|
|
27699
27732
|
*/
|
|
27700
27733
|
export interface EntityTamedEventOptions {
|
|
@@ -28272,7 +28305,7 @@ export interface PlayerSoundOptions {
|
|
|
28272
28305
|
*/
|
|
28273
28306
|
location?: Vector3;
|
|
28274
28307
|
/**
|
|
28275
|
-
* @
|
|
28308
|
+
* @rc
|
|
28276
28309
|
* @remarks
|
|
28277
28310
|
* Number of additional times to repeat the sound after the
|
|
28278
28311
|
* initial play. `0` (the default) plays the sound once, `-1`
|
|
@@ -28406,7 +28439,6 @@ export interface PoiTagFilter {
|
|
|
28406
28439
|
}
|
|
28407
28440
|
|
|
28408
28441
|
/**
|
|
28409
|
-
* @rc
|
|
28410
28442
|
* Contains optional filters that control which primitive
|
|
28411
28443
|
* shapes are returned from a primitive shapes query.
|
|
28412
28444
|
*/
|
|
@@ -28764,7 +28796,6 @@ export interface ScriptEventMessageFilterOptions {
|
|
|
28764
28796
|
}
|
|
28765
28797
|
|
|
28766
28798
|
/**
|
|
28767
|
-
* @rc
|
|
28768
28799
|
* Duration metadata declared in a sound definition.
|
|
28769
28800
|
*/
|
|
28770
28801
|
export interface SoundDefinitionDurationInfo {
|
|
@@ -28778,7 +28809,6 @@ export interface SoundDefinitionDurationInfo {
|
|
|
28778
28809
|
}
|
|
28779
28810
|
|
|
28780
28811
|
/**
|
|
28781
|
-
* @rc
|
|
28782
28812
|
* Criteria used to narrow a set of sound definitions. Each
|
|
28783
28813
|
* field is optional and applies its constraint only when
|
|
28784
28814
|
* defined; a definition must satisfy every defined field to
|
|
@@ -28857,7 +28887,6 @@ export interface SoundDefinitionFilter {
|
|
|
28857
28887
|
}
|
|
28858
28888
|
|
|
28859
28889
|
/**
|
|
28860
|
-
* @rc
|
|
28861
28890
|
* Music metadata declared on a sound definition. Each field is
|
|
28862
28891
|
* optional and is undefined when the sound definition does not
|
|
28863
28892
|
* declare a value for it.
|
|
@@ -29407,12 +29436,9 @@ export interface WorldClockTimeMarkerEventOptions {
|
|
|
29407
29436
|
* Contains additional options for a playSound occurrence.
|
|
29408
29437
|
*/
|
|
29409
29438
|
export interface WorldSoundOptions {
|
|
29410
|
-
/**
|
|
29411
|
-
* @rc
|
|
29412
|
-
*/
|
|
29413
29439
|
isBroadcast?: boolean;
|
|
29414
29440
|
/**
|
|
29415
|
-
* @
|
|
29441
|
+
* @rc
|
|
29416
29442
|
* @remarks
|
|
29417
29443
|
* Number of additional times to repeat the sound after the
|
|
29418
29444
|
* initial play. `0` (the default) plays the sound once, `-1`
|
|
@@ -29614,7 +29640,6 @@ export class EntitySpawnError extends Error {
|
|
|
29614
29640
|
}
|
|
29615
29641
|
|
|
29616
29642
|
/**
|
|
29617
|
-
* @rc
|
|
29618
29643
|
* Error thrown by {@link FogSettings} operations when the fog
|
|
29619
29644
|
* stack limit is exceeded or an invalid fog identifier is
|
|
29620
29645
|
* provided.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.12.0-beta.1.26.60-preview.
|
|
3
|
+
"version": "2.12.0-beta.1.26.60-preview.25",
|
|
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.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.60-preview.25"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|