@minecraft/server 2.9.0-beta.1.26.30-preview.25 → 2.9.0-beta.1.26.30-preview.27
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 +67 -6
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -3907,14 +3907,12 @@ export class BiomeType {
|
|
|
3907
3907
|
*/
|
|
3908
3908
|
readonly id: string;
|
|
3909
3909
|
/**
|
|
3910
|
-
* @rc
|
|
3911
3910
|
* @remarks
|
|
3912
3911
|
* Returns a list of the biome's tags.
|
|
3913
3912
|
*
|
|
3914
3913
|
*/
|
|
3915
3914
|
getTags(): string[];
|
|
3916
3915
|
/**
|
|
3917
|
-
* @rc
|
|
3918
3916
|
* @remarks
|
|
3919
3917
|
* Checks if the biome has all of the provided tags.
|
|
3920
3918
|
*
|
|
@@ -3925,7 +3923,6 @@ export class BiomeType {
|
|
|
3925
3923
|
}
|
|
3926
3924
|
|
|
3927
3925
|
/**
|
|
3928
|
-
* @rc
|
|
3929
3926
|
* Supports a catalog of available biome types registered
|
|
3930
3927
|
* within Minecraft.
|
|
3931
3928
|
*/
|
|
@@ -5767,7 +5764,7 @@ export class BlockPrecipitationInteractionsComponent extends BlockComponent {
|
|
|
5767
5764
|
*/
|
|
5768
5765
|
accumulatesSnow(): boolean;
|
|
5769
5766
|
/**
|
|
5770
|
-
* @
|
|
5767
|
+
* @rc
|
|
5771
5768
|
* @remarks
|
|
5772
5769
|
* Returns `true` if this block can have snow within it, like a
|
|
5773
5770
|
* flower submerged in snow. Returns `false` if this block
|
|
@@ -9646,7 +9643,6 @@ export class Entity {
|
|
|
9646
9643
|
*/
|
|
9647
9644
|
addEffect(effectType: EffectType | string, duration: number, options?: EntityEffectOptions): Effect | undefined;
|
|
9648
9645
|
/**
|
|
9649
|
-
* @rc
|
|
9650
9646
|
* @remarks
|
|
9651
9647
|
* Adds an item to the entity's inventory.
|
|
9652
9648
|
*
|
|
@@ -13517,6 +13513,54 @@ export class EntitySpawnAfterEventSignal {
|
|
|
13517
13513
|
unsubscribe(callback: (arg0: EntitySpawnAfterEvent) => void): void;
|
|
13518
13514
|
}
|
|
13519
13515
|
|
|
13516
|
+
/**
|
|
13517
|
+
* @beta
|
|
13518
|
+
* Contains data related to an entity beginning to sneak.
|
|
13519
|
+
*/
|
|
13520
|
+
export class EntityStartSneakingAfterEvent {
|
|
13521
|
+
private constructor();
|
|
13522
|
+
/**
|
|
13523
|
+
* @remarks
|
|
13524
|
+
* Entity that has started sneaking.
|
|
13525
|
+
*
|
|
13526
|
+
*/
|
|
13527
|
+
readonly entity: Entity;
|
|
13528
|
+
}
|
|
13529
|
+
|
|
13530
|
+
/**
|
|
13531
|
+
* @beta
|
|
13532
|
+
* Manages callbacks that are connected to when an entity
|
|
13533
|
+
* begins sneaking.
|
|
13534
|
+
*/
|
|
13535
|
+
export class EntityStartSneakingAfterEventSignal {
|
|
13536
|
+
private constructor();
|
|
13537
|
+
/**
|
|
13538
|
+
* @remarks
|
|
13539
|
+
* Adds a callback that will be called when an entity begins
|
|
13540
|
+
* sneaking.
|
|
13541
|
+
*
|
|
13542
|
+
* This function can't be called in restricted-execution mode.
|
|
13543
|
+
*
|
|
13544
|
+
* This function can be called in early-execution mode.
|
|
13545
|
+
*
|
|
13546
|
+
*/
|
|
13547
|
+
subscribe(
|
|
13548
|
+
callback: (arg0: EntityStartSneakingAfterEvent) => void,
|
|
13549
|
+
options?: EntitySneakingChangedEventOptions,
|
|
13550
|
+
): (arg0: EntityStartSneakingAfterEvent) => void;
|
|
13551
|
+
/**
|
|
13552
|
+
* @remarks
|
|
13553
|
+
* Removes a callback from being called when an entity begins
|
|
13554
|
+
* sneaking.
|
|
13555
|
+
*
|
|
13556
|
+
* This function can't be called in restricted-execution mode.
|
|
13557
|
+
*
|
|
13558
|
+
* This function can be called in early-execution mode.
|
|
13559
|
+
*
|
|
13560
|
+
*/
|
|
13561
|
+
unsubscribe(callback: (arg0: EntityStartSneakingAfterEvent) => void): void;
|
|
13562
|
+
}
|
|
13563
|
+
|
|
13520
13564
|
/**
|
|
13521
13565
|
* Defines the entity's ability to carry items. An entity with
|
|
13522
13566
|
* a higher strength would have higher potential carry capacity
|
|
@@ -23528,6 +23572,15 @@ export class WorldAfterEvents {
|
|
|
23528
23572
|
*
|
|
23529
23573
|
*/
|
|
23530
23574
|
readonly entitySpawn: EntitySpawnAfterEventSignal;
|
|
23575
|
+
/**
|
|
23576
|
+
* @beta
|
|
23577
|
+
* @remarks
|
|
23578
|
+
* This event fires when an entity starts sneaking.
|
|
23579
|
+
*
|
|
23580
|
+
* This property can be read in early-execution mode.
|
|
23581
|
+
*
|
|
23582
|
+
*/
|
|
23583
|
+
readonly entityStartSneaking: EntityStartSneakingAfterEventSignal;
|
|
23531
23584
|
/**
|
|
23532
23585
|
* @beta
|
|
23533
23586
|
* @remarks
|
|
@@ -25596,6 +25649,15 @@ export interface EntityRaycastOptions extends EntityFilter {
|
|
|
25596
25649
|
maxDistance?: number;
|
|
25597
25650
|
}
|
|
25598
25651
|
|
|
25652
|
+
/**
|
|
25653
|
+
* @beta
|
|
25654
|
+
* Options used to filter entity start sneaking and stop
|
|
25655
|
+
* sneaking events.
|
|
25656
|
+
*/
|
|
25657
|
+
export interface EntitySneakingChangedEventOptions {
|
|
25658
|
+
entityFilter?: EntityFilter;
|
|
25659
|
+
}
|
|
25660
|
+
|
|
25599
25661
|
/**
|
|
25600
25662
|
* @beta
|
|
25601
25663
|
* Controls when a waypoint is visible based on the state of
|
|
@@ -27182,7 +27244,6 @@ export class InvalidContainerSlotError extends Error {
|
|
|
27182
27244
|
}
|
|
27183
27245
|
|
|
27184
27246
|
/**
|
|
27185
|
-
* @rc
|
|
27186
27247
|
* This error can occur when accessing components on an entity
|
|
27187
27248
|
* that doesn't have them.
|
|
27188
27249
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.9.0-beta.1.26.30-preview.
|
|
3
|
+
"version": "2.9.0-beta.1.26.30-preview.27",
|
|
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.30-preview.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.30-preview.27"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|