@minecraft/server 1.9.0-rc.1.20.70-preview.21 → 1.9.0-rc.1.20.70-preview.22
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 +15 -20
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* ```json
|
|
16
16
|
* {
|
|
17
17
|
* "module_name": "@minecraft/server",
|
|
18
|
-
* "version": "1.
|
|
18
|
+
* "version": "1.8.0"
|
|
19
19
|
* }
|
|
20
20
|
* ```
|
|
21
21
|
*
|
|
@@ -577,34 +577,29 @@ export enum EquipmentSlot {
|
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
/**
|
|
580
|
-
* @beta
|
|
581
580
|
* Represents the type of fluid for use within a fluid
|
|
582
581
|
* containing block, like a cauldron.
|
|
583
582
|
*/
|
|
584
583
|
export enum FluidType {
|
|
585
584
|
/**
|
|
586
|
-
* @beta
|
|
587
585
|
* @remarks
|
|
588
586
|
* Represents lava as a type of fluid.
|
|
589
587
|
*
|
|
590
588
|
*/
|
|
591
589
|
Lava = 'Lava',
|
|
592
590
|
/**
|
|
593
|
-
* @beta
|
|
594
591
|
* @remarks
|
|
595
592
|
* Represents a potion as a type of fluid.
|
|
596
593
|
*
|
|
597
594
|
*/
|
|
598
595
|
Potion = 'Potion',
|
|
599
596
|
/**
|
|
600
|
-
* @beta
|
|
601
597
|
* @remarks
|
|
602
598
|
* Represents powder snow as a type of fluid.
|
|
603
599
|
*
|
|
604
600
|
*/
|
|
605
601
|
PowderSnow = 'PowderSnow',
|
|
606
602
|
/**
|
|
607
|
-
* @beta
|
|
608
603
|
* @remarks
|
|
609
604
|
* Represents water as a type of fluida.
|
|
610
605
|
*
|
|
@@ -1077,7 +1072,6 @@ export class Block {
|
|
|
1077
1072
|
*/
|
|
1078
1073
|
getComponent(componentId: string): BlockComponent | undefined;
|
|
1079
1074
|
/**
|
|
1080
|
-
* @beta
|
|
1081
1075
|
* @remarks
|
|
1082
1076
|
* Returns a set of tags for a block.
|
|
1083
1077
|
*
|
|
@@ -1091,7 +1085,6 @@ export class Block {
|
|
|
1091
1085
|
*/
|
|
1092
1086
|
getTags(): string[];
|
|
1093
1087
|
/**
|
|
1094
|
-
* @beta
|
|
1095
1088
|
* @remarks
|
|
1096
1089
|
* Checks to see if the permutation of this block has a
|
|
1097
1090
|
* specific tag.
|
|
@@ -1280,7 +1273,6 @@ export class BlockPermutation {
|
|
|
1280
1273
|
*/
|
|
1281
1274
|
getAllStates(): Record<string, boolean | number | string>;
|
|
1282
1275
|
/**
|
|
1283
|
-
* @beta
|
|
1284
1276
|
* @remarks
|
|
1285
1277
|
* Gets a state for the permutation.
|
|
1286
1278
|
*
|
|
@@ -1302,7 +1294,6 @@ export class BlockPermutation {
|
|
|
1302
1294
|
*/
|
|
1303
1295
|
matches(blockName: string, states?: Record<string, boolean | number | string>): boolean;
|
|
1304
1296
|
/**
|
|
1305
|
-
* @beta
|
|
1306
1297
|
* @remarks
|
|
1307
1298
|
* Returns a derived BlockPermutation with a specific property
|
|
1308
1299
|
* set.
|
|
@@ -1601,7 +1592,6 @@ export class BlockStateType {
|
|
|
1601
1592
|
}
|
|
1602
1593
|
|
|
1603
1594
|
/**
|
|
1604
|
-
* @beta
|
|
1605
1595
|
* The type (or template) of a block. Does not contain
|
|
1606
1596
|
* permutation data (state) other than the type of block it
|
|
1607
1597
|
* represents. This type was introduced as of version
|
|
@@ -2264,7 +2254,6 @@ export class ContainerSlot {
|
|
|
2264
2254
|
}
|
|
2265
2255
|
|
|
2266
2256
|
/**
|
|
2267
|
-
* @beta
|
|
2268
2257
|
* Contains information related to firing of a data driven
|
|
2269
2258
|
* entity event - for example, the minecraft:ageable_grow_up
|
|
2270
2259
|
* event on a chicken.
|
|
@@ -2293,7 +2282,6 @@ export class DataDrivenEntityTriggerAfterEvent {
|
|
|
2293
2282
|
}
|
|
2294
2283
|
|
|
2295
2284
|
/**
|
|
2296
|
-
* @beta
|
|
2297
2285
|
* Contains event registration related to firing of a data
|
|
2298
2286
|
* driven entity event - for example, the
|
|
2299
2287
|
* minecraft:ageable_grow_up event on a chicken.
|
|
@@ -2821,7 +2809,6 @@ export class Effect {
|
|
|
2821
2809
|
}
|
|
2822
2810
|
|
|
2823
2811
|
/**
|
|
2824
|
-
* @beta
|
|
2825
2812
|
* Contains information related to changes to an effect - like
|
|
2826
2813
|
* poison - being added to an entity.
|
|
2827
2814
|
*/
|
|
@@ -2842,7 +2829,6 @@ export class EffectAddAfterEvent {
|
|
|
2842
2829
|
}
|
|
2843
2830
|
|
|
2844
2831
|
/**
|
|
2845
|
-
* @beta
|
|
2846
2832
|
* Manages callbacks that are connected to when an effect is
|
|
2847
2833
|
* added to an entity.
|
|
2848
2834
|
*/
|
|
@@ -2873,7 +2859,6 @@ export class EffectAddAfterEventSignal {
|
|
|
2873
2859
|
}
|
|
2874
2860
|
|
|
2875
2861
|
/**
|
|
2876
|
-
* @beta
|
|
2877
2862
|
* Contains information related to changes to an effect - like
|
|
2878
2863
|
* poison - being added to an entity.
|
|
2879
2864
|
*/
|
|
@@ -2906,7 +2891,6 @@ export class EffectAddBeforeEvent {
|
|
|
2906
2891
|
}
|
|
2907
2892
|
|
|
2908
2893
|
/**
|
|
2909
|
-
* @beta
|
|
2910
2894
|
* Manages callbacks that are connected to when an effect is
|
|
2911
2895
|
* added to an entity.
|
|
2912
2896
|
*/
|
|
@@ -8800,7 +8784,6 @@ export class WorldAfterEvents {
|
|
|
8800
8784
|
*/
|
|
8801
8785
|
readonly buttonPush: ButtonPushAfterEventSignal;
|
|
8802
8786
|
/**
|
|
8803
|
-
* @beta
|
|
8804
8787
|
* @remarks
|
|
8805
8788
|
* This event is fired when an entity event has been triggered
|
|
8806
8789
|
* that will update the component definition state of an
|
|
@@ -8859,6 +8842,13 @@ export class WorldAfterEvents {
|
|
|
8859
8842
|
*
|
|
8860
8843
|
*/
|
|
8861
8844
|
readonly entitySpawn: EntitySpawnAfterEventSignal;
|
|
8845
|
+
/**
|
|
8846
|
+
* @beta
|
|
8847
|
+
* @remarks
|
|
8848
|
+
* This event is fired after an explosion occurs.
|
|
8849
|
+
*
|
|
8850
|
+
*/
|
|
8851
|
+
readonly explosion: ExplosionAfterEventSignal;
|
|
8862
8852
|
/**
|
|
8863
8853
|
* @remarks
|
|
8864
8854
|
* This event fires when a chargeable item completes charging.
|
|
@@ -9033,6 +9023,13 @@ export class WorldBeforeEvents {
|
|
|
9033
9023
|
*
|
|
9034
9024
|
*/
|
|
9035
9025
|
readonly entityRemove: EntityRemoveBeforeEventSignal;
|
|
9026
|
+
/**
|
|
9027
|
+
* @beta
|
|
9028
|
+
* @remarks
|
|
9029
|
+
* This event is fired after an explosion occurs.
|
|
9030
|
+
*
|
|
9031
|
+
*/
|
|
9032
|
+
readonly explosion: ExplosionBeforeEventSignal;
|
|
9036
9033
|
/**
|
|
9037
9034
|
* @remarks
|
|
9038
9035
|
* This event fires when an item is successfully used by a
|
|
@@ -9251,7 +9248,6 @@ export interface CameraSetRotOptions {
|
|
|
9251
9248
|
}
|
|
9252
9249
|
|
|
9253
9250
|
/**
|
|
9254
|
-
* @beta
|
|
9255
9251
|
* Contains a set of updates to the component definition state
|
|
9256
9252
|
* of an entity.
|
|
9257
9253
|
*/
|
|
@@ -9366,7 +9362,6 @@ export interface EntityDamageSource {
|
|
|
9366
9362
|
}
|
|
9367
9363
|
|
|
9368
9364
|
/**
|
|
9369
|
-
* @beta
|
|
9370
9365
|
* Specifies additional filters that are used in registering a
|
|
9371
9366
|
* data driven trigger event for entities.
|
|
9372
9367
|
*/
|