@minecraft/server 1.8.0-rc.1.20.70-preview.21 → 1.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.
- package/index.d.ts +1 -22
- 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
|
*
|
|
@@ -269,7 +269,6 @@ export enum EntityDamageCause {
|
|
|
269
269
|
*/
|
|
270
270
|
projectile = 'projectile',
|
|
271
271
|
ramAttack = 'ramAttack',
|
|
272
|
-
selfDestruct = 'selfDestruct',
|
|
273
272
|
sonicBoom = 'sonicBoom',
|
|
274
273
|
soulCampfire = 'soulCampfire',
|
|
275
274
|
/**
|
|
@@ -423,34 +422,29 @@ export enum EquipmentSlot {
|
|
|
423
422
|
}
|
|
424
423
|
|
|
425
424
|
/**
|
|
426
|
-
* @beta
|
|
427
425
|
* Represents the type of fluid for use within a fluid
|
|
428
426
|
* containing block, like a cauldron.
|
|
429
427
|
*/
|
|
430
428
|
export enum FluidType {
|
|
431
429
|
/**
|
|
432
|
-
* @beta
|
|
433
430
|
* @remarks
|
|
434
431
|
* Represents lava as a type of fluid.
|
|
435
432
|
*
|
|
436
433
|
*/
|
|
437
434
|
Lava = 'Lava',
|
|
438
435
|
/**
|
|
439
|
-
* @beta
|
|
440
436
|
* @remarks
|
|
441
437
|
* Represents a potion as a type of fluid.
|
|
442
438
|
*
|
|
443
439
|
*/
|
|
444
440
|
Potion = 'Potion',
|
|
445
441
|
/**
|
|
446
|
-
* @beta
|
|
447
442
|
* @remarks
|
|
448
443
|
* Represents powder snow as a type of fluid.
|
|
449
444
|
*
|
|
450
445
|
*/
|
|
451
446
|
PowderSnow = 'PowderSnow',
|
|
452
447
|
/**
|
|
453
|
-
* @beta
|
|
454
448
|
* @remarks
|
|
455
449
|
* Represents water as a type of fluida.
|
|
456
450
|
*
|
|
@@ -902,7 +896,6 @@ export class Block {
|
|
|
902
896
|
*/
|
|
903
897
|
getComponent(componentId: string): BlockComponent | undefined;
|
|
904
898
|
/**
|
|
905
|
-
* @beta
|
|
906
899
|
* @remarks
|
|
907
900
|
* Returns a set of tags for a block.
|
|
908
901
|
*
|
|
@@ -916,7 +909,6 @@ export class Block {
|
|
|
916
909
|
*/
|
|
917
910
|
getTags(): string[];
|
|
918
911
|
/**
|
|
919
|
-
* @beta
|
|
920
912
|
* @remarks
|
|
921
913
|
* Checks to see if the permutation of this block has a
|
|
922
914
|
* specific tag.
|
|
@@ -1094,7 +1086,6 @@ export class BlockInventoryComponent extends BlockComponent {
|
|
|
1094
1086
|
export class BlockPermutation {
|
|
1095
1087
|
private constructor();
|
|
1096
1088
|
/**
|
|
1097
|
-
* @beta
|
|
1098
1089
|
* @remarks
|
|
1099
1090
|
* Gets a state for the permutation.
|
|
1100
1091
|
*
|
|
@@ -1116,7 +1107,6 @@ export class BlockPermutation {
|
|
|
1116
1107
|
*/
|
|
1117
1108
|
matches(blockName: string, states?: Record<string, boolean | number | string>): boolean;
|
|
1118
1109
|
/**
|
|
1119
|
-
* @beta
|
|
1120
1110
|
* @remarks
|
|
1121
1111
|
* Returns a derived BlockPermutation with a specific property
|
|
1122
1112
|
* set.
|
|
@@ -1182,7 +1172,6 @@ export class BlockPermutation {
|
|
|
1182
1172
|
}
|
|
1183
1173
|
|
|
1184
1174
|
/**
|
|
1185
|
-
* @beta
|
|
1186
1175
|
* The type (or template) of a block. Does not contain
|
|
1187
1176
|
* permutation data (state) other than the type of block it
|
|
1188
1177
|
* represents. This type was introduced as of version
|
|
@@ -1485,7 +1474,6 @@ export class Container {
|
|
|
1485
1474
|
}
|
|
1486
1475
|
|
|
1487
1476
|
/**
|
|
1488
|
-
* @beta
|
|
1489
1477
|
* Contains information related to firing of a data driven
|
|
1490
1478
|
* entity event - for example, the minecraft:ageable_grow_up
|
|
1491
1479
|
* event on a chicken.
|
|
@@ -1514,7 +1502,6 @@ export class DataDrivenEntityTriggerAfterEvent {
|
|
|
1514
1502
|
}
|
|
1515
1503
|
|
|
1516
1504
|
/**
|
|
1517
|
-
* @beta
|
|
1518
1505
|
* Contains event registration related to firing of a data
|
|
1519
1506
|
* driven entity event - for example, the
|
|
1520
1507
|
* minecraft:ageable_grow_up event on a chicken.
|
|
@@ -1599,7 +1586,6 @@ export class Dimension {
|
|
|
1599
1586
|
* Vector direction to cast the ray.
|
|
1600
1587
|
* @param options
|
|
1601
1588
|
* Additional options for processing this raycast query.
|
|
1602
|
-
* @throws This function can throw errors.
|
|
1603
1589
|
*/
|
|
1604
1590
|
getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
1605
1591
|
/**
|
|
@@ -1954,7 +1940,6 @@ export class Effect {
|
|
|
1954
1940
|
}
|
|
1955
1941
|
|
|
1956
1942
|
/**
|
|
1957
|
-
* @beta
|
|
1958
1943
|
* Contains information related to changes to an effect - like
|
|
1959
1944
|
* poison - being added to an entity.
|
|
1960
1945
|
*/
|
|
@@ -1975,7 +1960,6 @@ export class EffectAddAfterEvent {
|
|
|
1975
1960
|
}
|
|
1976
1961
|
|
|
1977
1962
|
/**
|
|
1978
|
-
* @beta
|
|
1979
1963
|
* Manages callbacks that are connected to when an effect is
|
|
1980
1964
|
* added to an entity.
|
|
1981
1965
|
*/
|
|
@@ -2006,7 +1990,6 @@ export class EffectAddAfterEventSignal {
|
|
|
2006
1990
|
}
|
|
2007
1991
|
|
|
2008
1992
|
/**
|
|
2009
|
-
* @beta
|
|
2010
1993
|
* Contains information related to changes to an effect - like
|
|
2011
1994
|
* poison - being added to an entity.
|
|
2012
1995
|
*/
|
|
@@ -2039,7 +2022,6 @@ export class EffectAddBeforeEvent {
|
|
|
2039
2022
|
}
|
|
2040
2023
|
|
|
2041
2024
|
/**
|
|
2042
|
-
* @beta
|
|
2043
2025
|
* Manages callbacks that are connected to when an effect is
|
|
2044
2026
|
* added to an entity.
|
|
2045
2027
|
*/
|
|
@@ -7537,7 +7519,6 @@ export class WorldAfterEvents {
|
|
|
7537
7519
|
*/
|
|
7538
7520
|
readonly buttonPush: ButtonPushAfterEventSignal;
|
|
7539
7521
|
/**
|
|
7540
|
-
* @beta
|
|
7541
7522
|
* @remarks
|
|
7542
7523
|
* This event is fired when an entity event has been triggered
|
|
7543
7524
|
* that will update the component definition state of an
|
|
@@ -7973,7 +7954,6 @@ export interface CameraSetRotOptions {
|
|
|
7973
7954
|
}
|
|
7974
7955
|
|
|
7975
7956
|
/**
|
|
7976
|
-
* @beta
|
|
7977
7957
|
* Contains a set of updates to the component definition state
|
|
7978
7958
|
* of an entity.
|
|
7979
7959
|
*/
|
|
@@ -8088,7 +8068,6 @@ export interface EntityDamageSource {
|
|
|
8088
8068
|
}
|
|
8089
8069
|
|
|
8090
8070
|
/**
|
|
8091
|
-
* @beta
|
|
8092
8071
|
* Specifies additional filters that are used in registering a
|
|
8093
8072
|
* data driven trigger event for entities.
|
|
8094
8073
|
*/
|