@minecraft/server 2.12.0-rc.1.26.70-preview.22 → 2.12.0-rc.1.26.70-preview.24
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 +770 -22
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -83,6 +83,14 @@ export enum BlockComponentTypes {
|
|
|
83
83
|
*
|
|
84
84
|
*/
|
|
85
85
|
PrecipitationInteractions = 'minecraft:precipitation_interactions',
|
|
86
|
+
/**
|
|
87
|
+
* @rc
|
|
88
|
+
*/
|
|
89
|
+
RecipeCrafting = 'minecraft:recipe_crafting',
|
|
90
|
+
/**
|
|
91
|
+
* @rc
|
|
92
|
+
*/
|
|
93
|
+
RecipeProcessing = 'minecraft:recipe_processing',
|
|
86
94
|
/**
|
|
87
95
|
* @remarks
|
|
88
96
|
* Represents a block that can play a record.
|
|
@@ -101,6 +109,10 @@ export enum BlockComponentTypes {
|
|
|
101
109
|
*
|
|
102
110
|
*/
|
|
103
111
|
Sign = 'minecraft:sign',
|
|
112
|
+
/**
|
|
113
|
+
* @rc
|
|
114
|
+
*/
|
|
115
|
+
VibrationProperties = 'minecraft:vibration_properties',
|
|
104
116
|
}
|
|
105
117
|
|
|
106
118
|
/**
|
|
@@ -3120,15 +3132,21 @@ export type BlockComponentTypeMap = {
|
|
|
3120
3132
|
'minecraft:movable': BlockMovableComponent;
|
|
3121
3133
|
'minecraft:piston': BlockPistonComponent;
|
|
3122
3134
|
'minecraft:precipitation_interactions': BlockPrecipitationInteractionsComponent;
|
|
3135
|
+
'minecraft:recipe_crafting': BlockRecipeCraftingComponent;
|
|
3136
|
+
'minecraft:recipe_processing': BlockRecipeProcessingComponent;
|
|
3123
3137
|
'minecraft:record_player': BlockRecordPlayerComponent;
|
|
3124
3138
|
'minecraft:redstone_producer': BlockRedstoneProducerComponent;
|
|
3125
3139
|
'minecraft:sign': BlockSignComponent;
|
|
3140
|
+
'minecraft:vibration_properties': BlockVibrationPropertiesComponent;
|
|
3126
3141
|
movable: BlockMovableComponent;
|
|
3127
3142
|
piston: BlockPistonComponent;
|
|
3128
3143
|
precipitation_interactions: BlockPrecipitationInteractionsComponent;
|
|
3144
|
+
recipe_crafting: BlockRecipeCraftingComponent;
|
|
3145
|
+
recipe_processing: BlockRecipeProcessingComponent;
|
|
3129
3146
|
record_player: BlockRecordPlayerComponent;
|
|
3130
3147
|
redstone_producer: BlockRedstoneProducerComponent;
|
|
3131
3148
|
sign: BlockSignComponent;
|
|
3149
|
+
vibration_properties: BlockVibrationPropertiesComponent;
|
|
3132
3150
|
};
|
|
3133
3151
|
|
|
3134
3152
|
/**
|
|
@@ -4122,6 +4140,23 @@ export class Block {
|
|
|
4122
4140
|
* {@link LocationOutOfWorldBoundariesError}
|
|
4123
4141
|
*/
|
|
4124
4142
|
east(steps?: number): Block | undefined;
|
|
4143
|
+
/**
|
|
4144
|
+
* @rc
|
|
4145
|
+
* @remarks
|
|
4146
|
+
* Returns the named tick events scheduled at this block by the
|
|
4147
|
+
* calling script pack.
|
|
4148
|
+
*
|
|
4149
|
+
* @returns
|
|
4150
|
+
* The scheduled named tick events. Each event contains its
|
|
4151
|
+
* eventName and the number of ticks until it is raised as
|
|
4152
|
+
* tickDelay.
|
|
4153
|
+
* @throws This function can throw errors.
|
|
4154
|
+
*
|
|
4155
|
+
* {@link LocationInUnloadedChunkError}
|
|
4156
|
+
*
|
|
4157
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
4158
|
+
*/
|
|
4159
|
+
getAllScheduledNamedTicks(): ScheduledNamedTick[];
|
|
4125
4160
|
/**
|
|
4126
4161
|
* @remarks
|
|
4127
4162
|
* Gets a component (that represents additional capabilities)
|
|
@@ -4223,6 +4258,22 @@ export class Block {
|
|
|
4223
4258
|
* {@link LocationOutOfWorldBoundariesError}
|
|
4224
4259
|
*/
|
|
4225
4260
|
getRedstonePower(): number | undefined;
|
|
4261
|
+
/**
|
|
4262
|
+
* @rc
|
|
4263
|
+
* @remarks
|
|
4264
|
+
* Returns the number of named tick events scheduled at this
|
|
4265
|
+
* block, regardless of which script pack scheduled them.
|
|
4266
|
+
*
|
|
4267
|
+
* @returns
|
|
4268
|
+
* The number of named tick events currently scheduled at this
|
|
4269
|
+
* block.
|
|
4270
|
+
* @throws This function can throw errors.
|
|
4271
|
+
*
|
|
4272
|
+
* {@link LocationInUnloadedChunkError}
|
|
4273
|
+
*
|
|
4274
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
4275
|
+
*/
|
|
4276
|
+
getScheduledNamedTickCount(): number;
|
|
4226
4277
|
/**
|
|
4227
4278
|
* @remarks
|
|
4228
4279
|
* Returns the brightness level of light shining from the sky
|
|
@@ -4268,6 +4319,15 @@ export class Block {
|
|
|
4268
4319
|
* {@link LocationOutOfWorldBoundariesError}
|
|
4269
4320
|
*/
|
|
4270
4321
|
hasComponent(componentId: string): boolean;
|
|
4322
|
+
/**
|
|
4323
|
+
* @rc
|
|
4324
|
+
* @throws This function can throw errors.
|
|
4325
|
+
*
|
|
4326
|
+
* {@link LocationInUnloadedChunkError}
|
|
4327
|
+
*
|
|
4328
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
4329
|
+
*/
|
|
4330
|
+
hasScheduledNamedTick(eventName: string): boolean;
|
|
4271
4331
|
/**
|
|
4272
4332
|
* @remarks
|
|
4273
4333
|
* Checks to see if the permutation of this block has a
|
|
@@ -4408,6 +4468,47 @@ export class Block {
|
|
|
4408
4468
|
* {@link LocationOutOfWorldBoundariesError}
|
|
4409
4469
|
*/
|
|
4410
4470
|
offset(offset: Vector3): Block | undefined;
|
|
4471
|
+
/**
|
|
4472
|
+
* @rc
|
|
4473
|
+
* @remarks
|
|
4474
|
+
* Removes all scheduled named tick events from this block with
|
|
4475
|
+
* the specified event name.
|
|
4476
|
+
*
|
|
4477
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
4478
|
+
*
|
|
4479
|
+
* @param eventName
|
|
4480
|
+
* Name of the scheduled event to remove.
|
|
4481
|
+
* @throws This function can throw errors.
|
|
4482
|
+
*
|
|
4483
|
+
* {@link LocationInUnloadedChunkError}
|
|
4484
|
+
*
|
|
4485
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
4486
|
+
*/
|
|
4487
|
+
removeScheduledNamedTicks(eventName: string): void;
|
|
4488
|
+
/**
|
|
4489
|
+
* @rc
|
|
4490
|
+
* @remarks
|
|
4491
|
+
* Schedules a named tick event for this block. The event will
|
|
4492
|
+
* be delivered to block custom components registered with the
|
|
4493
|
+
* `onNamedTick` callback after the specified delay.
|
|
4494
|
+
*
|
|
4495
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
4496
|
+
*
|
|
4497
|
+
* @param eventName
|
|
4498
|
+
* Name of the event to schedule. Up to 31 characters.
|
|
4499
|
+
* @param tickDelay
|
|
4500
|
+
* Number of ticks to wait before the event is raised. Must be
|
|
4501
|
+
* at least 1.
|
|
4502
|
+
* Minimum value: 1
|
|
4503
|
+
* @throws This function can throw errors.
|
|
4504
|
+
*
|
|
4505
|
+
* {@link Error}
|
|
4506
|
+
*
|
|
4507
|
+
* {@link LocationInUnloadedChunkError}
|
|
4508
|
+
*
|
|
4509
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
4510
|
+
*/
|
|
4511
|
+
scheduleNamedTick(eventName: string, tickDelay: number): void;
|
|
4411
4512
|
/**
|
|
4412
4513
|
* @remarks
|
|
4413
4514
|
* Sets the block in the dimension to the state of the
|
|
@@ -4599,6 +4700,54 @@ export class BlockComponentEntityFallOnEvent extends BlockEvent {
|
|
|
4599
4700
|
readonly fallDistance: number;
|
|
4600
4701
|
}
|
|
4601
4702
|
|
|
4703
|
+
/**
|
|
4704
|
+
* @rc
|
|
4705
|
+
* Contains information regarding a named tick event for a
|
|
4706
|
+
* specific block.
|
|
4707
|
+
*/
|
|
4708
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4709
|
+
export class BlockComponentNamedTickEvent extends BlockEvent {
|
|
4710
|
+
private constructor();
|
|
4711
|
+
/**
|
|
4712
|
+
* @remarks
|
|
4713
|
+
* Name of the named tick event.
|
|
4714
|
+
*
|
|
4715
|
+
*/
|
|
4716
|
+
readonly name: string;
|
|
4717
|
+
/**
|
|
4718
|
+
* @remarks
|
|
4719
|
+
* Checks whether this named tick event was scheduled by this
|
|
4720
|
+
* pack.
|
|
4721
|
+
*
|
|
4722
|
+
* @returns
|
|
4723
|
+
* True if this named tick event was scheduled by this pack;
|
|
4724
|
+
* otherwise, false.
|
|
4725
|
+
*/
|
|
4726
|
+
isMine(): boolean;
|
|
4727
|
+
}
|
|
4728
|
+
|
|
4729
|
+
/**
|
|
4730
|
+
* @rc
|
|
4731
|
+
* Contains information regarding neighboring block changes for
|
|
4732
|
+
* a specific block.
|
|
4733
|
+
*/
|
|
4734
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4735
|
+
export class BlockComponentNeighborChangedAfterEvent extends BlockEvent {
|
|
4736
|
+
private constructor();
|
|
4737
|
+
/**
|
|
4738
|
+
* @remarks
|
|
4739
|
+
* Returns the neighboring block changes for this event.
|
|
4740
|
+
*
|
|
4741
|
+
* @returns
|
|
4742
|
+
* One entry for each neighboring direction that changed,
|
|
4743
|
+
* ordered by when each direction first changed. If a direction
|
|
4744
|
+
* changed multiple times during the tick, the entry contains
|
|
4745
|
+
* the permutation before the first change and after the last
|
|
4746
|
+
* change. Intermediate permutations are not included.
|
|
4747
|
+
*/
|
|
4748
|
+
getChanges(): NeighborChange[];
|
|
4749
|
+
}
|
|
4750
|
+
|
|
4602
4751
|
/**
|
|
4603
4752
|
* Contains information regarding a specific block that was
|
|
4604
4753
|
* placed.
|
|
@@ -5430,7 +5579,7 @@ export class BlockPermutation {
|
|
|
5430
5579
|
* Gets a state for the permutation.
|
|
5431
5580
|
*
|
|
5432
5581
|
* @param stateName
|
|
5433
|
-
* Name of the block state
|
|
5582
|
+
* Name of the block state whose value is to be returned.
|
|
5434
5583
|
* @returns
|
|
5435
5584
|
* Returns the state if the permutation has it, else
|
|
5436
5585
|
* `undefined`.
|
|
@@ -5667,6 +5816,139 @@ export class BlockPrecipitationInteractionsComponent extends BlockComponent {
|
|
|
5667
5816
|
obstructsRain(): boolean;
|
|
5668
5817
|
}
|
|
5669
5818
|
|
|
5819
|
+
/**
|
|
5820
|
+
* @rc
|
|
5821
|
+
* Represents a block component that provides access to recipe
|
|
5822
|
+
* crafting.
|
|
5823
|
+
*/
|
|
5824
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5825
|
+
export class BlockRecipeCraftingComponent extends BlockComponent {
|
|
5826
|
+
private constructor();
|
|
5827
|
+
/**
|
|
5828
|
+
* @remarks
|
|
5829
|
+
* Returns an array of all players currently interacting with
|
|
5830
|
+
* this block.
|
|
5831
|
+
*
|
|
5832
|
+
*/
|
|
5833
|
+
readonly players: Player[];
|
|
5834
|
+
static readonly componentId = 'minecraft:recipe_crafting';
|
|
5835
|
+
/**
|
|
5836
|
+
* @remarks
|
|
5837
|
+
* Gets the recipe crafting context for a player interacting
|
|
5838
|
+
* with this block.
|
|
5839
|
+
*
|
|
5840
|
+
* @param player
|
|
5841
|
+
* The player for whom to retrieve the crafting context.
|
|
5842
|
+
* @returns
|
|
5843
|
+
* The current recipe crafting context for the player, or
|
|
5844
|
+
* undefined if the player isn't crafting.
|
|
5845
|
+
* @throws This function can throw errors.
|
|
5846
|
+
*
|
|
5847
|
+
* {@link minecraftcommon.EngineError}
|
|
5848
|
+
*
|
|
5849
|
+
* {@link InvalidEntityError}
|
|
5850
|
+
*/
|
|
5851
|
+
getCraftingContext(player: Player): RecipeCraftingContext | undefined;
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5854
|
+
/**
|
|
5855
|
+
* @rc
|
|
5856
|
+
* Represents a block component that provides access to recipe
|
|
5857
|
+
* processing inputs and output.
|
|
5858
|
+
*/
|
|
5859
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5860
|
+
export class BlockRecipeProcessingComponent extends BlockComponent {
|
|
5861
|
+
private constructor();
|
|
5862
|
+
/**
|
|
5863
|
+
* @remarks
|
|
5864
|
+
* The number of addressable input slots for getInputItem,
|
|
5865
|
+
* setInputItem, setInputSlotEnabled, and getInputSlotEnabled.
|
|
5866
|
+
*
|
|
5867
|
+
* @throws This property can throw when used.
|
|
5868
|
+
*
|
|
5869
|
+
* {@link InvalidBlockComponentError}
|
|
5870
|
+
*/
|
|
5871
|
+
readonly inputSlotCount: number;
|
|
5872
|
+
static readonly componentId = 'minecraft:recipe_processing';
|
|
5873
|
+
/**
|
|
5874
|
+
* @remarks
|
|
5875
|
+
* Gets the item in the provided input slot.
|
|
5876
|
+
*
|
|
5877
|
+
* @param slot
|
|
5878
|
+
* The zero-based input slot index.
|
|
5879
|
+
* @returns
|
|
5880
|
+
* The item stack in the input slot, or undefined if the slot
|
|
5881
|
+
* is empty.
|
|
5882
|
+
* @throws This function can throw errors.
|
|
5883
|
+
*
|
|
5884
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
5885
|
+
*
|
|
5886
|
+
* {@link InvalidBlockComponentError}
|
|
5887
|
+
*/
|
|
5888
|
+
getInputItem(slot: number): ItemStack | undefined;
|
|
5889
|
+
/**
|
|
5890
|
+
* @remarks
|
|
5891
|
+
* Gets whether an input slot is enabled for recipe processing.
|
|
5892
|
+
*
|
|
5893
|
+
* @param slot
|
|
5894
|
+
* The zero-based input slot index.
|
|
5895
|
+
* @returns
|
|
5896
|
+
* Whether the input slot is enabled.
|
|
5897
|
+
* @throws This function can throw errors.
|
|
5898
|
+
*
|
|
5899
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
5900
|
+
*
|
|
5901
|
+
* {@link InvalidBlockComponentError}
|
|
5902
|
+
*
|
|
5903
|
+
* {@link minecraftcommon.UnsupportedFunctionalityError}
|
|
5904
|
+
*/
|
|
5905
|
+
getInputSlotEnabled(slot: number): boolean;
|
|
5906
|
+
/**
|
|
5907
|
+
* @remarks
|
|
5908
|
+
* Gets the item produced by the current recipe processing
|
|
5909
|
+
* inputs.
|
|
5910
|
+
*
|
|
5911
|
+
* @returns
|
|
5912
|
+
* The output item stack, or undefined if the current inputs do
|
|
5913
|
+
* not produce an item.
|
|
5914
|
+
* @throws This function can throw errors.
|
|
5915
|
+
*
|
|
5916
|
+
* {@link InvalidBlockComponentError}
|
|
5917
|
+
*/
|
|
5918
|
+
getOutputItem(): ItemStack | undefined;
|
|
5919
|
+
/**
|
|
5920
|
+
* @remarks
|
|
5921
|
+
* Sets or clears an item in an input slot.
|
|
5922
|
+
*
|
|
5923
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
5924
|
+
*
|
|
5925
|
+
* @param slot
|
|
5926
|
+
* The zero-based input slot index.
|
|
5927
|
+
* @param item
|
|
5928
|
+
* The item stack to place in the slot, or undefined to clear
|
|
5929
|
+
* the slot.
|
|
5930
|
+
* @throws This function can throw errors.
|
|
5931
|
+
*
|
|
5932
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
5933
|
+
*
|
|
5934
|
+
* {@link InvalidBlockComponentError}
|
|
5935
|
+
*/
|
|
5936
|
+
setInputItem(slot: number, item?: ItemStack): void;
|
|
5937
|
+
/**
|
|
5938
|
+
* @remarks
|
|
5939
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
5940
|
+
*
|
|
5941
|
+
* @throws This function can throw errors.
|
|
5942
|
+
*
|
|
5943
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
5944
|
+
*
|
|
5945
|
+
* {@link InvalidBlockComponentError}
|
|
5946
|
+
*
|
|
5947
|
+
* {@link minecraftcommon.UnsupportedFunctionalityError}
|
|
5948
|
+
*/
|
|
5949
|
+
setInputSlotEnabled(slot: number, enabled: boolean): void;
|
|
5950
|
+
}
|
|
5951
|
+
|
|
5670
5952
|
/**
|
|
5671
5953
|
* Represents a block that can play a record.
|
|
5672
5954
|
*/
|
|
@@ -6089,6 +6371,49 @@ export class BlockTypes {
|
|
|
6089
6371
|
static getAll(): BlockType[];
|
|
6090
6372
|
}
|
|
6091
6373
|
|
|
6374
|
+
/**
|
|
6375
|
+
* @rc
|
|
6376
|
+
* Represents the vibration properties of a block with a
|
|
6377
|
+
* 'minecraft:vibration_properties' component.
|
|
6378
|
+
*/
|
|
6379
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6380
|
+
export class BlockVibrationPropertiesComponent extends BlockComponent {
|
|
6381
|
+
private constructor();
|
|
6382
|
+
static readonly componentId = 'minecraft:vibration_properties';
|
|
6383
|
+
/**
|
|
6384
|
+
* @remarks
|
|
6385
|
+
* Gets whether this block can dampen vibrations. Vibrations
|
|
6386
|
+
* that occur on this block will be discarded by this block if
|
|
6387
|
+
* it can dampen vibrations. Returns false when the block does
|
|
6388
|
+
* not define a 'minecraft:vibration_properties' component.
|
|
6389
|
+
*
|
|
6390
|
+
* @returns
|
|
6391
|
+
* Whether this block can dampen vibrations.
|
|
6392
|
+
* @throws This function can throw errors.
|
|
6393
|
+
*
|
|
6394
|
+
* {@link LocationInUnloadedChunkError}
|
|
6395
|
+
*
|
|
6396
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
6397
|
+
*/
|
|
6398
|
+
getCanDampenVibrations(): boolean;
|
|
6399
|
+
/**
|
|
6400
|
+
* @remarks
|
|
6401
|
+
* Gets whether this block can occlude vibrations. Vibrations
|
|
6402
|
+
* that pass through this block will be discarded if this block
|
|
6403
|
+
* can occlude vibrations. Returns false when the block does
|
|
6404
|
+
* not define a 'minecraft:vibration_properties' component.
|
|
6405
|
+
*
|
|
6406
|
+
* @returns
|
|
6407
|
+
* Whether this block can occlude vibrations.
|
|
6408
|
+
* @throws This function can throw errors.
|
|
6409
|
+
*
|
|
6410
|
+
* {@link LocationInUnloadedChunkError}
|
|
6411
|
+
*
|
|
6412
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
6413
|
+
*/
|
|
6414
|
+
getCanOccludeVibrations(): boolean;
|
|
6415
|
+
}
|
|
6416
|
+
|
|
6092
6417
|
/**
|
|
6093
6418
|
* A BlockVolume is a simple interface to an object which
|
|
6094
6419
|
* represents a 3D rectangle of a given size (in blocks) at a
|
|
@@ -18082,50 +18407,228 @@ export class PlayerCancelBreakingBlockAfterEventSignal {
|
|
|
18082
18407
|
}
|
|
18083
18408
|
|
|
18084
18409
|
/**
|
|
18085
|
-
*
|
|
18086
|
-
*
|
|
18087
|
-
* used with touch controls.
|
|
18410
|
+
* @rc
|
|
18411
|
+
* Contains information regarding a player crafting a recipe.
|
|
18088
18412
|
*/
|
|
18089
|
-
|
|
18090
|
-
export class PlayerCursorInventoryComponent extends EntityComponent {
|
|
18413
|
+
export class PlayerCraftRecipeAfterEvent {
|
|
18091
18414
|
private constructor();
|
|
18092
18415
|
/**
|
|
18093
18416
|
* @remarks
|
|
18094
|
-
* The
|
|
18417
|
+
* The block where the recipe was crafted, if applicable.
|
|
18095
18418
|
*
|
|
18096
|
-
* @throws This property can throw when used.
|
|
18097
18419
|
*/
|
|
18098
|
-
readonly
|
|
18099
|
-
static readonly componentId = 'minecraft:cursor_inventory';
|
|
18420
|
+
readonly block?: Block;
|
|
18100
18421
|
/**
|
|
18101
18422
|
* @remarks
|
|
18102
|
-
*
|
|
18423
|
+
* The item stack crafted by the player.
|
|
18103
18424
|
*
|
|
18104
|
-
|
|
18425
|
+
*/
|
|
18426
|
+
readonly itemStack?: ItemStack;
|
|
18427
|
+
/**
|
|
18428
|
+
* @remarks
|
|
18429
|
+
* The player who crafted the recipe.
|
|
18105
18430
|
*
|
|
18106
|
-
* @throws This function can throw errors.
|
|
18107
18431
|
*/
|
|
18108
|
-
|
|
18432
|
+
readonly player: Player;
|
|
18109
18433
|
}
|
|
18110
18434
|
|
|
18111
18435
|
/**
|
|
18112
|
-
*
|
|
18113
|
-
*
|
|
18436
|
+
* @rc
|
|
18437
|
+
* Manages callbacks that are connected to when a player crafts
|
|
18438
|
+
* a recipe.
|
|
18114
18439
|
*/
|
|
18115
|
-
export class
|
|
18440
|
+
export class PlayerCraftRecipeAfterEventSignal {
|
|
18116
18441
|
private constructor();
|
|
18117
18442
|
/**
|
|
18118
18443
|
* @remarks
|
|
18119
|
-
*
|
|
18444
|
+
* Adds a callback that will be called when a player crafts a
|
|
18445
|
+
* recipe.
|
|
18446
|
+
*
|
|
18447
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
18448
|
+
*
|
|
18449
|
+
* @privilege early-execution-allowed - This function can be called in early-execution mode.
|
|
18120
18450
|
*
|
|
18451
|
+
* @param callback
|
|
18452
|
+
* Function callback that is called when this event fires.
|
|
18453
|
+
* @param options
|
|
18454
|
+
* Additional filtering options for the event subscription.
|
|
18121
18455
|
*/
|
|
18122
|
-
|
|
18456
|
+
subscribe(
|
|
18457
|
+
callback: (arg0: PlayerCraftRecipeAfterEvent) => void,
|
|
18458
|
+
options?: PlayerCraftRecipeEventOptions,
|
|
18459
|
+
): (arg0: PlayerCraftRecipeAfterEvent) => void;
|
|
18123
18460
|
/**
|
|
18124
18461
|
* @remarks
|
|
18125
|
-
*
|
|
18462
|
+
* Removes a callback from being called when a player crafts a
|
|
18463
|
+
* recipe.
|
|
18126
18464
|
*
|
|
18127
|
-
|
|
18128
|
-
|
|
18465
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
18466
|
+
*
|
|
18467
|
+
* @privilege early-execution-allowed - This function can be called in early-execution mode.
|
|
18468
|
+
*
|
|
18469
|
+
* @param callback
|
|
18470
|
+
* The callback to remove from the event subscription.
|
|
18471
|
+
*/
|
|
18472
|
+
unsubscribe(callback: (arg0: PlayerCraftRecipeAfterEvent) => void): void;
|
|
18473
|
+
}
|
|
18474
|
+
|
|
18475
|
+
/**
|
|
18476
|
+
* Represents the players cursor inventory. Used when moving
|
|
18477
|
+
* items between between containers in the inventory UI. Not
|
|
18478
|
+
* used with touch controls.
|
|
18479
|
+
*/
|
|
18480
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
18481
|
+
export class PlayerCursorInventoryComponent extends EntityComponent {
|
|
18482
|
+
private constructor();
|
|
18483
|
+
/**
|
|
18484
|
+
* @remarks
|
|
18485
|
+
* The ItemStack currently in the players cursor inventory.
|
|
18486
|
+
*
|
|
18487
|
+
* @throws This property can throw when used.
|
|
18488
|
+
*/
|
|
18489
|
+
readonly item?: ItemStack;
|
|
18490
|
+
static readonly componentId = 'minecraft:cursor_inventory';
|
|
18491
|
+
/**
|
|
18492
|
+
* @remarks
|
|
18493
|
+
* Clears the players cursor inventory.
|
|
18494
|
+
*
|
|
18495
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
18496
|
+
*
|
|
18497
|
+
* @throws This function can throw errors.
|
|
18498
|
+
*/
|
|
18499
|
+
clear(): void;
|
|
18500
|
+
}
|
|
18501
|
+
|
|
18502
|
+
/**
|
|
18503
|
+
* @rc
|
|
18504
|
+
* Contains information about an item moved from a container to
|
|
18505
|
+
* a player's cursor.
|
|
18506
|
+
*/
|
|
18507
|
+
export class PlayerCursorItemGrabAfterEvent {
|
|
18508
|
+
private constructor();
|
|
18509
|
+
/**
|
|
18510
|
+
* @remarks
|
|
18511
|
+
* The item stack moved to the player's cursor.
|
|
18512
|
+
*
|
|
18513
|
+
*/
|
|
18514
|
+
readonly item: ItemStack;
|
|
18515
|
+
/**
|
|
18516
|
+
* @remarks
|
|
18517
|
+
* The player whose cursor item changed.
|
|
18518
|
+
*
|
|
18519
|
+
*/
|
|
18520
|
+
readonly player: Player;
|
|
18521
|
+
}
|
|
18522
|
+
|
|
18523
|
+
/**
|
|
18524
|
+
* @rc
|
|
18525
|
+
* Manages callbacks for items grabbed from a container to a
|
|
18526
|
+
* player's cursor.
|
|
18527
|
+
*/
|
|
18528
|
+
export class PlayerCursorItemGrabAfterEventSignal {
|
|
18529
|
+
private constructor();
|
|
18530
|
+
/**
|
|
18531
|
+
* @remarks
|
|
18532
|
+
* Adds a callback that is called when a player grabs an item
|
|
18533
|
+
* from a container to their cursor.
|
|
18534
|
+
*
|
|
18535
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
18536
|
+
*
|
|
18537
|
+
* @privilege early-execution-allowed - This function can be called in early-execution mode.
|
|
18538
|
+
*
|
|
18539
|
+
* @param callback
|
|
18540
|
+
* The callback function invoked when the event fires.
|
|
18541
|
+
*/
|
|
18542
|
+
subscribe(callback: (arg0: PlayerCursorItemGrabAfterEvent) => void): (arg0: PlayerCursorItemGrabAfterEvent) => void;
|
|
18543
|
+
/**
|
|
18544
|
+
* @remarks
|
|
18545
|
+
* Removes a previously registered event callback.
|
|
18546
|
+
*
|
|
18547
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
18548
|
+
*
|
|
18549
|
+
* @privilege early-execution-allowed - This function can be called in early-execution mode.
|
|
18550
|
+
*
|
|
18551
|
+
* @param callback
|
|
18552
|
+
* The callback function to remove.
|
|
18553
|
+
*/
|
|
18554
|
+
unsubscribe(callback: (arg0: PlayerCursorItemGrabAfterEvent) => void): void;
|
|
18555
|
+
}
|
|
18556
|
+
|
|
18557
|
+
/**
|
|
18558
|
+
* @rc
|
|
18559
|
+
* Contains information about an item moved from a player's
|
|
18560
|
+
* cursor to a container.
|
|
18561
|
+
*/
|
|
18562
|
+
export class PlayerCursorItemReleaseAfterEvent {
|
|
18563
|
+
private constructor();
|
|
18564
|
+
/**
|
|
18565
|
+
* @remarks
|
|
18566
|
+
* The item stack from the player's cursor.
|
|
18567
|
+
*
|
|
18568
|
+
*/
|
|
18569
|
+
readonly item: ItemStack;
|
|
18570
|
+
/**
|
|
18571
|
+
* @remarks
|
|
18572
|
+
* The player whose cursor item changed.
|
|
18573
|
+
*
|
|
18574
|
+
*/
|
|
18575
|
+
readonly player: Player;
|
|
18576
|
+
}
|
|
18577
|
+
|
|
18578
|
+
/**
|
|
18579
|
+
* @rc
|
|
18580
|
+
* Manages callbacks for items released from a player's cursor
|
|
18581
|
+
* to a container.
|
|
18582
|
+
*/
|
|
18583
|
+
export class PlayerCursorItemReleaseAfterEventSignal {
|
|
18584
|
+
private constructor();
|
|
18585
|
+
/**
|
|
18586
|
+
* @remarks
|
|
18587
|
+
* Adds a callback that is called when a player releases an
|
|
18588
|
+
* item from their cursor to a container.
|
|
18589
|
+
*
|
|
18590
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
18591
|
+
*
|
|
18592
|
+
* @privilege early-execution-allowed - This function can be called in early-execution mode.
|
|
18593
|
+
*
|
|
18594
|
+
* @param callback
|
|
18595
|
+
* The callback function invoked when the event fires.
|
|
18596
|
+
*/
|
|
18597
|
+
subscribe(
|
|
18598
|
+
callback: (arg0: PlayerCursorItemReleaseAfterEvent) => void,
|
|
18599
|
+
): (arg0: PlayerCursorItemReleaseAfterEvent) => void;
|
|
18600
|
+
/**
|
|
18601
|
+
* @remarks
|
|
18602
|
+
* Removes a previously registered event callback.
|
|
18603
|
+
*
|
|
18604
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
18605
|
+
*
|
|
18606
|
+
* @privilege early-execution-allowed - This function can be called in early-execution mode.
|
|
18607
|
+
*
|
|
18608
|
+
* @param callback
|
|
18609
|
+
* The callback function to remove.
|
|
18610
|
+
*/
|
|
18611
|
+
unsubscribe(callback: (arg0: PlayerCursorItemReleaseAfterEvent) => void): void;
|
|
18612
|
+
}
|
|
18613
|
+
|
|
18614
|
+
/**
|
|
18615
|
+
* Contains information related to changes to a player's
|
|
18616
|
+
* dimension having been changed.
|
|
18617
|
+
*/
|
|
18618
|
+
export class PlayerDimensionChangeAfterEvent {
|
|
18619
|
+
private constructor();
|
|
18620
|
+
/**
|
|
18621
|
+
* @remarks
|
|
18622
|
+
* The dimension the player is changing from.
|
|
18623
|
+
*
|
|
18624
|
+
*/
|
|
18625
|
+
readonly fromDimension: Dimension;
|
|
18626
|
+
/**
|
|
18627
|
+
* @remarks
|
|
18628
|
+
* The location the player was at before changing dimensions.
|
|
18629
|
+
*
|
|
18630
|
+
*/
|
|
18631
|
+
readonly fromLocation: Vector3;
|
|
18129
18632
|
/**
|
|
18130
18633
|
* @remarks
|
|
18131
18634
|
* Handle to the player that is changing dimensions.
|
|
@@ -20286,6 +20789,104 @@ export class RandomRegionalDifficultyChanceCondition extends LootItemCondition {
|
|
|
20286
20789
|
readonly maxChance: number;
|
|
20287
20790
|
}
|
|
20288
20791
|
|
|
20792
|
+
/**
|
|
20793
|
+
* @rc
|
|
20794
|
+
* Provides access to the slots and recipe of a players active
|
|
20795
|
+
* crafting UI ie. stonecutter.
|
|
20796
|
+
*/
|
|
20797
|
+
export class RecipeCraftingContext {
|
|
20798
|
+
private constructor();
|
|
20799
|
+
/**
|
|
20800
|
+
* @remarks
|
|
20801
|
+
* The amount of addressable input slots for getInputItem and
|
|
20802
|
+
* setInputItem.
|
|
20803
|
+
*
|
|
20804
|
+
* @throws This property can throw when used.
|
|
20805
|
+
*
|
|
20806
|
+
* {@link minecraftcommon.EngineError}
|
|
20807
|
+
*/
|
|
20808
|
+
readonly inputSlotCount: number;
|
|
20809
|
+
/**
|
|
20810
|
+
* @remarks
|
|
20811
|
+
* Whether this recipe crafting context is valid. Invalidates
|
|
20812
|
+
* when the player closes the crafting UI or leaves.
|
|
20813
|
+
*
|
|
20814
|
+
*/
|
|
20815
|
+
readonly isValid: boolean;
|
|
20816
|
+
/**
|
|
20817
|
+
* @remarks
|
|
20818
|
+
* The identifiers of the recipes that are valid for the
|
|
20819
|
+
* current input items.
|
|
20820
|
+
*
|
|
20821
|
+
* @throws This property can throw when used.
|
|
20822
|
+
*
|
|
20823
|
+
* {@link minecraftcommon.EngineError}
|
|
20824
|
+
*/
|
|
20825
|
+
readonly validRecipes: string[];
|
|
20826
|
+
/**
|
|
20827
|
+
* @remarks
|
|
20828
|
+
* Gets the item in the provided input slot.
|
|
20829
|
+
*
|
|
20830
|
+
* @param slot
|
|
20831
|
+
* The zero-based input slot index.
|
|
20832
|
+
* @returns
|
|
20833
|
+
* The item stack in the input slot, or undefined if the slot
|
|
20834
|
+
* is empty.
|
|
20835
|
+
* @throws This function can throw errors.
|
|
20836
|
+
*
|
|
20837
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
20838
|
+
*
|
|
20839
|
+
* {@link minecraftcommon.EngineError}
|
|
20840
|
+
*/
|
|
20841
|
+
getInputItem(slot: number): ItemStack | undefined;
|
|
20842
|
+
/**
|
|
20843
|
+
* @remarks
|
|
20844
|
+
* Gets the item produced by the currently selected recipe.
|
|
20845
|
+
*
|
|
20846
|
+
* @returns
|
|
20847
|
+
* The output item stack, or undefined if there is no output.
|
|
20848
|
+
* @throws This function can throw errors.
|
|
20849
|
+
*
|
|
20850
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
20851
|
+
*
|
|
20852
|
+
* {@link minecraftcommon.EngineError}
|
|
20853
|
+
*/
|
|
20854
|
+
getOutputItem(): ItemStack | undefined;
|
|
20855
|
+
/**
|
|
20856
|
+
* @remarks
|
|
20857
|
+
* Sets or clears an item in an input slot.
|
|
20858
|
+
*
|
|
20859
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
20860
|
+
*
|
|
20861
|
+
* @param slot
|
|
20862
|
+
* The zero-based input slot index.
|
|
20863
|
+
* @param item
|
|
20864
|
+
* The item stack to place in the slot, or undefined to clear
|
|
20865
|
+
* the slot.
|
|
20866
|
+
* @throws This function can throw errors.
|
|
20867
|
+
*
|
|
20868
|
+
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
20869
|
+
*
|
|
20870
|
+
* {@link minecraftcommon.EngineError}
|
|
20871
|
+
*/
|
|
20872
|
+
setInputItem(slot: number, item?: ItemStack): void;
|
|
20873
|
+
/**
|
|
20874
|
+
* @remarks
|
|
20875
|
+
* Selects a recipe for the current crafting operation.
|
|
20876
|
+
*
|
|
20877
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
20878
|
+
*
|
|
20879
|
+
* @param recipeId
|
|
20880
|
+
* The identifier of a valid recipe to select.
|
|
20881
|
+
* @throws This function can throw errors.
|
|
20882
|
+
*
|
|
20883
|
+
* {@link minecraftcommon.EngineError}
|
|
20884
|
+
*
|
|
20885
|
+
* {@link InvalidRecipeError}
|
|
20886
|
+
*/
|
|
20887
|
+
setSelectedRecipe(recipeId: string): void;
|
|
20888
|
+
}
|
|
20889
|
+
|
|
20289
20890
|
/**
|
|
20290
20891
|
* Contains objectives and participants for the scoreboard.
|
|
20291
20892
|
* @example updateScoreboard.ts
|
|
@@ -23732,6 +24333,35 @@ export class WorldAfterEvents {
|
|
|
23732
24333
|
*
|
|
23733
24334
|
*/
|
|
23734
24335
|
readonly playerCancelBreakingBlock: PlayerCancelBreakingBlockAfterEventSignal;
|
|
24336
|
+
/**
|
|
24337
|
+
* @rc
|
|
24338
|
+
* @remarks
|
|
24339
|
+
* This event fires when a player crafts a recipe.
|
|
24340
|
+
*
|
|
24341
|
+
* @privilege early-execution-readable - This property can be read in early-execution mode.
|
|
24342
|
+
*
|
|
24343
|
+
*/
|
|
24344
|
+
readonly playerCraftRecipe: PlayerCraftRecipeAfterEventSignal;
|
|
24345
|
+
/**
|
|
24346
|
+
* @rc
|
|
24347
|
+
* @remarks
|
|
24348
|
+
* Event signal that fires when a player grabs an item from a
|
|
24349
|
+
* container to their cursor.
|
|
24350
|
+
*
|
|
24351
|
+
* @privilege early-execution-readable - This property can be read in early-execution mode.
|
|
24352
|
+
*
|
|
24353
|
+
*/
|
|
24354
|
+
readonly playerCursorItemGrab: PlayerCursorItemGrabAfterEventSignal;
|
|
24355
|
+
/**
|
|
24356
|
+
* @rc
|
|
24357
|
+
* @remarks
|
|
24358
|
+
* Event signal that fires when a player releases an item from
|
|
24359
|
+
* their cursor into a container.
|
|
24360
|
+
*
|
|
24361
|
+
* @privilege early-execution-readable - This property can be read in early-execution mode.
|
|
24362
|
+
*
|
|
24363
|
+
*/
|
|
24364
|
+
readonly playerCursorItemRelease: PlayerCursorItemReleaseAfterEventSignal;
|
|
23735
24365
|
/**
|
|
23736
24366
|
* @remarks
|
|
23737
24367
|
* Fires when a player moved to a different dimension.
|
|
@@ -24575,10 +25205,41 @@ export interface AnimationOptions {
|
|
|
24575
25205
|
totalTimeSeconds: number;
|
|
24576
25206
|
}
|
|
24577
25207
|
|
|
25208
|
+
/**
|
|
25209
|
+
* Options to include or exclude biomes based on biome names,
|
|
25210
|
+
* tags, or namespaces. If no include options are added it will
|
|
25211
|
+
* select all biomes that are not rejected by the exclude
|
|
25212
|
+
* options. If at least one include option is added the biome
|
|
25213
|
+
* must match one of the include options to not be rejected.
|
|
25214
|
+
*/
|
|
24578
25215
|
export interface BiomeFilter {
|
|
25216
|
+
/**
|
|
25217
|
+
* @remarks
|
|
25218
|
+
* Array of biome names that the filter should reject if any
|
|
25219
|
+
* matches.
|
|
25220
|
+
*
|
|
25221
|
+
*/
|
|
24579
25222
|
excludeBiomes?: string[];
|
|
25223
|
+
/**
|
|
25224
|
+
* @remarks
|
|
25225
|
+
* Array of biome tags that the filter should reject if any
|
|
25226
|
+
* matches.
|
|
25227
|
+
*
|
|
25228
|
+
*/
|
|
24580
25229
|
excludeTags?: string[];
|
|
25230
|
+
/**
|
|
25231
|
+
* @remarks
|
|
25232
|
+
* Array of biome names that the filter should select if at
|
|
25233
|
+
* least one matches.
|
|
25234
|
+
*
|
|
25235
|
+
*/
|
|
24581
25236
|
includeBiomes?: string[];
|
|
25237
|
+
/**
|
|
25238
|
+
* @remarks
|
|
25239
|
+
* Array of biome tags that the filter should select if at
|
|
25240
|
+
* least one matches.
|
|
25241
|
+
*
|
|
25242
|
+
*/
|
|
24582
25243
|
includeTags?: string[];
|
|
24583
25244
|
}
|
|
24584
25245
|
|
|
@@ -24686,6 +25347,14 @@ export interface BlockCustomComponent {
|
|
|
24686
25347
|
*
|
|
24687
25348
|
*/
|
|
24688
25349
|
onEntityFallOn?: (arg0: BlockComponentEntityFallOnEvent, arg1: CustomComponentParameters) => void;
|
|
25350
|
+
/**
|
|
25351
|
+
* @rc
|
|
25352
|
+
*/
|
|
25353
|
+
onNamedTick?: (arg0: BlockComponentNamedTickEvent, arg1: CustomComponentParameters) => void;
|
|
25354
|
+
/**
|
|
25355
|
+
* @rc
|
|
25356
|
+
*/
|
|
25357
|
+
onNeighborChanged?: (arg0: BlockComponentNeighborChangedAfterEvent, arg1: CustomComponentParameters) => void;
|
|
24689
25358
|
/**
|
|
24690
25359
|
* @remarks
|
|
24691
25360
|
* This function will be called when the block that this custom
|
|
@@ -26575,6 +27244,35 @@ export interface MusicOptions {
|
|
|
26575
27244
|
volume?: number;
|
|
26576
27245
|
}
|
|
26577
27246
|
|
|
27247
|
+
/**
|
|
27248
|
+
* @rc
|
|
27249
|
+
* Contains information regarding a block change in one
|
|
27250
|
+
* neighboring direction.
|
|
27251
|
+
*/
|
|
27252
|
+
export interface NeighborChange {
|
|
27253
|
+
/**
|
|
27254
|
+
* @remarks
|
|
27255
|
+
* The permutation of the neighboring block after its last
|
|
27256
|
+
* change during the tick.
|
|
27257
|
+
*
|
|
27258
|
+
*/
|
|
27259
|
+
blockPermutation: BlockPermutation;
|
|
27260
|
+
/**
|
|
27261
|
+
* @remarks
|
|
27262
|
+
* Direction from the block receiving the event to the
|
|
27263
|
+
* neighboring block that changed.
|
|
27264
|
+
*
|
|
27265
|
+
*/
|
|
27266
|
+
direction: Direction;
|
|
27267
|
+
/**
|
|
27268
|
+
* @remarks
|
|
27269
|
+
* The permutation of the neighboring block before its first
|
|
27270
|
+
* change during the tick.
|
|
27271
|
+
*
|
|
27272
|
+
*/
|
|
27273
|
+
previousPermutation: BlockPermutation;
|
|
27274
|
+
}
|
|
27275
|
+
|
|
26578
27276
|
/**
|
|
26579
27277
|
* Not equal to operator.
|
|
26580
27278
|
*/
|
|
@@ -26683,6 +27381,31 @@ export interface PlayerBreakingBlockEventOptions {
|
|
|
26683
27381
|
playerFilter?: EntityFilter;
|
|
26684
27382
|
}
|
|
26685
27383
|
|
|
27384
|
+
/**
|
|
27385
|
+
* @rc
|
|
27386
|
+
* Contains options for filtering player craft recipe events.
|
|
27387
|
+
*/
|
|
27388
|
+
export interface PlayerCraftRecipeEventOptions {
|
|
27389
|
+
/**
|
|
27390
|
+
* @remarks
|
|
27391
|
+
* Filter for the block where the recipe is crafted.
|
|
27392
|
+
*
|
|
27393
|
+
*/
|
|
27394
|
+
blockFilter?: BlockFilter;
|
|
27395
|
+
/**
|
|
27396
|
+
* @remarks
|
|
27397
|
+
* Filter for the item crafted by the player.
|
|
27398
|
+
*
|
|
27399
|
+
*/
|
|
27400
|
+
itemFilter?: ItemFilter;
|
|
27401
|
+
/**
|
|
27402
|
+
* @remarks
|
|
27403
|
+
* Filter for the player crafting the recipe.
|
|
27404
|
+
*
|
|
27405
|
+
*/
|
|
27406
|
+
playerFilter?: EntityFilter;
|
|
27407
|
+
}
|
|
27408
|
+
|
|
26686
27409
|
/**
|
|
26687
27410
|
* Additional options for how a sound plays for a player.
|
|
26688
27411
|
*/
|
|
@@ -27151,6 +27874,14 @@ export interface RotationKeyFrame {
|
|
|
27151
27874
|
timeSeconds: number;
|
|
27152
27875
|
}
|
|
27153
27876
|
|
|
27877
|
+
/**
|
|
27878
|
+
* @rc
|
|
27879
|
+
*/
|
|
27880
|
+
export interface ScheduledNamedTick {
|
|
27881
|
+
eventName: string;
|
|
27882
|
+
tickDelay: number;
|
|
27883
|
+
}
|
|
27884
|
+
|
|
27154
27885
|
/**
|
|
27155
27886
|
* Contains additional options for how a scoreboard should be
|
|
27156
27887
|
* displayed within its display slot.
|
|
@@ -28127,6 +28858,23 @@ export class InvalidPotionEffectTypeError extends Error {
|
|
|
28127
28858
|
private constructor();
|
|
28128
28859
|
}
|
|
28129
28860
|
|
|
28861
|
+
/**
|
|
28862
|
+
* @rc
|
|
28863
|
+
* Thrown when an invalid recipe identifier is used.
|
|
28864
|
+
*/
|
|
28865
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
28866
|
+
export class InvalidRecipeError extends Error {
|
|
28867
|
+
private constructor();
|
|
28868
|
+
/**
|
|
28869
|
+
* @remarks
|
|
28870
|
+
* The identifier of the invalid recipe.
|
|
28871
|
+
*
|
|
28872
|
+
* @privilege early-execution-readable - This property can be read in early-execution mode.
|
|
28873
|
+
*
|
|
28874
|
+
*/
|
|
28875
|
+
readonly recipeId: string;
|
|
28876
|
+
}
|
|
28877
|
+
|
|
28130
28878
|
/**
|
|
28131
28879
|
* Thrown when a Structure is invalid. A structure becomes
|
|
28132
28880
|
* invalid when it is deleted.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.12.0-rc.1.26.70-preview.
|
|
3
|
+
"version": "2.12.0-rc.1.26.70-preview.24",
|
|
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.70-preview.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.70-preview.24"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|