@minecraft/server 1.1.0-beta.preview.1.19.60.20 → 1.1.0-beta.preview.1.19.60.22
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 +25 -1
- 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.1.0-internal.preview.1.19.60.
|
|
18
|
+
* "version": "1.1.0-internal.preview.1.19.60.22"
|
|
19
19
|
* }
|
|
20
20
|
* ```
|
|
21
21
|
*
|
|
@@ -162,6 +162,8 @@ export enum GameMode {
|
|
|
162
162
|
}
|
|
163
163
|
export enum MessageSourceType {
|
|
164
164
|
clientScript = 'clientScript',
|
|
165
|
+
commandBlock = 'commandBlock',
|
|
166
|
+
dialogueCommand = 'dialogueCommand',
|
|
165
167
|
entityCommand = 'entityCommand',
|
|
166
168
|
serverCommand = 'serverCommand',
|
|
167
169
|
serverScript = 'serverScript',
|
|
@@ -696,6 +698,7 @@ export class Block {
|
|
|
696
698
|
* @throws This function can throw errors.
|
|
697
699
|
*/
|
|
698
700
|
getComponent(componentName: string): any;
|
|
701
|
+
getRedstonePower(): number;
|
|
699
702
|
/**
|
|
700
703
|
* @returns
|
|
701
704
|
* The list of tags that the block has.
|
|
@@ -13637,6 +13640,23 @@ export class ScreenDisplay {
|
|
|
13637
13640
|
*/
|
|
13638
13641
|
updateSubtitle(subtitle: string): void;
|
|
13639
13642
|
}
|
|
13643
|
+
export class ScriptEventCommandMessageSignal {
|
|
13644
|
+
protected constructor();
|
|
13645
|
+
subscribe(
|
|
13646
|
+
callback: (arg: ScriptScriptCommandMessageEvent) => void,
|
|
13647
|
+
options?: ScriptEventMessageFilterOptions,
|
|
13648
|
+
): (arg: ScriptScriptCommandMessageEvent) => void;
|
|
13649
|
+
unsubscribe(callback: (arg: ScriptScriptCommandMessageEvent) => void): void;
|
|
13650
|
+
}
|
|
13651
|
+
export class ScriptScriptCommandMessageEvent {
|
|
13652
|
+
protected constructor();
|
|
13653
|
+
readonly id: string;
|
|
13654
|
+
readonly initiator: Entity;
|
|
13655
|
+
readonly message: string;
|
|
13656
|
+
readonly sourceBlock: Block;
|
|
13657
|
+
readonly sourceEntity: Entity;
|
|
13658
|
+
readonly sourceType: MessageSourceType;
|
|
13659
|
+
}
|
|
13640
13660
|
/**
|
|
13641
13661
|
* Describes a particular seating position on this rideable
|
|
13642
13662
|
* entity.
|
|
@@ -13782,6 +13802,7 @@ export class SystemEvents {
|
|
|
13782
13802
|
* ability to override termination events may be disabled.
|
|
13783
13803
|
*/
|
|
13784
13804
|
readonly beforeWatchdogTerminate: BeforeWatchdogTerminateEventSignal;
|
|
13805
|
+
readonly scriptEventReceive: ScriptEventCommandMessageSignal;
|
|
13785
13806
|
}
|
|
13786
13807
|
/**
|
|
13787
13808
|
* An event for handling updates, that fires 20 times every
|
|
@@ -14483,6 +14504,9 @@ export interface ScoreboardObjectiveDisplayOptions {
|
|
|
14483
14504
|
*/
|
|
14484
14505
|
sortOrder?: ObjectiveSortOrder;
|
|
14485
14506
|
}
|
|
14507
|
+
export interface ScriptEventMessageFilterOptions {
|
|
14508
|
+
namespaces: string[];
|
|
14509
|
+
}
|
|
14486
14510
|
/**
|
|
14487
14511
|
* Additional configuration options for the {@link
|
|
14488
14512
|
* Player.playSound}/{@link World.playSound} method.
|