@minecraft/server 2.11.0-rc.1.26.60-preview.23 → 2.11.0-rc.1.26.60-preview.28
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 +8 -8
- package/index.d.ts +128 -59
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# `@minecraft/server`
|
|
2
|
-
|
|
3
|
-
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
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
|
-
See full documentation for this module here:
|
|
8
|
-
|
|
1
|
+
# `@minecraft/server`
|
|
2
|
+
|
|
3
|
+
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
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
|
+
See full documentation for this module here:
|
|
8
|
+
|
|
9
9
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
|
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
|
|
@@ -202,7 +196,6 @@ export enum ButtonState {
|
|
|
202
196
|
}
|
|
203
197
|
|
|
204
198
|
/**
|
|
205
|
-
* @rc
|
|
206
199
|
* Represents the type of shake to apply to the camera.
|
|
207
200
|
*/
|
|
208
201
|
export enum CameraShakeType {
|
|
@@ -221,7 +214,6 @@ export enum CameraShakeType {
|
|
|
221
214
|
}
|
|
222
215
|
|
|
223
216
|
/**
|
|
224
|
-
* @rc
|
|
225
217
|
* An enumeration for the clone modes used when cloning blocks.
|
|
226
218
|
*/
|
|
227
219
|
export enum CloneMode {
|
|
@@ -2222,9 +2214,6 @@ export enum InputPermissionCategory {
|
|
|
2222
2214
|
* function ItemStack.getComponent.
|
|
2223
2215
|
*/
|
|
2224
2216
|
export enum ItemComponentTypes {
|
|
2225
|
-
/**
|
|
2226
|
-
* @rc
|
|
2227
|
-
*/
|
|
2228
2217
|
BlockDynamicProperties = 'minecraft:block_actor_dynamic_properties',
|
|
2229
2218
|
/**
|
|
2230
2219
|
* @remarks
|
|
@@ -4883,7 +4872,6 @@ export class BlockCustomComponentInstance extends BlockComponent {
|
|
|
4883
4872
|
}
|
|
4884
4873
|
|
|
4885
4874
|
/**
|
|
4886
|
-
* @rc
|
|
4887
4875
|
* Represents the dynamic properties of a block in the world.
|
|
4888
4876
|
* Only available with block entities. Up to 1KB per content
|
|
4889
4877
|
* pack, per block entity in their dynamic properties storage.
|
|
@@ -5123,7 +5111,6 @@ export class BlockFluidContainerComponent extends BlockComponent {
|
|
|
5123
5111
|
}
|
|
5124
5112
|
|
|
5125
5113
|
/**
|
|
5126
|
-
* @rc
|
|
5127
5114
|
* Represents the instruments a block can have assigned to it's
|
|
5128
5115
|
* up and down faces.
|
|
5129
5116
|
*/
|
|
@@ -6169,7 +6156,6 @@ export class BlockVolumeBase {
|
|
|
6169
6156
|
*/
|
|
6170
6157
|
getCapacity(): number;
|
|
6171
6158
|
/**
|
|
6172
|
-
* @rc
|
|
6173
6159
|
* @remarks
|
|
6174
6160
|
* Returns a list of block positions within the volume that are
|
|
6175
6161
|
* closest to a given location, sorted by distance (nearest
|
|
@@ -6185,7 +6171,6 @@ export class BlockVolumeBase {
|
|
|
6185
6171
|
*/
|
|
6186
6172
|
getClosest(count: number, location: Vector3): Vector3[];
|
|
6187
6173
|
/**
|
|
6188
|
-
* @rc
|
|
6189
6174
|
* @remarks
|
|
6190
6175
|
* Returns a list of block positions within the volume that are
|
|
6191
6176
|
* farthest from a given location, sorted by distance (farthest
|
|
@@ -6360,7 +6345,6 @@ export class Camera {
|
|
|
6360
6345
|
*/
|
|
6361
6346
|
readonly isValid: boolean;
|
|
6362
6347
|
/**
|
|
6363
|
-
* @rc
|
|
6364
6348
|
* @remarks
|
|
6365
6349
|
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
6366
6350
|
*
|
|
@@ -6460,7 +6444,6 @@ export class Camera {
|
|
|
6460
6444
|
*/
|
|
6461
6445
|
setFov(fovCameraOptions?: CameraFovOptions): void;
|
|
6462
6446
|
/**
|
|
6463
|
-
* @rc
|
|
6464
6447
|
* @remarks
|
|
6465
6448
|
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
6466
6449
|
*
|
|
@@ -7589,7 +7572,6 @@ export class Dimension {
|
|
|
7589
7572
|
options?: BiomeSearchOptions,
|
|
7590
7573
|
): Vector3 | undefined;
|
|
7591
7574
|
/**
|
|
7592
|
-
* @rc
|
|
7593
7575
|
* @remarks
|
|
7594
7576
|
* Clones a region of blocks from one area of the dimension to
|
|
7595
7577
|
* another.
|
|
@@ -7860,7 +7842,6 @@ export class Dimension {
|
|
|
7860
7842
|
*/
|
|
7861
7843
|
getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
7862
7844
|
/**
|
|
7863
|
-
* @rc
|
|
7864
7845
|
* @remarks
|
|
7865
7846
|
* Gets all the blocks in a volume that satisfy the filter.
|
|
7866
7847
|
*
|
|
@@ -11487,6 +11468,28 @@ export class EntityIsStunnedComponent extends EntityComponent {
|
|
|
11487
11468
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
11488
11469
|
export class EntityIsTamedComponent extends EntityComponent {
|
|
11489
11470
|
private constructor();
|
|
11471
|
+
/**
|
|
11472
|
+
* @rc
|
|
11473
|
+
* @remarks
|
|
11474
|
+
* Returns the player that has tamed the entity, or 'undefined'
|
|
11475
|
+
* if the entity has no player owner.
|
|
11476
|
+
*
|
|
11477
|
+
* @throws This property can throw when used.
|
|
11478
|
+
*
|
|
11479
|
+
* {@link InvalidEntityError}
|
|
11480
|
+
*/
|
|
11481
|
+
readonly tamedToPlayer?: Player;
|
|
11482
|
+
/**
|
|
11483
|
+
* @rc
|
|
11484
|
+
* @remarks
|
|
11485
|
+
* Returns the id of the player that has tamed the entity, or
|
|
11486
|
+
* 'undefined' if the entity has no player owner.
|
|
11487
|
+
*
|
|
11488
|
+
* @throws This property can throw when used.
|
|
11489
|
+
*
|
|
11490
|
+
* {@link InvalidEntityError}
|
|
11491
|
+
*/
|
|
11492
|
+
readonly tamedToPlayerId?: string;
|
|
11490
11493
|
static readonly componentId = 'minecraft:is_tamed';
|
|
11491
11494
|
}
|
|
11492
11495
|
|
|
@@ -12898,7 +12901,6 @@ export class EntitySpawnAfterEventSignal {
|
|
|
12898
12901
|
}
|
|
12899
12902
|
|
|
12900
12903
|
/**
|
|
12901
|
-
* @rc
|
|
12902
12904
|
* Contains data related to an entity beginning to sneak.
|
|
12903
12905
|
*/
|
|
12904
12906
|
export class EntityStartSneakingAfterEvent {
|
|
@@ -12912,7 +12914,6 @@ export class EntityStartSneakingAfterEvent {
|
|
|
12912
12914
|
}
|
|
12913
12915
|
|
|
12914
12916
|
/**
|
|
12915
|
-
* @rc
|
|
12916
12917
|
* Manages callbacks that are connected to when an entity
|
|
12917
12918
|
* begins sneaking.
|
|
12918
12919
|
*/
|
|
@@ -12946,7 +12947,6 @@ export class EntityStartSneakingAfterEventSignal {
|
|
|
12946
12947
|
}
|
|
12947
12948
|
|
|
12948
12949
|
/**
|
|
12949
|
-
* @rc
|
|
12950
12950
|
* Contains data related to an entity stopping sneaking.
|
|
12951
12951
|
*/
|
|
12952
12952
|
export class EntityStopSneakingAfterEvent {
|
|
@@ -12960,7 +12960,6 @@ export class EntityStopSneakingAfterEvent {
|
|
|
12960
12960
|
}
|
|
12961
12961
|
|
|
12962
12962
|
/**
|
|
12963
|
-
* @rc
|
|
12964
12963
|
* Manages callbacks that are connected to when an entity stops
|
|
12965
12964
|
* sneaking.
|
|
12966
12965
|
*/
|
|
@@ -13081,7 +13080,6 @@ export class EntityTameableComponent extends EntityComponent {
|
|
|
13081
13080
|
}
|
|
13082
13081
|
|
|
13083
13082
|
/**
|
|
13084
|
-
* @rc
|
|
13085
13083
|
* Contains data related to an entity being tamed.
|
|
13086
13084
|
*/
|
|
13087
13085
|
export class EntityTamedAfterEvent {
|
|
@@ -13091,7 +13089,6 @@ export class EntityTamedAfterEvent {
|
|
|
13091
13089
|
}
|
|
13092
13090
|
|
|
13093
13091
|
/**
|
|
13094
|
-
* @rc
|
|
13095
13092
|
* Manages callbacks that are connected to when an entity is
|
|
13096
13093
|
* tamed.
|
|
13097
13094
|
*/
|
|
@@ -13119,7 +13116,6 @@ export class EntityTamedAfterEventSignal {
|
|
|
13119
13116
|
}
|
|
13120
13117
|
|
|
13121
13118
|
/**
|
|
13122
|
-
* @rc
|
|
13123
13119
|
* Contains information regarding an event before an entity is
|
|
13124
13120
|
* tamed.
|
|
13125
13121
|
*/
|
|
@@ -13146,7 +13142,6 @@ export class EntityTamedBeforeEvent {
|
|
|
13146
13142
|
}
|
|
13147
13143
|
|
|
13148
13144
|
/**
|
|
13149
|
-
* @rc
|
|
13150
13145
|
* Manages callbacks that are connected to before an entity is
|
|
13151
13146
|
* tamed.
|
|
13152
13147
|
*/
|
|
@@ -13697,7 +13692,6 @@ export class FluidContainer {
|
|
|
13697
13692
|
}
|
|
13698
13693
|
|
|
13699
13694
|
/**
|
|
13700
|
-
* @rc
|
|
13701
13695
|
* Provides access to the fog definitions stack of a player
|
|
13702
13696
|
* entity, allowing scripts to push, pop, remove, and query
|
|
13703
13697
|
* active fog definitions.
|
|
@@ -14172,7 +14166,6 @@ export class ISerializable {
|
|
|
14172
14166
|
}
|
|
14173
14167
|
|
|
14174
14168
|
/**
|
|
14175
|
-
* @rc
|
|
14176
14169
|
* Represents the dynamic properties of a block. Only available
|
|
14177
14170
|
* from block entities. Up to 1KBytes of data can be stored per
|
|
14178
14171
|
* content pack per block entity in their dynamic properties
|
|
@@ -17184,7 +17177,6 @@ export class Player extends Entity {
|
|
|
17184
17177
|
*/
|
|
17185
17178
|
commandPermissionLevel: CommandPermissionLevel;
|
|
17186
17179
|
/**
|
|
17187
|
-
* @rc
|
|
17188
17180
|
* @remarks
|
|
17189
17181
|
* Contains methods for manipulating the render distance fog
|
|
17190
17182
|
* settings of a Player.
|
|
@@ -19643,7 +19635,6 @@ export class PrimitiveShapesManager {
|
|
|
19643
19635
|
*/
|
|
19644
19636
|
addText(text: TextPrimitive, dimension?: Dimension): void;
|
|
19645
19637
|
/**
|
|
19646
|
-
* @rc
|
|
19647
19638
|
* @remarks
|
|
19648
19639
|
* Fetches and queries all primitive shapes stored in the
|
|
19649
19640
|
* manager and returns the results as an array of shape
|
|
@@ -20891,7 +20882,6 @@ export class SmeltItemFunction extends LootItemFunction {
|
|
|
20891
20882
|
}
|
|
20892
20883
|
|
|
20893
20884
|
/**
|
|
20894
|
-
* @rc
|
|
20895
20885
|
* Contains information about a sound thats declared duration
|
|
20896
20886
|
* elapsed.
|
|
20897
20887
|
*/
|
|
@@ -20908,7 +20898,6 @@ export class SoundCompletedAfterEvent {
|
|
|
20908
20898
|
}
|
|
20909
20899
|
|
|
20910
20900
|
/**
|
|
20911
|
-
* @rc
|
|
20912
20901
|
* Manages callbacks that are invoked when a tracked sound's
|
|
20913
20902
|
* declared duration elapses.
|
|
20914
20903
|
*/
|
|
@@ -20945,7 +20934,6 @@ export class SoundCompletedAfterEventSignal {
|
|
|
20945
20934
|
export class SoundDefinition {
|
|
20946
20935
|
private constructor();
|
|
20947
20936
|
/**
|
|
20948
|
-
* @rc
|
|
20949
20937
|
* @remarks
|
|
20950
20938
|
* Duration metadata declared for this sound. Undefined when
|
|
20951
20939
|
* the sound definition does not specify a duration.
|
|
@@ -20953,7 +20941,6 @@ export class SoundDefinition {
|
|
|
20953
20941
|
*/
|
|
20954
20942
|
readonly durationInfo?: SoundDefinitionDurationInfo;
|
|
20955
20943
|
/**
|
|
20956
|
-
* @rc
|
|
20957
20944
|
* @remarks
|
|
20958
20945
|
* Music metadata declared for this sound. Undefined when the
|
|
20959
20946
|
* sound definition does not specify a music_info block.
|
|
@@ -20961,7 +20948,6 @@ export class SoundDefinition {
|
|
|
20961
20948
|
*/
|
|
20962
20949
|
readonly musicInfo?: SoundDefinitionMusicInfo;
|
|
20963
20950
|
/**
|
|
20964
|
-
* @rc
|
|
20965
20951
|
* @remarks
|
|
20966
20952
|
* Identifier of the sound event this definition declares, in
|
|
20967
20953
|
* the form 'namespace:name'.
|
|
@@ -20969,7 +20955,6 @@ export class SoundDefinition {
|
|
|
20969
20955
|
*/
|
|
20970
20956
|
readonly soundEventId: string;
|
|
20971
20957
|
/**
|
|
20972
|
-
* @rc
|
|
20973
20958
|
* @remarks
|
|
20974
20959
|
* Tag metadata declared for this sound, as a record mapping
|
|
20975
20960
|
* each tag name to its declared values. A tag declared with a
|
|
@@ -20982,7 +20967,6 @@ export class SoundDefinition {
|
|
|
20982
20967
|
}
|
|
20983
20968
|
|
|
20984
20969
|
/**
|
|
20985
|
-
* @rc
|
|
20986
20970
|
* Provides read-only access to the sound definitions loaded
|
|
20987
20971
|
* for the current world.
|
|
20988
20972
|
*/
|
|
@@ -21009,7 +20993,6 @@ export class SoundDefinitionRegistry {
|
|
|
21009
20993
|
}
|
|
21010
20994
|
|
|
21011
20995
|
/**
|
|
21012
|
-
* @rc
|
|
21013
20996
|
* Provides duration and playback information for a sound whose
|
|
21014
20997
|
* definition declares a duration.
|
|
21015
20998
|
*/
|
|
@@ -21053,34 +21036,112 @@ export class SoundDurationInfo {
|
|
|
21053
21036
|
export class SoundInstance {
|
|
21054
21037
|
private constructor();
|
|
21055
21038
|
/**
|
|
21056
|
-
* @rc
|
|
21057
21039
|
* @remarks
|
|
21058
21040
|
* Gets duration and playback information for this sound.
|
|
21059
21041
|
*
|
|
21060
21042
|
*/
|
|
21061
21043
|
readonly durationInfo?: SoundDurationInfo;
|
|
21062
21044
|
/**
|
|
21063
|
-
* @rc
|
|
21064
21045
|
* @remarks
|
|
21065
21046
|
* Unique identifier of this sound instance.
|
|
21066
21047
|
*
|
|
21067
21048
|
*/
|
|
21068
21049
|
readonly id: string;
|
|
21069
21050
|
/**
|
|
21070
|
-
* @rc
|
|
21071
21051
|
* @remarks
|
|
21072
21052
|
* Gets the player this sound was played for.
|
|
21073
21053
|
*
|
|
21074
21054
|
*/
|
|
21075
21055
|
readonly recipient?: Player;
|
|
21076
21056
|
/**
|
|
21077
|
-
* @rc
|
|
21078
21057
|
* @remarks
|
|
21079
21058
|
* Gets the identifier of the sound event this instance was
|
|
21080
21059
|
* started with.
|
|
21081
21060
|
*
|
|
21082
21061
|
*/
|
|
21083
21062
|
readonly soundEventId: string;
|
|
21063
|
+
/**
|
|
21064
|
+
* @rc
|
|
21065
|
+
* @remarks
|
|
21066
|
+
* Fades this sound instance from its current volume multiplier
|
|
21067
|
+
* to the target multiplier over the specified duration. Volume
|
|
21068
|
+
* multipliers are relative to the selected sound variant's
|
|
21069
|
+
* volume. To fade in from silence, call `setVolume(0.0)`
|
|
21070
|
+
* first; to fade out, pass a target volume of `0.0`.
|
|
21071
|
+
*
|
|
21072
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
21073
|
+
*
|
|
21074
|
+
* @param duration
|
|
21075
|
+
* Duration of the fade in seconds. Must be non-negative.
|
|
21076
|
+
* Minimum value: 0
|
|
21077
|
+
* @param targetVolume
|
|
21078
|
+
* Volume multiplier to fade to, relative to the selected sound
|
|
21079
|
+
* variant's volume. Must be non-negative.
|
|
21080
|
+
* Minimum value: 0
|
|
21081
|
+
*/
|
|
21082
|
+
fade(duration: number, targetVolume: number): void;
|
|
21083
|
+
/**
|
|
21084
|
+
* @rc
|
|
21085
|
+
* @remarks
|
|
21086
|
+
* Pauses this sound.
|
|
21087
|
+
*
|
|
21088
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
21089
|
+
*
|
|
21090
|
+
*/
|
|
21091
|
+
pause(): void;
|
|
21092
|
+
/**
|
|
21093
|
+
* @rc
|
|
21094
|
+
* @remarks
|
|
21095
|
+
* Resumes this sound after a pause.
|
|
21096
|
+
*
|
|
21097
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
21098
|
+
*
|
|
21099
|
+
*/
|
|
21100
|
+
resume(): void;
|
|
21101
|
+
/**
|
|
21102
|
+
* @rc
|
|
21103
|
+
* @remarks
|
|
21104
|
+
* Sets the playback position of this sound instance.
|
|
21105
|
+
*
|
|
21106
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
21107
|
+
*
|
|
21108
|
+
* @param seconds
|
|
21109
|
+
* Position to seek to in seconds. Must be non-negative.
|
|
21110
|
+
* Bounds: [0, 107374184]
|
|
21111
|
+
* @throws
|
|
21112
|
+
* Throws if `seconds` is negative, or if the sound has a known
|
|
21113
|
+
* duration and `seconds` is greater than that duration.
|
|
21114
|
+
*
|
|
21115
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
21116
|
+
*/
|
|
21117
|
+
seekTo(seconds: number): void;
|
|
21118
|
+
/**
|
|
21119
|
+
* @rc
|
|
21120
|
+
* @remarks
|
|
21121
|
+
* Sets the pitch of this sound instance.
|
|
21122
|
+
*
|
|
21123
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
21124
|
+
*
|
|
21125
|
+
* @param pitch
|
|
21126
|
+
* Pitch multiplier between 0.01 and 10.0. A value of 1.0 is
|
|
21127
|
+
* normal pitch.
|
|
21128
|
+
* Bounds: [0.009999999776482582, 10]
|
|
21129
|
+
*/
|
|
21130
|
+
setPitch(pitch: number): void;
|
|
21131
|
+
/**
|
|
21132
|
+
* @rc
|
|
21133
|
+
* @remarks
|
|
21134
|
+
* Sets the volume multiplier of this sound instance relative
|
|
21135
|
+
* to the volume of the selected sound variant.
|
|
21136
|
+
*
|
|
21137
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
21138
|
+
*
|
|
21139
|
+
* @param volume
|
|
21140
|
+
* Volume multiplier between 0.0 and 10.0. A value of 1.0 uses
|
|
21141
|
+
* the selected sound variant's volume.
|
|
21142
|
+
* Bounds: [0, 10]
|
|
21143
|
+
*/
|
|
21144
|
+
setVolume(volume: number): void;
|
|
21084
21145
|
/**
|
|
21085
21146
|
* @remarks
|
|
21086
21147
|
* Stops this sound instance from playing.
|
|
@@ -22478,7 +22539,6 @@ export class World {
|
|
|
22478
22539
|
*/
|
|
22479
22540
|
readonly seed: string;
|
|
22480
22541
|
/**
|
|
22481
|
-
* @rc
|
|
22482
22542
|
* @remarks
|
|
22483
22543
|
* Provides read-only access to the sound definitions loaded
|
|
22484
22544
|
* for this world.
|
|
@@ -23112,7 +23172,6 @@ export class WorldAfterEvents {
|
|
|
23112
23172
|
*/
|
|
23113
23173
|
readonly entitySpawn: EntitySpawnAfterEventSignal;
|
|
23114
23174
|
/**
|
|
23115
|
-
* @rc
|
|
23116
23175
|
* @remarks
|
|
23117
23176
|
* This event fires when an entity starts sneaking.
|
|
23118
23177
|
*
|
|
@@ -23121,7 +23180,6 @@ export class WorldAfterEvents {
|
|
|
23121
23180
|
*/
|
|
23122
23181
|
readonly entityStartSneaking: EntityStartSneakingAfterEventSignal;
|
|
23123
23182
|
/**
|
|
23124
|
-
* @rc
|
|
23125
23183
|
* @remarks
|
|
23126
23184
|
* This event fires when an entity stops sneaking.
|
|
23127
23185
|
*
|
|
@@ -23130,7 +23188,6 @@ export class WorldAfterEvents {
|
|
|
23130
23188
|
*/
|
|
23131
23189
|
readonly entityStopSneaking: EntityStopSneakingAfterEventSignal;
|
|
23132
23190
|
/**
|
|
23133
|
-
* @rc
|
|
23134
23191
|
* @remarks
|
|
23135
23192
|
* This event fires when an entity is tamed.
|
|
23136
23193
|
*
|
|
@@ -23420,7 +23477,6 @@ export class WorldAfterEvents {
|
|
|
23420
23477
|
*/
|
|
23421
23478
|
readonly projectileHitEntity: ProjectileHitEntityAfterEventSignal;
|
|
23422
23479
|
/**
|
|
23423
|
-
* @rc
|
|
23424
23480
|
* @remarks
|
|
23425
23481
|
* A tracked sound's declared duration elapsed.
|
|
23426
23482
|
*
|
|
@@ -23509,7 +23565,6 @@ export class WorldBeforeEvents {
|
|
|
23509
23565
|
*/
|
|
23510
23566
|
readonly entityRemove: EntityRemoveBeforeEventSignal;
|
|
23511
23567
|
/**
|
|
23512
|
-
* @rc
|
|
23513
23568
|
* @remarks
|
|
23514
23569
|
* Fires before an entity is tamed.
|
|
23515
23570
|
*
|
|
@@ -23926,7 +23981,6 @@ export interface BlockHitInformation {
|
|
|
23926
23981
|
}
|
|
23927
23982
|
|
|
23928
23983
|
/**
|
|
23929
|
-
* @rc
|
|
23930
23984
|
* Options for querying blocks in a volume. Extends BlockFilter
|
|
23931
23985
|
* with additional sorting and limiting options based on
|
|
23932
23986
|
* distance from a location.
|
|
@@ -24130,7 +24184,6 @@ export interface CameraSetRotOptions {
|
|
|
24130
24184
|
}
|
|
24131
24185
|
|
|
24132
24186
|
/**
|
|
24133
|
-
* @rc
|
|
24134
24187
|
* Options for applying a camera shake effect to a player's
|
|
24135
24188
|
* camera via `Camera.addShake`. Each call to `addShake` queues
|
|
24136
24189
|
* a new independent shake event for the specified `type`;
|
|
@@ -25175,7 +25228,6 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
25175
25228
|
}
|
|
25176
25229
|
|
|
25177
25230
|
/**
|
|
25178
|
-
* @rc
|
|
25179
25231
|
* Options used to filter entity start sneaking and stop
|
|
25180
25232
|
* sneaking events.
|
|
25181
25233
|
*/
|
|
@@ -25184,7 +25236,6 @@ export interface EntitySneakingChangedEventOptions {
|
|
|
25184
25236
|
}
|
|
25185
25237
|
|
|
25186
25238
|
/**
|
|
25187
|
-
* @rc
|
|
25188
25239
|
* Contains options for filtering entity tamed events.
|
|
25189
25240
|
*/
|
|
25190
25241
|
export interface EntityTamedEventOptions {
|
|
@@ -25736,6 +25787,19 @@ export interface PlayerSoundOptions {
|
|
|
25736
25787
|
*
|
|
25737
25788
|
*/
|
|
25738
25789
|
location?: Vector3;
|
|
25790
|
+
/**
|
|
25791
|
+
* @rc
|
|
25792
|
+
* @remarks
|
|
25793
|
+
* Number of additional times to repeat the sound after the
|
|
25794
|
+
* initial play. `0` (the default) plays the sound once, `-1`
|
|
25795
|
+
* loops it forever, and a positive integer `N` plays the sound
|
|
25796
|
+
* `N + 1` times in total. For example, `loopCount: 1` plays
|
|
25797
|
+
* the sound twice. The loop count is fixed when the sound
|
|
25798
|
+
* starts and cannot be changed afterward. When using `-1`, see
|
|
25799
|
+
* `SoundInstance` for handle lifetime requirements.
|
|
25800
|
+
*
|
|
25801
|
+
*/
|
|
25802
|
+
loopCount?: number;
|
|
25739
25803
|
/**
|
|
25740
25804
|
* @remarks
|
|
25741
25805
|
* Optional pitch of the sound.
|
|
@@ -25808,7 +25872,6 @@ export interface PlayerVisibilityRules extends EntityVisibilityRules {
|
|
|
25808
25872
|
}
|
|
25809
25873
|
|
|
25810
25874
|
/**
|
|
25811
|
-
* @rc
|
|
25812
25875
|
* Contains optional filters that control which primitive
|
|
25813
25876
|
* shapes are returned from a primitive shapes query.
|
|
25814
25877
|
*/
|
|
@@ -26166,7 +26229,6 @@ export interface ScriptEventMessageFilterOptions {
|
|
|
26166
26229
|
}
|
|
26167
26230
|
|
|
26168
26231
|
/**
|
|
26169
|
-
* @rc
|
|
26170
26232
|
* Duration metadata declared in a sound definition.
|
|
26171
26233
|
*/
|
|
26172
26234
|
export interface SoundDefinitionDurationInfo {
|
|
@@ -26180,7 +26242,6 @@ export interface SoundDefinitionDurationInfo {
|
|
|
26180
26242
|
}
|
|
26181
26243
|
|
|
26182
26244
|
/**
|
|
26183
|
-
* @rc
|
|
26184
26245
|
* Criteria used to narrow a set of sound definitions. Each
|
|
26185
26246
|
* field is optional and applies its constraint only when
|
|
26186
26247
|
* defined; a definition must satisfy every defined field to
|
|
@@ -26259,7 +26320,6 @@ export interface SoundDefinitionFilter {
|
|
|
26259
26320
|
}
|
|
26260
26321
|
|
|
26261
26322
|
/**
|
|
26262
|
-
* @rc
|
|
26263
26323
|
* Music metadata declared on a sound definition. Each field is
|
|
26264
26324
|
* optional and is undefined when the sound definition does not
|
|
26265
26325
|
* declare a value for it.
|
|
@@ -26727,10 +26787,20 @@ export interface WaypointTextureSelector {
|
|
|
26727
26787
|
* Contains additional options for a playSound occurrence.
|
|
26728
26788
|
*/
|
|
26729
26789
|
export interface WorldSoundOptions {
|
|
26790
|
+
isBroadcast?: boolean;
|
|
26730
26791
|
/**
|
|
26731
26792
|
* @rc
|
|
26793
|
+
* @remarks
|
|
26794
|
+
* Number of additional times to repeat the sound after the
|
|
26795
|
+
* initial play. `0` (the default) plays the sound once, `-1`
|
|
26796
|
+
* loops it forever, and a positive integer `N` plays the sound
|
|
26797
|
+
* `N + 1` times in total. For example, `loopCount: 1` plays
|
|
26798
|
+
* the sound twice. The loop count is fixed when the sound
|
|
26799
|
+
* starts and cannot be changed afterward. When using `-1`, see
|
|
26800
|
+
* `SoundInstance` for handle lifetime requirements.
|
|
26801
|
+
*
|
|
26732
26802
|
*/
|
|
26733
|
-
|
|
26803
|
+
loopCount?: number;
|
|
26734
26804
|
/**
|
|
26735
26805
|
* @remarks
|
|
26736
26806
|
* Pitch of the sound played.
|
|
@@ -26921,7 +26991,6 @@ export class EntitySpawnError extends Error {
|
|
|
26921
26991
|
}
|
|
26922
26992
|
|
|
26923
26993
|
/**
|
|
26924
|
-
* @rc
|
|
26925
26994
|
* Error thrown by {@link FogSettings} operations when the fog
|
|
26926
26995
|
* stack limit is exceeded or an invalid fog identifier is
|
|
26927
26996
|
* provided.
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.11.0-rc.1.26.60-preview.
|
|
4
|
-
"description": "",
|
|
5
|
-
"contributors": [
|
|
6
|
-
{
|
|
7
|
-
"name": "Jake Shirley",
|
|
8
|
-
"email": "jake@xbox.com"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"name": "Mike Ammerlaan",
|
|
12
|
-
"email": "mikeam@microsoft.com"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@minecraft/common": "^1.2.0",
|
|
17
|
-
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.60-preview.
|
|
18
|
-
},
|
|
19
|
-
"license": "MIT"
|
|
1
|
+
{
|
|
2
|
+
"name": "@minecraft/server",
|
|
3
|
+
"version": "2.11.0-rc.1.26.60-preview.28",
|
|
4
|
+
"description": "",
|
|
5
|
+
"contributors": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Jake Shirley",
|
|
8
|
+
"email": "jake@xbox.com"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Mike Ammerlaan",
|
|
12
|
+
"email": "mikeam@microsoft.com"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@minecraft/common": "^1.2.0",
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.60-preview.28"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT"
|
|
20
20
|
}
|