-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
同步1.20.80正式版beta脚本API文档,同步1.21.0.23预览版脚本API文档
- Loading branch information
Qianshanyao
committed
Apr 27, 2024
1 parent
23a4a33
commit 79cd57b
Showing
21 changed files
with
34,404 additions
and
23,920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
// Type definitions for Minecraft Bedrock Edition script APIs | ||
// Project: https://docs.microsoft.com/minecraft/creator/ | ||
// Definitions by: Jake Shirley <https://github.com/JakeShirley> | ||
// Mike Ammerlaan <https://github.com/mammerla> | ||
|
||
/* ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
***************************************************************************** */ | ||
/** | ||
* @packageDocumentation | ||
* | ||
* Manifest Details | ||
* ```json | ||
* { | ||
* "module_name": "@minecraft/common", | ||
* "version": "1.1.0" | ||
* } | ||
* ``` | ||
* | ||
*/ | ||
/** | ||
* Represents a min/max structure for expressing a potential | ||
* range of numbers. | ||
*/ | ||
export interface NumberRange { | ||
/** | ||
* @remarks | ||
* Maximum value within a range. | ||
* | ||
*/ | ||
max: number; | ||
/** | ||
* @remarks | ||
* Minimum value within a range. | ||
* | ||
*/ | ||
min: number; | ||
} | ||
|
||
/** | ||
* This type of error is thrown when a parameter to a method or | ||
* property is out of expected bounds. | ||
*/ | ||
// @ts-ignore Class inheritance allowed for native defined classes | ||
export class ArgumentOutOfBoundsError extends Error { | ||
private constructor(); | ||
/** | ||
* @remarks | ||
* Max expected value for the condition. | ||
* | ||
*/ | ||
maxValue: number; | ||
/** | ||
* @remarks | ||
* Min expected value for the condition. | ||
* | ||
*/ | ||
minValue: number; | ||
/** | ||
* @remarks | ||
* Passed-in value for the argument. | ||
* | ||
*/ | ||
value: number; | ||
} | ||
|
||
/** | ||
* Specifies an underlying error in the engine in processing a | ||
* function. | ||
*/ | ||
// @ts-ignore Class inheritance allowed for native defined classes | ||
export class EngineError extends Error { | ||
private constructor(); | ||
} | ||
|
||
/** | ||
* Specifies that a passed-in argument to a method is not | ||
* correct or allowed. | ||
*/ | ||
// @ts-ignore Class inheritance allowed for native defined classes | ||
export class InvalidArgumentError extends Error { | ||
private constructor(); | ||
/** | ||
* @remarks | ||
* Index of the argument that is in error. | ||
* | ||
*/ | ||
index: number; | ||
} | ||
|
||
/** | ||
* @beta | ||
*/ | ||
// @ts-ignore Class inheritance allowed for native defined classes | ||
export class PropertyOutOfBoundsError extends Error { | ||
private constructor(); | ||
maxValue: number; | ||
minValue: number; | ||
value: number; | ||
} |
Oops, something went wrong.