@minecraft/server 1.15.0-rc.1.21.50-preview.20 → 1.15.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/README.md +0 -2
- package/index.d.ts +9 -34
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
4
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
5
|
See full documentation for this module here:
|
|
8
6
|
|
|
9
7
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
|
package/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
***************************************************************************** */
|
|
9
9
|
/**
|
|
10
|
-
* @preview
|
|
11
10
|
* @packageDocumentation
|
|
12
11
|
* Contains many types related to manipulating a Minecraft
|
|
13
12
|
* world, including entities, blocks, dimensions, and more.
|
|
@@ -86,7 +85,6 @@ export enum BlockPistonState {
|
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
/**
|
|
89
|
-
* @rc
|
|
90
88
|
* Description of the resulting intersection test on two
|
|
91
89
|
* BlockVolume objects
|
|
92
90
|
*/
|
|
@@ -362,7 +360,6 @@ export enum EntityComponentTypes {
|
|
|
362
360
|
*/
|
|
363
361
|
Ageable = 'minecraft:ageable',
|
|
364
362
|
/**
|
|
365
|
-
* @rc
|
|
366
363
|
* @remarks
|
|
367
364
|
* Defines what blocks this entity can breathe in and gives
|
|
368
365
|
* them the ability to suffocate.
|
|
@@ -1490,10 +1487,9 @@ export enum HudVisibility {
|
|
|
1490
1487
|
}
|
|
1491
1488
|
|
|
1492
1489
|
/**
|
|
1493
|
-
* Input permission categories. Used by
|
|
1494
|
-
* PlayerInputPermissionCategoryChangeAfterEvent
|
|
1495
|
-
* which category was changed
|
|
1496
|
-
* PlayerInputPermissions} to get or set permissions.
|
|
1490
|
+
* Input permission categories. Used by
|
|
1491
|
+
* @minecraft/server.PlayerInputPermissionCategoryChangeAfterEvent
|
|
1492
|
+
* to specify which category was changed.
|
|
1497
1493
|
*/
|
|
1498
1494
|
export enum InputPermissionCategory {
|
|
1499
1495
|
/**
|
|
@@ -1504,9 +1500,7 @@ export enum InputPermissionCategory {
|
|
|
1504
1500
|
Camera = 1,
|
|
1505
1501
|
/**
|
|
1506
1502
|
* @remarks
|
|
1507
|
-
* Player input relating to
|
|
1508
|
-
* is equivalent to disabling jump, sneak, lateral movement,
|
|
1509
|
-
* mount, and dismount.
|
|
1503
|
+
* Player input relating to movement.
|
|
1510
1504
|
*
|
|
1511
1505
|
*/
|
|
1512
1506
|
Movement = 2,
|
|
@@ -2217,7 +2211,6 @@ export class Block {
|
|
|
2217
2211
|
*/
|
|
2218
2212
|
getItemStack(amount?: number, withData?: boolean): ItemStack | undefined;
|
|
2219
2213
|
/**
|
|
2220
|
-
* @rc
|
|
2221
2214
|
* @remarks
|
|
2222
2215
|
* Returns the net redstone power of this block.
|
|
2223
2216
|
*
|
|
@@ -2708,7 +2701,6 @@ export class BlockInventoryComponent extends BlockComponent {
|
|
|
2708
2701
|
}
|
|
2709
2702
|
|
|
2710
2703
|
/**
|
|
2711
|
-
* @rc
|
|
2712
2704
|
* A BlockLocationIterator returns the next block location of
|
|
2713
2705
|
* the block volume across which it is iterating.
|
|
2714
2706
|
* The BlockLocationIterator is used to abstract the shape of
|
|
@@ -3333,7 +3325,6 @@ export class BlockTypes {
|
|
|
3333
3325
|
}
|
|
3334
3326
|
|
|
3335
3327
|
/**
|
|
3336
|
-
* @rc
|
|
3337
3328
|
* A BlockVolume is a simple interface to an object which
|
|
3338
3329
|
* represents a 3D rectangle of a given size (in blocks) at a
|
|
3339
3330
|
* world block location.
|
|
@@ -3432,7 +3423,6 @@ export class BlockVolume extends BlockVolumeBase {
|
|
|
3432
3423
|
export class BlockVolumeBase {
|
|
3433
3424
|
private constructor();
|
|
3434
3425
|
/**
|
|
3435
|
-
* @rc
|
|
3436
3426
|
* @remarks
|
|
3437
3427
|
* Fetch a {@link BlockLocationIterator} that represents all of
|
|
3438
3428
|
* the block world locations within the specified volume
|
|
@@ -6203,7 +6193,6 @@ export class EntityBaseMovementComponent extends EntityComponent {
|
|
|
6203
6193
|
}
|
|
6204
6194
|
|
|
6205
6195
|
/**
|
|
6206
|
-
* @rc
|
|
6207
6196
|
* Defines what blocks this entity can breathe in and gives
|
|
6208
6197
|
* them the ability to suffocate.
|
|
6209
6198
|
*/
|
|
@@ -10034,14 +10023,13 @@ export class ItemStack {
|
|
|
10034
10023
|
* given `itemStack`. This is determined by comparing the item
|
|
10035
10024
|
* type and any custom data and properties associated with the
|
|
10036
10025
|
* item stacks. The amount of each item stack is not taken into
|
|
10037
|
-
* consideration
|
|
10038
|
-
* return false.
|
|
10026
|
+
* consideration.
|
|
10039
10027
|
*
|
|
10040
10028
|
* @param itemStack
|
|
10041
|
-
* ItemStack to check stacking
|
|
10029
|
+
* ItemStack to check stacking compatability with.
|
|
10042
10030
|
* @returns
|
|
10043
10031
|
* True if the Item Stack is stackable with the itemStack
|
|
10044
|
-
* passed in.
|
|
10032
|
+
* passed in.
|
|
10045
10033
|
*/
|
|
10046
10034
|
isStackableWith(itemStack: ItemStack): boolean;
|
|
10047
10035
|
/**
|
|
@@ -11686,7 +11674,8 @@ export class PlayerInputPermissionCategoryChangeAfterEventSignal {
|
|
|
11686
11674
|
}
|
|
11687
11675
|
|
|
11688
11676
|
/**
|
|
11689
|
-
* Contains
|
|
11677
|
+
* Contains properties for enabling/disabling player input
|
|
11678
|
+
* permissions.
|
|
11690
11679
|
*/
|
|
11691
11680
|
export class PlayerInputPermissions {
|
|
11692
11681
|
private constructor();
|
|
@@ -11713,7 +11702,6 @@ export class PlayerInputPermissions {
|
|
|
11713
11702
|
export class PlayerInteractWithBlockAfterEvent {
|
|
11714
11703
|
private constructor();
|
|
11715
11704
|
/**
|
|
11716
|
-
* @rc
|
|
11717
11705
|
* @remarks
|
|
11718
11706
|
* The ItemStack before the interaction succeeded, or undefined
|
|
11719
11707
|
* if hand is empty.
|
|
@@ -11740,7 +11728,6 @@ export class PlayerInteractWithBlockAfterEvent {
|
|
|
11740
11728
|
*/
|
|
11741
11729
|
readonly faceLocation: Vector3;
|
|
11742
11730
|
/**
|
|
11743
|
-
* @rc
|
|
11744
11731
|
* @remarks
|
|
11745
11732
|
* This value will be true if the event was triggered on
|
|
11746
11733
|
* players initial interaction button press and false on events
|
|
@@ -11827,7 +11814,6 @@ export class PlayerInteractWithBlockBeforeEvent {
|
|
|
11827
11814
|
*/
|
|
11828
11815
|
readonly faceLocation: Vector3;
|
|
11829
11816
|
/**
|
|
11830
|
-
* @rc
|
|
11831
11817
|
* @remarks
|
|
11832
11818
|
* This value will be true if the event was triggered on
|
|
11833
11819
|
* players initial interaction button press and false on events
|
|
@@ -11889,7 +11875,6 @@ export class PlayerInteractWithBlockBeforeEventSignal {
|
|
|
11889
11875
|
export class PlayerInteractWithEntityAfterEvent {
|
|
11890
11876
|
private constructor();
|
|
11891
11877
|
/**
|
|
11892
|
-
* @rc
|
|
11893
11878
|
* @remarks
|
|
11894
11879
|
* The ItemStack before the interaction succeeded, or undefined
|
|
11895
11880
|
* if hand is empty.
|
|
@@ -13806,9 +13791,6 @@ export class World {
|
|
|
13806
13791
|
*
|
|
13807
13792
|
*/
|
|
13808
13793
|
readonly gameRules: GameRules;
|
|
13809
|
-
/**
|
|
13810
|
-
* @rc
|
|
13811
|
-
*/
|
|
13812
13794
|
readonly isHardcore: boolean;
|
|
13813
13795
|
/**
|
|
13814
13796
|
* @remarks
|
|
@@ -14484,14 +14466,12 @@ export class WorldAfterEvents {
|
|
|
14484
14466
|
*/
|
|
14485
14467
|
readonly playerInputPermissionCategoryChange: PlayerInputPermissionCategoryChangeAfterEventSignal;
|
|
14486
14468
|
/**
|
|
14487
|
-
* @rc
|
|
14488
14469
|
* @remarks
|
|
14489
14470
|
* An event for when a player interacts with a block.
|
|
14490
14471
|
*
|
|
14491
14472
|
*/
|
|
14492
14473
|
readonly playerInteractWithBlock: PlayerInteractWithBlockAfterEventSignal;
|
|
14493
14474
|
/**
|
|
14494
|
-
* @rc
|
|
14495
14475
|
* @remarks
|
|
14496
14476
|
* This event fires when a player interacts with an entity.
|
|
14497
14477
|
*
|
|
@@ -14630,14 +14610,12 @@ export class WorldBeforeEvents {
|
|
|
14630
14610
|
readonly playerBreakBlock: PlayerBreakBlockBeforeEventSignal;
|
|
14631
14611
|
readonly playerGameModeChange: PlayerGameModeChangeBeforeEventSignal;
|
|
14632
14612
|
/**
|
|
14633
|
-
* @rc
|
|
14634
14613
|
* @remarks
|
|
14635
14614
|
* Fires before a player interacts with a block.
|
|
14636
14615
|
*
|
|
14637
14616
|
*/
|
|
14638
14617
|
readonly playerInteractWithBlock: PlayerInteractWithBlockBeforeEventSignal;
|
|
14639
14618
|
/**
|
|
14640
|
-
* @rc
|
|
14641
14619
|
* @remarks
|
|
14642
14620
|
* Fires before a player interacts with an entity.
|
|
14643
14621
|
*
|
|
@@ -16552,9 +16530,6 @@ export class InvalidContainerSlotError extends Error {
|
|
|
16552
16530
|
private constructor();
|
|
16553
16531
|
}
|
|
16554
16532
|
|
|
16555
|
-
/**
|
|
16556
|
-
* @rc
|
|
16557
|
-
*/
|
|
16558
16533
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
16559
16534
|
export class InvalidIteratorError extends Error {
|
|
16560
16535
|
private constructor();
|