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