同步游戏版本至1.19.80.21

This commit is contained in:
ProjectXero 2023-03-17 14:24:18 +08:00
commit d225f52537
No known key found for this signature in database
GPG Key ID: C6021259092968FC
27 changed files with 624 additions and 281 deletions

View File

@ -11,21 +11,19 @@ d.ts 文件来源:[NPM @minecraft](https://www.npmjs.com/search?q=%40minecraft
## 准备
```
yarn
npm install
```
## 构建
```
yarn build
npm run build
```
## 更新原始文件Windows
## 更新原始文件
> 执行此步骤前请先提交更改!此步骤会将分支强制切换为 original
```
git checkout original
cd original
yarn install --no-lockfile
cd ..
.\translated\sync.cmd
npm run update
```

1
original/.npmrc Normal file
View File

@ -0,0 +1 @@
package-lock=false

View File

@ -1,8 +1,4 @@
{
"name": "original",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"@minecraft/server": "beta",
"@minecraft/server-admin": "beta",

View File

@ -1 +0,0 @@
export * from "@minecraft/server-admin";

View File

@ -1 +0,0 @@
export * from "@minecraft/server-gametest";

View File

@ -1 +0,0 @@
export * from "@minecraft/server-net";

View File

@ -1 +0,0 @@
export * from "@minecraft/server-ui";

View File

@ -1 +0,0 @@
export * from "@minecraft/server";

View File

@ -1,28 +0,0 @@
{
"files": [
"server.ts",
"server-admin.ts",
"server-gametest.ts",
"server-net.ts",
"server-ui.ts"
],
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"target": "es6",
"noEmit": true,
"declaration": true
},
"typedocOptions": {
"name": "@minecraft",
"entryPoints": [
"server.ts",
"server-admin.ts",
"server-gametest.ts",
"server-net.ts",
"server-ui.ts"
],
"externalPattern": "",
"disableSources": true
}
}

167
package-lock.json generated Normal file
View File

@ -0,0 +1,167 @@
{
"name": "sapi-typedoc",
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"typedoc": "^0.23.23",
"typedoc-plugin-mdn-links": "^2.0.2",
"typescript": "^4.9.4"
},
"devDependencies": {}
},
"node_modules/balanced-match": {
"version": "1.0.2",
"license": "MIT"
},
"node_modules/brace-expansion": {
"version": "2.0.1",
"license": "MIT",
"dependencies": {
"balanced-match": "^1.0.0"
}
},
"node_modules/jsonc-parser": {
"version": "3.2.0",
"license": "MIT"
},
"node_modules/lunr": {
"version": "2.3.9",
"license": "MIT"
},
"node_modules/marked": {
"version": "4.2.5",
"license": "MIT",
"bin": {
"marked": "bin/marked.js"
},
"engines": {
"node": ">= 12"
}
},
"node_modules/minimatch": {
"version": "5.1.2",
"license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
"node": ">=10"
}
},
"node_modules/shiki": {
"version": "0.11.1",
"license": "MIT",
"dependencies": {
"jsonc-parser": "^3.0.0",
"vscode-oniguruma": "^1.6.1",
"vscode-textmate": "^6.0.0"
}
},
"node_modules/typedoc": {
"version": "0.23.23",
"license": "Apache-2.0",
"dependencies": {
"lunr": "^2.3.9",
"marked": "^4.2.4",
"minimatch": "^5.1.1",
"shiki": "^0.11.1"
},
"bin": {
"typedoc": "bin/typedoc"
},
"engines": {
"node": ">= 14.14"
},
"peerDependencies": {
"typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x"
}
},
"node_modules/typedoc-plugin-mdn-links": {
"version": "2.0.2",
"license": "MIT",
"peerDependencies": {
"typedoc": "0.22.x || 0.23.x"
}
},
"node_modules/typescript": {
"version": "4.9.4",
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=4.2.0"
}
},
"node_modules/vscode-oniguruma": {
"version": "1.7.0",
"license": "MIT"
},
"node_modules/vscode-textmate": {
"version": "6.0.0",
"license": "MIT"
}
},
"dependencies": {
"balanced-match": {
"version": "1.0.2"
},
"brace-expansion": {
"version": "2.0.1",
"requires": {
"balanced-match": "^1.0.0"
}
},
"jsonc-parser": {
"version": "3.2.0"
},
"lunr": {
"version": "2.3.9"
},
"marked": {
"version": "4.2.5"
},
"minimatch": {
"version": "5.1.2",
"requires": {
"brace-expansion": "^2.0.1"
}
},
"shiki": {
"version": "0.11.1",
"requires": {
"jsonc-parser": "^3.0.0",
"vscode-oniguruma": "^1.6.1",
"vscode-textmate": "^6.0.0"
}
},
"typedoc": {
"version": "0.23.23",
"requires": {
"lunr": "^2.3.9",
"marked": "^4.2.4",
"minimatch": "^5.1.1",
"shiki": "^0.11.1"
}
},
"typedoc-plugin-mdn-links": {
"version": "2.0.2",
"requires": {}
},
"typescript": {
"version": "4.9.4"
},
"vscode-oniguruma": {
"version": "1.7.0"
},
"vscode-textmate": {
"version": "6.0.0"
}
}
}

View File

@ -3,8 +3,8 @@
"version": "1.0.0",
"license": "MIT",
"scripts": {
"build-original": "typedoc --tsconfig original/tsconfig.json --out dist_original --json dist_original/index.json",
"build": "typedoc --tsconfig translated/tsconfig.json --out dist --json dist/index.json --logLevel Verbose"
"build": "node ./script/build.js",
"update": "node ./script/update.js"
},
"dependencies": {
"typedoc": "^0.23.23",

41
script/build.js Normal file
View File

@ -0,0 +1,41 @@
const TypeDoc = require("typedoc");
const { resolve: resolvePath } = require("path");
const basePath = resolvePath(__dirname, "..");
const translatedPath = resolvePath(basePath, "translated");
const distPath = resolvePath(basePath, "dist");
async function build() {
const app = new TypeDoc.Application();
app.options.addReader(new TypeDoc.TSConfigReader());
app.bootstrap({
tsconfig: resolvePath(translatedPath, "tsconfig.json"),
githubPages: false,
logLevel: "Verbose"
});
const project = app.convert();
if (project) {
project.traverse((reflection) => {
if (reflection.sources) {
reflection.sources.forEach((source) => {
source.fileName = source.fileName.replace("translated", project.name);
});
}
return true;
});
await app.generateDocs(project, distPath);
} else {
throw new Error("Convert failed");
}
return project;
}
module.exports = {
build
};
if (require.main === module) {
build().catch((err) => {
console.error(err);
});
}

198
script/update.js Normal file
View File

@ -0,0 +1,198 @@
const { execSync } = require("child_process");
const { existsSync, readFileSync, copyFileSync, writeFileSync } = require("fs");
const { createRequire } = require("module");
const { resolve: resolvePath } = require("path");
const { URL } = require("url");
const { build } = require("./build.js");
const basePath = resolvePath(__dirname, "..");
const originalPath = resolvePath(basePath, "original");
const translatedPath = resolvePath(basePath, "translated");
const namespacePrefix = "@minecraft/";
const baseURL = "https://projectxero.top/sapi/";
function readPackageInfo(modulePath) {
const packageInfoPath = resolvePath(modulePath, "package.json");
if (existsSync(packageInfoPath)) {
try {
return JSON.parse(readFileSync(packageInfoPath, "utf-8"));
} catch(e) { /* ignore */ }
}
}
function findModule(moduleName, root) {
const localRequire = createRequire(resolvePath(root, "node_modules"));
const searchPaths = localRequire.resolve.paths(moduleName);
for (const searchPath of searchPaths) {
const modulePath = resolvePath(searchPath, moduleName);
const moduleDesc = readPackageInfo(modulePath);
if (moduleDesc && moduleDesc.name === moduleName) {
return modulePath;
}
}
}
function extractVersionInfo(versionString) {
const match = /^([\d.]+-\w+)\.([\d.]+)-(\w+)(\.\d+)?$/.exec(versionString);
if (match) {
const [, version, gameVersion, gamePreRelease, gameBuild] = match;
if (gameBuild) {
return { version, gamePreRelease, gameVersion: gameVersion + gameBuild };
}
return { version, gamePreRelease, gameVersion };
}
}
const KindString = [
// Project = 0x1,
"项目",
// Module = 0x2,
"模块",
// Namespace = 0x4,
"模块",
// Enum = 0x8,
"枚举",
// EnumMember = 0x10,
"枚举成员",
// Variable = 0x20,
"变量",
// Function = 0x40,
"函数",
// Class = 0x80,
"类",
// Interface = 0x100,
"接口",
// Constructor = 0x200,
"构造器",
// Property = 0x400,
"属性",
// Method = 0x800,
"方法",
// CallSignature = 0x1000,
"调用签名",
// IndexSignature = 0x2000,
"索引签名",
// ConstructorSignature = 0x4000,
"构造器签名",
// Parameter = 0x8000,
"参数",
// TypeLiteral = 0x10000,
"类型字面量",
// TypeParameter = 0x20000,
"类型参数",
// Accessor = 0x40000,
"访问器",
// GetSignature = 0x80000,
"Getter 签名",
// SetSignature = 0x100000,
"Setter 签名",
// ObjectLiteral = 0x200000,
"对象字面量",
// TypeAlias = 0x400000,
"类型别名",
// Reference = 0x800000
"引用"
];
function kindToString(kind) {
const result = [];
for (let i = 0; i < KindString.length; i++) {
if (kind & (1 << i)) {
result.push(KindString[i]);
}
}
return result.join("/");
}
async function main() {
// 1. 强制检出 original 分支
execSync("git checkout original", {
cwd: basePath,
stdio: "inherit"
});
// 2. 无视 lockfile 更新模块
execSync("npm install", {
cwd: originalPath,
stdio: "inherit"
});
// 3. 复制模块 d.ts 至翻译目录
const dependencies = readPackageInfo(originalPath).dependencies;
Object.keys(dependencies).forEach((moduleName) => {
if (moduleName.startsWith(namespacePrefix)) {
const pureModuleName = moduleName.slice(namespacePrefix.length);
const modulePath = findModule(moduleName, originalPath);
const packageInfo = readPackageInfo(modulePath);
const version = packageInfo.version;
console.log(`Copying d.ts for ${moduleName}@${version}`);
copyFileSync(
resolvePath(modulePath, "index.d.ts"),
resolvePath(translatedPath, `${pureModuleName}.d.ts`)
);
dependencies[moduleName] = version;
}
});
// 4. 生成一次文档
const project = await build();
// 5. 生成 README.md 。
const readMePath = resolvePath(translatedPath, "README.md");
const readMe = readFileSync(readMePath, "utf-8");
const summaryLines = [
"<!-- summary start -->",
"",
"|模块|版本|",
"| - | - |"
];
let gameVersion;
Object.entries(dependencies).forEach(([moduleName, version]) => {
const versionInfo = extractVersionInfo(version);
if (!versionInfo) {
throw new Error(`Invalid version for ${moduleName}@${version}`)
}
if (!gameVersion) gameVersion = versionInfo.gameVersion;
summaryLines.push(`|[${moduleName}](https://www.npmjs.com/package/${moduleName})|\`${versionInfo.version}\`|`);
});
summaryLines.push("");
summaryLines.push(`游戏版本号:\`${gameVersion}\``);
summaryLines.push("");
summaryLines.push("<!-- summary end -->");
const statusHeadLines = [
"<!-- status start -->",
"",
"|模块|进度|",
"| - | - |"
];
const statusLines = [];
project.children.forEach((moduleRef) => {
const moduleFullName = namespacePrefix + moduleRef.name;
const linkHref = moduleFullName.replace(/[@\/]/g, "");
statusHeadLines.push(`|[${moduleFullName}](#${linkHref})|0/${moduleRef.children.length}|`);
statusLines.push("");
statusLines.push(`### ${moduleFullName}`);
statusLines.push("");
statusLines.push("|名称|类型|状态|");
statusLines.push("| - | - | - |");
moduleRef.children.forEach((member) => {
const kindStr = kindToString(member.kind);
const url = new URL(member.url, baseURL);
statusLines.push(`|[\`${member.name}\`](${url})|${kindStr}|未翻译|`);
});
});
statusLines.unshift(...statusHeadLines);
statusLines.push("");
statusLines.push("<!-- status end -->");
const newReadMe = readMe
.replace(/<!-- summary start -->\n\n[^]+\n\n<!-- summary end -->/, summaryLines.join("\n"))
.replace(/<!-- status start -->\n\n[^]+\n\n<!-- status end -->/, statusLines.join("\n"));
writeFileSync(readMePath, newReadMe);
}
main().catch((err) => {
console.error(err);
});

View File

@ -2,15 +2,19 @@
Minecraft 脚本 API 文档。
<!-- summary start -->
|模块|版本|
| - | - |
|[@minecraft/server](https://www.npmjs.com/package/@minecraft/server)|`1.1.0-beta`|
|[@minecraft/server](https://www.npmjs.com/package/@minecraft/server)|`1.2.0-beta`|
|[@minecraft/server-admin](https://www.npmjs.com/package/@minecraft/server-admin)|`1.0.0-beta`|
|[@minecraft/server-gametest](https://www.npmjs.com/package/@minecraft/server-gametest)|`1.0.0-beta`|
|[@minecraft/server-net](https://www.npmjs.com/package/@minecraft/server-net)|`1.0.0-beta`|
|[@minecraft/server-ui](https://www.npmjs.com/package/@minecraft/server-ui)|`1.0.0-beta`|
游戏版本号:`1.19.70.22`
游戏版本号:`1.19.80.21`
<!-- summary end -->
通过 [typedoc](https://typedoc.org/) 基于 d.ts 生成。
@ -77,13 +81,15 @@ random(min: number, max: number): number;
|`暂停中`|未完成翻译,因为译名讨论等原因暂停|
|`已完成`|已完成此部分的翻译|
<!-- status start -->
|模块|进度|
| - | - |
|[@minecraft/server](#minecraftserver)|21/252|
|[@minecraft/server](#minecraftserver)|21/299|
|[@minecraft/server-admin](#minecraftserver-admin)|0/5|
|[@minecraft/server-gametest](#minecraftserver-gametest)|0/9|
|[@minecraft/server-gametest](#minecraftserver-gametest)|0/12|
|[@minecraft/server-net](#minecraftserver-net)|0/6|
|[@minecraft/server-ui](#minecraftserver-ui)|0/8|
|[@minecraft/server-ui](#minecraftserver-ui)|0/10|
### @minecraft/server
@ -91,7 +97,9 @@ random(min: number, max: number): number;
| - | - | - |
|[`Direction`](https://projectxero.top/sapi/enums/server.Direction.html)|枚举|已完成|
|[`DisplaySlotId`](https://projectxero.top/sapi/enums/server.DisplaySlotId.html)|枚举|已完成|
|[`DyeColor`](https://projectxero.top/sapi/enums/server.DyeColor.html)|枚举|未翻译|
|[`EntityDamageCause`](https://projectxero.top/sapi/enums/server.EntityDamageCause.html)|枚举|未翻译|
|[`EquipmentSlot`](https://projectxero.top/sapi/enums/server.EquipmentSlot.html)|枚举|未翻译|
|[`FluidType`](https://projectxero.top/sapi/enums/server.FluidType.html)|枚举|未翻译|
|[`GameMode`](https://projectxero.top/sapi/enums/server.GameMode.html)|枚举|未翻译|
|[`ItemLockMode`](https://projectxero.top/sapi/enums/server.ItemLockMode.html)|枚举|未翻译|
@ -101,38 +109,39 @@ random(min: number, max: number): number;
|[`TimeOfDay`](https://projectxero.top/sapi/enums/server.TimeOfDay.html)|枚举|未翻译|
|[`WatchdogTerminateReason`](https://projectxero.top/sapi/enums/server.WatchdogTerminateReason.html)|枚举|未翻译|
|[`BeforeChatEvent`](https://projectxero.top/sapi/classes/server.BeforeChatEvent.html)|类|未翻译|
|[`BeforeChatEventSignal`](https://projectxero.top/sapi/classes/server.BeforeChatEventSignal.html)|类|未翻译|
|[`BeforeChatEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BeforeChatEventSignal_deprecated.html)|类|未翻译|
|[`BeforeDataDrivenEntityTriggerEvent`](https://projectxero.top/sapi/classes/server.BeforeDataDrivenEntityTriggerEvent.html)|类|未翻译|
|[`BeforeDataDrivenEntityTriggerEventSignal`](https://projectxero.top/sapi/classes/server.BeforeDataDrivenEntityTriggerEventSignal.html)|类|未翻译|
|[`BeforeDataDrivenEntityTriggerEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BeforeDataDrivenEntityTriggerEventSignal_deprecated.html)|类|未翻译|
|[`BeforeExplosionEvent`](https://projectxero.top/sapi/classes/server.BeforeExplosionEvent.html)|类|未翻译|
|[`BeforeExplosionEventSignal`](https://projectxero.top/sapi/classes/server.BeforeExplosionEventSignal.html)|类|未翻译|
|[`BeforeItemDefinitionEventSignal`](https://projectxero.top/sapi/classes/server.BeforeItemDefinitionEventSignal.html)|类|未翻译|
|[`BeforeExplosionEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BeforeExplosionEventSignal_deprecated.html)|类|未翻译|
|[`BeforeItemDefinitionEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BeforeItemDefinitionEventSignal_deprecated.html)|类|未翻译|
|[`BeforeItemDefinitionTriggeredEvent`](https://projectxero.top/sapi/classes/server.BeforeItemDefinitionTriggeredEvent.html)|类|未翻译|
|[`BeforeItemUseEvent`](https://projectxero.top/sapi/classes/server.BeforeItemUseEvent.html)|类|未翻译|
|[`BeforeItemUseEventSignal`](https://projectxero.top/sapi/classes/server.BeforeItemUseEventSignal.html)|类|未翻译|
|[`BeforeItemUseEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BeforeItemUseEventSignal_deprecated.html)|类|未翻译|
|[`BeforeItemUseOnEvent`](https://projectxero.top/sapi/classes/server.BeforeItemUseOnEvent.html)|类|未翻译|
|[`BeforeItemUseOnEventSignal`](https://projectxero.top/sapi/classes/server.BeforeItemUseOnEventSignal.html)|类|未翻译|
|[`BeforeItemUseOnEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BeforeItemUseOnEventSignal_deprecated.html)|类|未翻译|
|[`BeforePistonActivateEvent`](https://projectxero.top/sapi/classes/server.BeforePistonActivateEvent.html)|类|未翻译|
|[`BeforePistonActivateEventSignal`](https://projectxero.top/sapi/classes/server.BeforePistonActivateEventSignal.html)|类|未翻译|
|[`BeforePistonActivateEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BeforePistonActivateEventSignal_deprecated.html)|类|未翻译|
|[`BeforeWatchdogTerminateEvent`](https://projectxero.top/sapi/classes/server.BeforeWatchdogTerminateEvent.html)|类|未翻译|
|[`BeforeWatchdogTerminateEventSignal`](https://projectxero.top/sapi/classes/server.BeforeWatchdogTerminateEventSignal.html)|类|未翻译|
|[`BeforeWatchdogTerminateEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BeforeWatchdogTerminateEventSignal_deprecated.html)|类|未翻译|
|[`Block`](https://projectxero.top/sapi/classes/server.Block.html)|类|未翻译|
|[`BlockAreaSize`](https://projectxero.top/sapi/classes/server.BlockAreaSize.html)|类|未翻译|
|[`BlockBreakEvent`](https://projectxero.top/sapi/classes/server.BlockBreakEvent.html)|类|未翻译|
|[`BlockBreakEventSignal`](https://projectxero.top/sapi/classes/server.BlockBreakEventSignal.html)|类|未翻译|
|[`BlockBreakEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BlockBreakEventSignal_deprecated.html)|类|未翻译|
|[`BlockComponent`](https://projectxero.top/sapi/classes/server.BlockComponent.html)|类|未翻译|
|[`BlockEvent`](https://projectxero.top/sapi/classes/server.BlockEvent.html)|类|未翻译|
|[`BlockExplodeEvent`](https://projectxero.top/sapi/classes/server.BlockExplodeEvent.html)|类|未翻译|
|[`BlockExplodeEventSignal`](https://projectxero.top/sapi/classes/server.BlockExplodeEventSignal.html)|类|未翻译|
|[`BlockExplodeEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BlockExplodeEventSignal_deprecated.html)|类|未翻译|
|[`BlockInventoryComponent`](https://projectxero.top/sapi/classes/server.BlockInventoryComponent.html)|类|未翻译|
|[`BlockInventoryComponentContainer`](https://projectxero.top/sapi/classes/server.BlockInventoryComponentContainer.html)|类|未翻译|
|[`BlockLavaContainerComponent`](https://projectxero.top/sapi/classes/server.BlockLavaContainerComponent.html)|类|未翻译|
|[`BlockLiquidContainerComponent`](https://projectxero.top/sapi/classes/server.BlockLiquidContainerComponent.html)|类|未翻译|
|[`BlockPermutation`](https://projectxero.top/sapi/classes/server.BlockPermutation.html)|类|未翻译|
|[`BlockPistonComponent`](https://projectxero.top/sapi/classes/server.BlockPistonComponent.html)|类|未翻译|
|[`BlockPlaceEvent`](https://projectxero.top/sapi/classes/server.BlockPlaceEvent.html)|类|未翻译|
|[`BlockPlaceEventSignal`](https://projectxero.top/sapi/classes/server.BlockPlaceEventSignal.html)|类|未翻译|
|[`BlockPlaceEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.BlockPlaceEventSignal_deprecated.html)|类|未翻译|
|[`BlockPotionContainerComponent`](https://projectxero.top/sapi/classes/server.BlockPotionContainerComponent.html)|类|未翻译|
|[`BlockProperties`](https://projectxero.top/sapi/classes/server.BlockProperties.html)|类|未翻译|
|[`BlockProperty`](https://projectxero.top/sapi/classes/server.BlockProperty.html)|类|未翻译|
|[`BlockPropertyType`](https://projectxero.top/sapi/classes/server.BlockPropertyType.html)|类|未翻译|
|[`BlockRecordPlayerComponent`](https://projectxero.top/sapi/classes/server.BlockRecordPlayerComponent.html)|类|未翻译|
|[`BlockSignComponent`](https://projectxero.top/sapi/classes/server.BlockSignComponent.html)|类|未翻译|
@ -140,21 +149,22 @@ random(min: number, max: number): number;
|[`BlockType`](https://projectxero.top/sapi/classes/server.BlockType.html)|类|未翻译|
|[`BlockWaterContainerComponent`](https://projectxero.top/sapi/classes/server.BlockWaterContainerComponent.html)|类|未翻译|
|[`ButtonPushEvent`](https://projectxero.top/sapi/classes/server.ButtonPushEvent.html)|类|未翻译|
|[`ButtonPushEventSignal`](https://projectxero.top/sapi/classes/server.ButtonPushEventSignal.html)|类|未翻译|
|[`ButtonPushEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ButtonPushEventSignal_deprecated.html)|类|未翻译|
|[`ChatEvent`](https://projectxero.top/sapi/classes/server.ChatEvent.html)|类|未翻译|
|[`ChatEventSignal`](https://projectxero.top/sapi/classes/server.ChatEventSignal.html)|类|未翻译|
|[`ChatEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ChatEventSignal_deprecated.html)|类|未翻译|
|[`CommandResult`](https://projectxero.top/sapi/classes/server.CommandResult.html)|类|未翻译|
|[`Component`](https://projectxero.top/sapi/classes/server.Component.html)|类|未翻译|
|[`Container`](https://projectxero.top/sapi/classes/server.Container.html)|类|未翻译|
|[`ContainerSlot`](https://projectxero.top/sapi/classes/server.ContainerSlot.html)|类|未翻译|
|[`DataDrivenEntityTriggerEvent`](https://projectxero.top/sapi/classes/server.DataDrivenEntityTriggerEvent.html)|类|未翻译|
|[`DataDrivenEntityTriggerEventSignal`](https://projectxero.top/sapi/classes/server.DataDrivenEntityTriggerEventSignal.html)|类|未翻译|
|[`DataDrivenEntityTriggerEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.DataDrivenEntityTriggerEventSignal_deprecated.html)|类|未翻译|
|[`DefinitionModifier`](https://projectxero.top/sapi/classes/server.DefinitionModifier.html)|类|未翻译|
|[`Dimension`](https://projectxero.top/sapi/classes/server.Dimension.html)|类|未翻译|
|[`DirectionBlockProperty`](https://projectxero.top/sapi/classes/server.DirectionBlockProperty.html)|类|未翻译|
|[`DynamicPropertiesDefinition`](https://projectxero.top/sapi/classes/server.DynamicPropertiesDefinition.html)|类|已完成|
|[`Effect`](https://projectxero.top/sapi/classes/server.Effect.html)|类|未翻译|
|[`EffectAddEvent`](https://projectxero.top/sapi/classes/server.EffectAddEvent.html)|类|未翻译|
|[`EffectAddEventSignal`](https://projectxero.top/sapi/classes/server.EffectAddEventSignal.html)|类|未翻译|
|[`EffectAddEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.EffectAddEventSignal_deprecated.html)|类|未翻译|
|[`EffectType`](https://projectxero.top/sapi/classes/server.EffectType.html)|类|未翻译|
|[`Enchantment`](https://projectxero.top/sapi/classes/server.Enchantment.html)|类|未翻译|
|[`EnchantmentList`](https://projectxero.top/sapi/classes/server.EnchantmentList.html)|类|未翻译|
@ -163,14 +173,18 @@ random(min: number, max: number): number;
|[`Entity`](https://projectxero.top/sapi/classes/server.Entity.html)|类|未翻译|
|[`EntityAddRiderComponent`](https://projectxero.top/sapi/classes/server.EntityAddRiderComponent.html)|类|未翻译|
|[`EntityAgeableComponent`](https://projectxero.top/sapi/classes/server.EntityAgeableComponent.html)|类|未翻译|
|[`EntityAttributeComponent`](https://projectxero.top/sapi/classes/server.EntityAttributeComponent.html)|类|未翻译|
|[`EntityBaseMovementComponent`](https://projectxero.top/sapi/classes/server.EntityBaseMovementComponent.html)|类|未翻译|
|[`EntityBreathableComponent`](https://projectxero.top/sapi/classes/server.EntityBreathableComponent.html)|类|未翻译|
|[`EntityCanClimbComponent`](https://projectxero.top/sapi/classes/server.EntityCanClimbComponent.html)|类|未翻译|
|[`EntityCanFlyComponent`](https://projectxero.top/sapi/classes/server.EntityCanFlyComponent.html)|类|未翻译|
|[`EntityCanPowerJumpComponent`](https://projectxero.top/sapi/classes/server.EntityCanPowerJumpComponent.html)|类|未翻译|
|[`EntityColorComponent`](https://projectxero.top/sapi/classes/server.EntityColorComponent.html)|类|未翻译|
|[`EntityComponent`](https://projectxero.top/sapi/classes/server.EntityComponent.html)|类|未翻译|
|[`EntityDefinitionFeedItem`](https://projectxero.top/sapi/classes/server.EntityDefinitionFeedItem.html)|类|未翻译|
|[`EntityDieEvent`](https://projectxero.top/sapi/classes/server.EntityDieEvent.html)|类|未翻译|
|[`EntityDieEventSignal`](https://projectxero.top/sapi/classes/server.EntityDieEventSignal.html)|类|未翻译|
|[`EntityDieEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.EntityDieEventSignal_deprecated.html)|类|未翻译|
|[`EntityEquipmentInventoryComponent`](https://projectxero.top/sapi/classes/server.EntityEquipmentInventoryComponent.html)|类|未翻译|
|[`EntityFireImmuneComponent`](https://projectxero.top/sapi/classes/server.EntityFireImmuneComponent.html)|类|未翻译|
|[`EntityFloatsInLiquidComponent`](https://projectxero.top/sapi/classes/server.EntityFloatsInLiquidComponent.html)|类|未翻译|
|[`EntityFlyingSpeedComponent`](https://projectxero.top/sapi/classes/server.EntityFlyingSpeedComponent.html)|类|未翻译|
@ -179,9 +193,9 @@ random(min: number, max: number): number;
|[`EntityHealableComponent`](https://projectxero.top/sapi/classes/server.EntityHealableComponent.html)|类|未翻译|
|[`EntityHealthComponent`](https://projectxero.top/sapi/classes/server.EntityHealthComponent.html)|类|未翻译|
|[`EntityHitEvent`](https://projectxero.top/sapi/classes/server.EntityHitEvent.html)|类|未翻译|
|[`EntityHitEventSignal`](https://projectxero.top/sapi/classes/server.EntityHitEventSignal.html)|类|未翻译|
|[`EntityHitEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.EntityHitEventSignal_deprecated.html)|类|未翻译|
|[`EntityHurtEvent`](https://projectxero.top/sapi/classes/server.EntityHurtEvent.html)|类|未翻译|
|[`EntityHurtEventSignal`](https://projectxero.top/sapi/classes/server.EntityHurtEventSignal.html)|类|未翻译|
|[`EntityHurtEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.EntityHurtEventSignal_deprecated.html)|类|未翻译|
|[`EntityInventoryComponent`](https://projectxero.top/sapi/classes/server.EntityInventoryComponent.html)|类|已完成|
|[`EntityIsBabyComponent`](https://projectxero.top/sapi/classes/server.EntityIsBabyComponent.html)|类|未翻译|
|[`EntityIsChargedComponent`](https://projectxero.top/sapi/classes/server.EntityIsChargedComponent.html)|类|未翻译|
@ -213,6 +227,7 @@ random(min: number, max: number): number;
|[`EntityMovementSkipComponent`](https://projectxero.top/sapi/classes/server.EntityMovementSkipComponent.html)|类|未翻译|
|[`EntityMovementSwayComponent`](https://projectxero.top/sapi/classes/server.EntityMovementSwayComponent.html)|类|未翻译|
|[`EntityNavigationClimbComponent`](https://projectxero.top/sapi/classes/server.EntityNavigationClimbComponent.html)|类|未翻译|
|[`EntityNavigationComponent`](https://projectxero.top/sapi/classes/server.EntityNavigationComponent.html)|类|未翻译|
|[`EntityNavigationFloatComponent`](https://projectxero.top/sapi/classes/server.EntityNavigationFloatComponent.html)|类|未翻译|
|[`EntityNavigationFlyComponent`](https://projectxero.top/sapi/classes/server.EntityNavigationFlyComponent.html)|类|未翻译|
|[`EntityNavigationGenericComponent`](https://projectxero.top/sapi/classes/server.EntityNavigationGenericComponent.html)|类|未翻译|
@ -221,10 +236,11 @@ random(min: number, max: number): number;
|[`EntityOnFireComponent`](https://projectxero.top/sapi/classes/server.EntityOnFireComponent.html)|类|未翻译|
|[`EntityPushThroughComponent`](https://projectxero.top/sapi/classes/server.EntityPushThroughComponent.html)|类|未翻译|
|[`EntityRideableComponent`](https://projectxero.top/sapi/classes/server.EntityRideableComponent.html)|类|未翻译|
|[`EntityRidingComponent`](https://projectxero.top/sapi/classes/server.EntityRidingComponent.html)|类|未翻译|
|[`EntityScaleComponent`](https://projectxero.top/sapi/classes/server.EntityScaleComponent.html)|类|未翻译|
|[`EntitySkinIdComponent`](https://projectxero.top/sapi/classes/server.EntitySkinIdComponent.html)|类|未翻译|
|[`EntitySpawnEvent`](https://projectxero.top/sapi/classes/server.EntitySpawnEvent.html)|类|未翻译|
|[`EntitySpawnEventSignal`](https://projectxero.top/sapi/classes/server.EntitySpawnEventSignal.html)|类|未翻译|
|[`EntitySpawnEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.EntitySpawnEventSignal_deprecated.html)|类|未翻译|
|[`EntityStrengthComponent`](https://projectxero.top/sapi/classes/server.EntityStrengthComponent.html)|类|未翻译|
|[`EntityTameableComponent`](https://projectxero.top/sapi/classes/server.EntityTameableComponent.html)|类|未翻译|
|[`EntityType`](https://projectxero.top/sapi/classes/server.EntityType.html)|类|未翻译|
@ -235,42 +251,80 @@ random(min: number, max: number): number;
|[`EntityWantsJockeyComponent`](https://projectxero.top/sapi/classes/server.EntityWantsJockeyComponent.html)|类|未翻译|
|[`Events`](https://projectxero.top/sapi/classes/server.Events.html)|类|未翻译|
|[`ExplosionEvent`](https://projectxero.top/sapi/classes/server.ExplosionEvent.html)|类|未翻译|
|[`ExplosionEventSignal`](https://projectxero.top/sapi/classes/server.ExplosionEventSignal.html)|类|未翻译|
|[`ExplosionEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ExplosionEventSignal_deprecated.html)|类|未翻译|
|[`FeedItem`](https://projectxero.top/sapi/classes/server.FeedItem.html)|类|未翻译|
|[`FeedItemEffect`](https://projectxero.top/sapi/classes/server.FeedItemEffect.html)|类|未翻译|
|[`FilterGroup`](https://projectxero.top/sapi/classes/server.FilterGroup.html)|类|未翻译|
|[`FluidContainer`](https://projectxero.top/sapi/classes/server.FluidContainer.html)|类|未翻译|
|[`IEntityComponent`](https://projectxero.top/sapi/classes/server.IEntityComponent.html)|类|未翻译|
|[`InventoryComponentContainer`](https://projectxero.top/sapi/classes/server.InventoryComponentContainer.html)|类|未翻译|
|[`IBeforeChatEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.IBeforeChatEventSignal_deprecated.html)|类|未翻译|
|[`IBeforeDataDrivenEntityTriggerEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.IBeforeDataDrivenEntityTriggerEventSignal_deprecated.html)|类|未翻译|
|[`IBeforeExplosionEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.IBeforeExplosionEventSignal_deprecated.html)|类|未翻译|
|[`IBeforeItemDefinitionEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.IBeforeItemDefinitionEventSignal_deprecated.html)|类|未翻译|
|[`IBeforeItemUseEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.IBeforeItemUseEventSignal_deprecated.html)|类|未翻译|
|[`IBeforeItemUseOnEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.IBeforeItemUseOnEventSignal_deprecated.html)|类|未翻译|
|[`IBeforePistonActivateEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.IBeforePistonActivateEventSignal_deprecated.html)|类|未翻译|
|[`IBeforeWatchdogTerminateEventSignal`](https://projectxero.top/sapi/classes/server.IBeforeWatchdogTerminateEventSignal.html)|类|未翻译|
|[`IBlockBreakEventSignal`](https://projectxero.top/sapi/classes/server.IBlockBreakEventSignal.html)|类|未翻译|
|[`IBlockExplodeEventSignal`](https://projectxero.top/sapi/classes/server.IBlockExplodeEventSignal.html)|类|未翻译|
|[`IBlockPlaceEventSignal`](https://projectxero.top/sapi/classes/server.IBlockPlaceEventSignal.html)|类|未翻译|
|[`IButtonPushEventSignal`](https://projectxero.top/sapi/classes/server.IButtonPushEventSignal.html)|类|未翻译|
|[`IChatEventSignal`](https://projectxero.top/sapi/classes/server.IChatEventSignal.html)|类|未翻译|
|[`IDataDrivenEntityTriggerEventSignal`](https://projectxero.top/sapi/classes/server.IDataDrivenEntityTriggerEventSignal.html)|类|未翻译|
|[`IEffectAddEventSignal`](https://projectxero.top/sapi/classes/server.IEffectAddEventSignal.html)|类|未翻译|
|[`IEntityDieEventSignal`](https://projectxero.top/sapi/classes/server.IEntityDieEventSignal.html)|类|未翻译|
|[`IEntityHitEventSignal`](https://projectxero.top/sapi/classes/server.IEntityHitEventSignal.html)|类|未翻译|
|[`IEntityHurtEventSignal`](https://projectxero.top/sapi/classes/server.IEntityHurtEventSignal.html)|类|未翻译|
|[`IEntitySpawnEventSignal`](https://projectxero.top/sapi/classes/server.IEntitySpawnEventSignal.html)|类|未翻译|
|[`IExplosionEventSignal`](https://projectxero.top/sapi/classes/server.IExplosionEventSignal.html)|类|未翻译|
|[`IItemCompleteChargeEventSignal`](https://projectxero.top/sapi/classes/server.IItemCompleteChargeEventSignal.html)|类|未翻译|
|[`IItemDefinitionEventSignal`](https://projectxero.top/sapi/classes/server.IItemDefinitionEventSignal.html)|类|未翻译|
|[`IItemReleaseChargeEventSignal`](https://projectxero.top/sapi/classes/server.IItemReleaseChargeEventSignal.html)|类|未翻译|
|[`IItemStartChargeEventSignal`](https://projectxero.top/sapi/classes/server.IItemStartChargeEventSignal.html)|类|未翻译|
|[`IItemStartUseOnEventSignal`](https://projectxero.top/sapi/classes/server.IItemStartUseOnEventSignal.html)|类|未翻译|
|[`IItemStopChargeEventSignal`](https://projectxero.top/sapi/classes/server.IItemStopChargeEventSignal.html)|类|未翻译|
|[`IItemStopUseOnEventSignal`](https://projectxero.top/sapi/classes/server.IItemStopUseOnEventSignal.html)|类|未翻译|
|[`IItemUseEventSignal`](https://projectxero.top/sapi/classes/server.IItemUseEventSignal.html)|类|未翻译|
|[`IItemUseOnEventSignal`](https://projectxero.top/sapi/classes/server.IItemUseOnEventSignal.html)|类|未翻译|
|[`ILeverActionEventSignal`](https://projectxero.top/sapi/classes/server.ILeverActionEventSignal.html)|类|未翻译|
|[`IPistonActivateEventSignal`](https://projectxero.top/sapi/classes/server.IPistonActivateEventSignal.html)|类|未翻译|
|[`IPlayerJoinEventSignal`](https://projectxero.top/sapi/classes/server.IPlayerJoinEventSignal.html)|类|未翻译|
|[`IPlayerLeaveEventSignal`](https://projectxero.top/sapi/classes/server.IPlayerLeaveEventSignal.html)|类|未翻译|
|[`IPlayerSpawnEventSignal`](https://projectxero.top/sapi/classes/server.IPlayerSpawnEventSignal.html)|类|未翻译|
|[`IProjectileHitEventSignal`](https://projectxero.top/sapi/classes/server.IProjectileHitEventSignal.html)|类|未翻译|
|[`IScriptEventCommandMessageSignal`](https://projectxero.top/sapi/classes/server.IScriptEventCommandMessageSignal.html)|类|未翻译|
|[`IServerMessageSignal`](https://projectxero.top/sapi/classes/server.IServerMessageSignal.html)|类|未翻译|
|[`IWeatherChangeEventSignal`](https://projectxero.top/sapi/classes/server.IWeatherChangeEventSignal.html)|类|未翻译|
|[`IWorldInitializeEventSignal`](https://projectxero.top/sapi/classes/server.IWorldInitializeEventSignal.html)|类|未翻译|
|[`ItemCompleteChargeEvent`](https://projectxero.top/sapi/classes/server.ItemCompleteChargeEvent.html)|类|未翻译|
|[`ItemCompleteChargeEventSignal`](https://projectxero.top/sapi/classes/server.ItemCompleteChargeEventSignal.html)|类|未翻译|
|[`ItemCompleteChargeEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ItemCompleteChargeEventSignal_deprecated.html)|类|未翻译|
|[`ItemComponent`](https://projectxero.top/sapi/classes/server.ItemComponent.html)|类|未翻译|
|[`ItemCooldownComponent`](https://projectxero.top/sapi/classes/server.ItemCooldownComponent.html)|类|已完成|
|[`ItemDefinitionEventSignal`](https://projectxero.top/sapi/classes/server.ItemDefinitionEventSignal.html)|类|未翻译|
|[`ItemDefinitionEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ItemDefinitionEventSignal_deprecated.html)|类|未翻译|
|[`ItemDefinitionTriggeredEvent`](https://projectxero.top/sapi/classes/server.ItemDefinitionTriggeredEvent.html)|类|未翻译|
|[`ItemDurabilityComponent`](https://projectxero.top/sapi/classes/server.ItemDurabilityComponent.html)|类|已完成|
|[`ItemEnchantsComponent`](https://projectxero.top/sapi/classes/server.ItemEnchantsComponent.html)|类|已完成|
|[`ItemFoodComponent`](https://projectxero.top/sapi/classes/server.ItemFoodComponent.html)|类|已完成|
|[`ItemReleaseChargeEvent`](https://projectxero.top/sapi/classes/server.ItemReleaseChargeEvent.html)|类|未翻译|
|[`ItemReleaseChargeEventSignal`](https://projectxero.top/sapi/classes/server.ItemReleaseChargeEventSignal.html)|类|未翻译|
|[`ItemReleaseChargeEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ItemReleaseChargeEventSignal_deprecated.html)|类|未翻译|
|[`ItemStack`](https://projectxero.top/sapi/classes/server.ItemStack.html)|类|未翻译|
|[`ItemStartChargeEvent`](https://projectxero.top/sapi/classes/server.ItemStartChargeEvent.html)|类|未翻译|
|[`ItemStartChargeEventSignal`](https://projectxero.top/sapi/classes/server.ItemStartChargeEventSignal.html)|类|未翻译|
|[`ItemStartChargeEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ItemStartChargeEventSignal_deprecated.html)|类|未翻译|
|[`ItemStartUseOnEvent`](https://projectxero.top/sapi/classes/server.ItemStartUseOnEvent.html)|类|未翻译|
|[`ItemStartUseOnEventSignal`](https://projectxero.top/sapi/classes/server.ItemStartUseOnEventSignal.html)|类|未翻译|
|[`ItemStartUseOnEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ItemStartUseOnEventSignal_deprecated.html)|类|未翻译|
|[`ItemStopChargeEvent`](https://projectxero.top/sapi/classes/server.ItemStopChargeEvent.html)|类|未翻译|
|[`ItemStopChargeEventSignal`](https://projectxero.top/sapi/classes/server.ItemStopChargeEventSignal.html)|类|未翻译|
|[`ItemStopChargeEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ItemStopChargeEventSignal_deprecated.html)|类|未翻译|
|[`ItemStopUseOnEvent`](https://projectxero.top/sapi/classes/server.ItemStopUseOnEvent.html)|类|未翻译|
|[`ItemStopUseOnEventSignal`](https://projectxero.top/sapi/classes/server.ItemStopUseOnEventSignal.html)|类|未翻译|
|[`ItemStopUseOnEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ItemStopUseOnEventSignal_deprecated.html)|类|未翻译|
|[`ItemType`](https://projectxero.top/sapi/classes/server.ItemType.html)|类|未翻译|
|[`ItemTypeIterator`](https://projectxero.top/sapi/classes/server.ItemTypeIterator.html)|类|未翻译|
|[`ItemTypes`](https://projectxero.top/sapi/classes/server.ItemTypes.html)|类|未翻译|
|[`ItemUseEvent`](https://projectxero.top/sapi/classes/server.ItemUseEvent.html)|类|未翻译|
|[`ItemUseEventSignal`](https://projectxero.top/sapi/classes/server.ItemUseEventSignal.html)|类|未翻译|
|[`ItemUseEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ItemUseEventSignal_deprecated.html)|类|未翻译|
|[`ItemUseOnEvent`](https://projectxero.top/sapi/classes/server.ItemUseOnEvent.html)|类|未翻译|
|[`ItemUseOnEventSignal`](https://projectxero.top/sapi/classes/server.ItemUseOnEventSignal.html)|类|未翻译|
|[`ItemUseOnEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ItemUseOnEventSignal_deprecated.html)|类|未翻译|
|[`Items`](https://projectxero.top/sapi/classes/server.Items.html)|类|未翻译|
|[`LeverActionEvent`](https://projectxero.top/sapi/classes/server.LeverActionEvent.html)|类|未翻译|
|[`LeverActionEventSignal`](https://projectxero.top/sapi/classes/server.LeverActionEventSignal.html)|类|未翻译|
|[`LeverActionEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.LeverActionEventSignal_deprecated.html)|类|未翻译|
|[`MessageReceiveEvent`](https://projectxero.top/sapi/classes/server.MessageReceiveEvent.html)|类|未翻译|
|[`MinecraftBlockTypes`](https://projectxero.top/sapi/classes/server.MinecraftBlockTypes.html)|类|已完成|
|[`MinecraftDimensionTypes`](https://projectxero.top/sapi/classes/server.MinecraftDimensionTypes.html)|类|未翻译|
@ -281,39 +335,37 @@ random(min: number, max: number): number;
|[`MolangVariableMap`](https://projectxero.top/sapi/classes/server.MolangVariableMap.html)|类|未翻译|
|[`NavigationResult`](https://projectxero.top/sapi/classes/server.NavigationResult.html)|类|未翻译|
|[`PistonActivateEvent`](https://projectxero.top/sapi/classes/server.PistonActivateEvent.html)|类|未翻译|
|[`PistonActivateEventSignal`](https://projectxero.top/sapi/classes/server.PistonActivateEventSignal.html)|类|未翻译|
|[`PistonActivateEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.PistonActivateEventSignal_deprecated.html)|类|未翻译|
|[`Player`](https://projectxero.top/sapi/classes/server.Player.html)|类|未翻译|
|[`PlayerInventoryComponentContainer`](https://projectxero.top/sapi/classes/server.PlayerInventoryComponentContainer.html)|类|未翻译|
|[`PlayerIterator`](https://projectxero.top/sapi/classes/server.PlayerIterator.html)|类|未翻译|
|[`PlayerJoinEvent`](https://projectxero.top/sapi/classes/server.PlayerJoinEvent.html)|类|未翻译|
|[`PlayerJoinEventSignal`](https://projectxero.top/sapi/classes/server.PlayerJoinEventSignal.html)|类|未翻译|
|[`PlayerJoinEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.PlayerJoinEventSignal_deprecated.html)|类|未翻译|
|[`PlayerLeaveEvent`](https://projectxero.top/sapi/classes/server.PlayerLeaveEvent.html)|类|未翻译|
|[`PlayerLeaveEventSignal`](https://projectxero.top/sapi/classes/server.PlayerLeaveEventSignal.html)|类|未翻译|
|[`PlayerLeaveEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.PlayerLeaveEventSignal_deprecated.html)|类|未翻译|
|[`PlayerSpawnEvent`](https://projectxero.top/sapi/classes/server.PlayerSpawnEvent.html)|类|未翻译|
|[`PlayerSpawnEventSignal`](https://projectxero.top/sapi/classes/server.PlayerSpawnEventSignal.html)|类|未翻译|
|[`PlayerSpawnEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.PlayerSpawnEventSignal_deprecated.html)|类|未翻译|
|[`ProjectileHitEvent`](https://projectxero.top/sapi/classes/server.ProjectileHitEvent.html)|类|未翻译|
|[`ProjectileHitEventSignal`](https://projectxero.top/sapi/classes/server.ProjectileHitEventSignal.html)|类|未翻译|
|[`ProjectileHitEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.ProjectileHitEventSignal_deprecated.html)|类|未翻译|
|[`PropertyRegistry`](https://projectxero.top/sapi/classes/server.PropertyRegistry.html)|类|已完成|
|[`Scoreboard`](https://projectxero.top/sapi/classes/server.Scoreboard.html)|类|已完成|
|[`ScoreboardIdentity`](https://projectxero.top/sapi/classes/server.ScoreboardIdentity.html)|类|已完成|
|[`ScoreboardObjective`](https://projectxero.top/sapi/classes/server.ScoreboardObjective.html)|类|已完成|
|[`ScoreboardScoreInfo`](https://projectxero.top/sapi/classes/server.ScoreboardScoreInfo.html)|类|已完成|
|[`ScoreboardScoreInfo`](https://projectxero.top/sapi/classes/server.ScoreboardScoreInfo.html)|类|已完成|
|[`ScreenDisplay`](https://projectxero.top/sapi/classes/server.ScreenDisplay.html)|类|未翻译|
|[`ScriptEventCommandMessageEvent`](https://projectxero.top/sapi/classes/server.ScriptEventCommandMessageEvent.html)|类|未翻译|
|[`ScriptEventCommandMessageSignal`](https://projectxero.top/sapi/classes/server.ScriptEventCommandMessageSignal.html)|类|未翻译|
|[`ScriptEventCommandMessageSignal_deprecated`](https://projectxero.top/sapi/classes/server.ScriptEventCommandMessageSignal_deprecated.html)|类|未翻译|
|[`Seat`](https://projectxero.top/sapi/classes/server.Seat.html)|类|未翻译|
|[`ServerMessageSignal`](https://projectxero.top/sapi/classes/server.ServerMessageSignal.html)|类|未翻译|
|[`ServerMessageSignal_deprecated`](https://projectxero.top/sapi/classes/server.ServerMessageSignal_deprecated.html)|类|未翻译|
|[`System`](https://projectxero.top/sapi/classes/server.System.html)|类|未翻译|
|[`SystemEvents`](https://projectxero.top/sapi/classes/server.SystemEvents.html)|类|未翻译|
|[`TickEvent`](https://projectxero.top/sapi/classes/server.TickEvent.html)|类|未翻译|
|[`TickEventSignal`](https://projectxero.top/sapi/classes/server.TickEventSignal.html)|类|未翻译|
|[`Trigger`](https://projectxero.top/sapi/classes/server.Trigger.html)|类|未翻译|
|[`Vector`](https://projectxero.top/sapi/classes/server.Vector.html)|类|未翻译|
|[`WeatherChangeEvent`](https://projectxero.top/sapi/classes/server.WeatherChangeEvent.html)|类|未翻译|
|[`WeatherChangeEventSignal`](https://projectxero.top/sapi/classes/server.WeatherChangeEventSignal.html)|类|未翻译|
|[`WeatherChangeEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.WeatherChangeEventSignal_deprecated.html)|类|未翻译|
|[`World`](https://projectxero.top/sapi/classes/server.World.html)|类|已完成|
|[`WorldInitializeEvent`](https://projectxero.top/sapi/classes/server.WorldInitializeEvent.html)|类|未翻译|
|[`WorldInitializeEventSignal`](https://projectxero.top/sapi/classes/server.WorldInitializeEventSignal.html)|类|未翻译|
|[`WorldInitializeEventSignal_deprecated`](https://projectxero.top/sapi/classes/server.WorldInitializeEventSignal_deprecated.html)|类|未翻译|
|[`XYRotation`](https://projectxero.top/sapi/classes/server.XYRotation.html)|类|未翻译|
|[`BlockFillOptions`](https://projectxero.top/sapi/interfaces/server.BlockFillOptions.html)|接口|未翻译|
|[`BlockHitInformation`](https://projectxero.top/sapi/interfaces/server.BlockHitInformation.html)|接口|未翻译|
@ -332,15 +384,16 @@ random(min: number, max: number): number;
|[`PlayAnimationOptions`](https://projectxero.top/sapi/interfaces/server.PlayAnimationOptions.html)|接口|未翻译|
|[`RawMessage`](https://projectxero.top/sapi/interfaces/server.RawMessage.html)|接口|未翻译|
|[`RawMessageScore`](https://projectxero.top/sapi/interfaces/server.RawMessageScore.html)|接口|未翻译|
|[`RawText`](https://projectxero.top/sapi/interfaces/server.RawText.html)|接口|未翻译|
|[`ScoreboardObjectiveDisplayOptions`](https://projectxero.top/sapi/interfaces/server.ScoreboardObjectiveDisplayOptions.html)|接口|已完成|
|[`ScriptEventMessageFilterOptions`](https://projectxero.top/sapi/interfaces/server.ScriptEventMessageFilterOptions.html)|接口|未翻译|
|[`SoundOptions`](https://projectxero.top/sapi/interfaces/server.SoundOptions.html)|接口|未翻译|
|[`TitleDisplayOptions`](https://projectxero.top/sapi/interfaces/server.TitleDisplayOptions.html)|接口|未翻译|
|[`Vector3`](https://projectxero.top/sapi/interfaces/server.Vector3.html)|接口|未翻译|
|[`TicksPerDay`](https://projectxero.top/sapi/variables/server.TicksPerDay.html)||未翻译|
|[`TicksPerSecond`](https://projectxero.top/sapi/variables/server.TicksPerSecond.html)||未翻译|
|[`system`](https://projectxero.top/sapi/variables/server.system-1.html)||未翻译|
|[`world`](https://projectxero.top/sapi/variables/server.world-1.html)||未翻译|
|[`TicksPerDay`](https://projectxero.top/sapi/variables/server.TicksPerDay.html)|变量|未翻译|
|[`TicksPerSecond`](https://projectxero.top/sapi/variables/server.TicksPerSecond.html)|变量|未翻译|
|[`system`](https://projectxero.top/sapi/variables/server.system-1.html)|变量|未翻译|
|[`world`](https://projectxero.top/sapi/variables/server.world-1.html)|变量|未翻译|
### @minecraft/server-admin
@ -349,20 +402,23 @@ random(min: number, max: number): number;
|[`SecretString`](https://projectxero.top/sapi/classes/server_admin.SecretString.html)|类|未翻译|
|[`ServerSecrets`](https://projectxero.top/sapi/classes/server_admin.ServerSecrets.html)|类|未翻译|
|[`ServerVariables`](https://projectxero.top/sapi/classes/server_admin.ServerVariables.html)|类|未翻译|
|[`secrets`](https://projectxero.top/sapi/variables/server_admin.secrets.html)||未翻译|
|[`variables`](https://projectxero.top/sapi/variables/server_admin.variables.html)||未翻译|
|[`secrets`](https://projectxero.top/sapi/variables/server_admin.secrets.html)|变量|未翻译|
|[`variables`](https://projectxero.top/sapi/variables/server_admin.variables.html)|变量|未翻译|
### @minecraft/server-gametest
|名称|类型|状态|
| - | - | - |
|[`GameTestErrorType`](https://projectxero.top/sapi/enums/server_gametest.GameTestErrorType.html)|枚举|未翻译|
|[`FenceConnectivity`](https://projectxero.top/sapi/classes/server_gametest.FenceConnectivity.html)|类|未翻译|
|[`GameTestError`](https://projectxero.top/sapi/classes/server_gametest.GameTestError.html)|类|未翻译|
|[`GameTestSequence`](https://projectxero.top/sapi/classes/server_gametest.GameTestSequence.html)|类|未翻译|
|[`RegistrationBuilder`](https://projectxero.top/sapi/classes/server_gametest.RegistrationBuilder.html)|类|未翻译|
|[`SculkSpreader`](https://projectxero.top/sapi/classes/server_gametest.SculkSpreader.html)|类|未翻译|
|[`SimulatedPlayer`](https://projectxero.top/sapi/classes/server_gametest.SimulatedPlayer.html)|类|未翻译|
|[`Tags`](https://projectxero.top/sapi/classes/server_gametest.Tags.html)|类|未翻译|
|[`Test`](https://projectxero.top/sapi/classes/server_gametest.Test.html)|类|未翻译|
|[`GameTestErrorContext`](https://projectxero.top/sapi/interfaces/server_gametest.GameTestErrorContext.html)|接口|未翻译|
|[`register`](https://projectxero.top/sapi/functions/server_gametest.register.html)|函数|未翻译|
|[`registerAsync`](https://projectxero.top/sapi/functions/server_gametest.registerAsync.html)|函数|未翻译|
@ -375,17 +431,21 @@ random(min: number, max: number): number;
|[`HttpHeader`](https://projectxero.top/sapi/classes/server_net.HttpHeader.html)|类|未翻译|
|[`HttpRequest`](https://projectxero.top/sapi/classes/server_net.HttpRequest.html)|类|未翻译|
|[`HttpResponse`](https://projectxero.top/sapi/classes/server_net.HttpResponse.html)|类|未翻译|
|[`http`](https://projectxero.top/sapi/variables/server_net.http.html)||未翻译|
|[`http`](https://projectxero.top/sapi/variables/server_net.http.html)|变量|未翻译|
### @minecraft/server-ui
|名称|类型|状态|
| - | - | - |
|[`FormCancelationReason`](https://projectxero.top/sapi/enums/server_ui.FormCancelationReason.html)|枚举|未翻译|
|[`FormRejectReason`](https://projectxero.top/sapi/enums/server_ui.FormRejectReason.html)|枚举|未翻译|
|[`ActionFormData`](https://projectxero.top/sapi/classes/server_ui.ActionFormData.html)|类|未翻译|
|[`ActionFormResponse`](https://projectxero.top/sapi/classes/server_ui.ActionFormResponse.html)|类|未翻译|
|[`FormRejectError`](https://projectxero.top/sapi/classes/server_ui.FormRejectError.html)|类|未翻译|
|[`FormResponse`](https://projectxero.top/sapi/classes/server_ui.FormResponse.html)|类|未翻译|
|[`MessageFormData`](https://projectxero.top/sapi/classes/server_ui.MessageFormData.html)|类|未翻译|
|[`MessageFormResponse`](https://projectxero.top/sapi/classes/server_ui.MessageFormResponse.html)|类|未翻译|
|[`ModalFormData`](https://projectxero.top/sapi/classes/server_ui.ModalFormData.html)|类|未翻译|
|[`ModalFormResponse`](https://projectxero.top/sapi/classes/server_ui.ModalFormResponse.html)|类|未翻译|
<!-- status end -->

View File

@ -18,7 +18,7 @@
* ```json
* {
* "module_name": "@minecraft/server-admin",
* "version": "1.0.0-beta.1.19.80-preview.20"
* "version": "1.0.0-beta.1.19.80-preview.21"
* }
* ```
*

View File

@ -17,12 +17,24 @@
* ```json
* {
* "module_name": "@minecraft/server-gametest",
* "version": "1.0.0-internal.1.19.80-preview.20"
* "version": "1.0.0-internal.1.19.80-preview.21"
* }
* ```
*
*/
import * as minecraftserver from '@minecraft/server';
export enum GameTestErrorType {
Assert = 'Assert',
AssertAtPosition = 'AssertAtPosition',
ExecutionTimeout = 'ExecutionTimeout',
ExhaustedAttempts = 'ExhaustedAttempts',
FailConditionsMet = 'FailConditionsMet',
LevelStateModificationFailed = 'LevelStateModificationFailed',
MethodNotImplemented = 'MethodNotImplemented',
SimulatedPlayerOutOfBounds = 'SimulatedPlayerOutOfBounds',
Unknown = 'Unknown',
Waiting = 'Waiting',
}
/**
* Returns information about whether this fence is connected to
* other fences in several directions.
@ -1706,6 +1718,17 @@ export class Test {
*/
worldLocation(relativeLocation: minecraftserver.Vector3): minecraftserver.Vector3;
}
export interface GameTestErrorContext {
absolutePosition: minecraftserver.Vector3;
relativePosition: minecraftserver.Vector3;
tickCount: number;
}
export class GameTestError extends Error {
protected constructor();
context?: GameTestErrorContext;
messageParameters: string[];
type: GameTestErrorType;
}
/**
* @remarks
* Registers a new GameTest function. This GameTest will become

View File

@ -17,7 +17,7 @@
* ```json
* {
* "module_name": "@minecraft/server-net",
* "version": "1.0.0-beta.1.19.80-preview.20"
* "version": "1.0.0-beta.1.19.80-preview.21"
* }
* ```
*

View File

@ -44,7 +44,7 @@
* ```json
* {
* "module_name": "@minecraft/server-ui",
* "version": "1.0.0-internal.1.19.80-preview.20"
* "version": "1.0.0-internal.1.19.80-preview.21"
* }
* ```
*
@ -54,6 +54,11 @@ export enum FormCancelationReason {
userBusy = 'userBusy',
userClosed = 'userClosed',
}
export enum FormRejectReason {
MalformedResponse = 'MalformedResponse',
PlayerQuit = 'PlayerQuit',
ServerShutdown = 'ServerShutdown',
}
/**
* Builds a simple player form with buttons that let the player
* take action.
@ -248,3 +253,7 @@ export class ModalFormResponse extends FormResponse {
*/
readonly formValues?: any[];
}
export class FormRejectError extends Error {
protected constructor();
reason: FormRejectReason;
}

128
translated/server.d.ts vendored
View File

@ -16,7 +16,7 @@
* ```json
* {
* "module_name": "@minecraft/server",
* "version": "1.2.0-internal.1.19.80-preview.20"
* "version": "1.2.0-internal.1.19.80-preview.21"
* }
* ```
*
@ -165,6 +165,14 @@ export enum EntityDamageCause {
'void' = 'void',
wither = 'wither',
}
export enum EquipmentSlot {
chest = 'chest',
feet = 'feet',
head = 'head',
legs = 'legs',
mainhand = 'mainhand',
offhand = 'offhand',
}
/**
* @beta
* Represents the type of fluid for use within a fluid
@ -326,33 +334,17 @@ export enum WatchdogTerminateReason {
* @beta
* An event that fires as players enter chat messages.
*/
export class BeforeChatEvent {
export class BeforeChatEvent extends ChatEvent {
protected constructor();
/**
* If set to true in a beforeChat event handler, this message
* is not broadcast out.
*/
cancel: boolean;
/**
* Message that is being broadcast. In a beforeChat event
* handler, _message_ can be updated with edits before the
* message is displayed to players.
*/
message: string;
/**
* Player that sent the chat message.
*/
sender: Player;
/**
* If true, this message is directly targeted to one or more
* players (i.e., is not broadcast.)
*/
sendToTargets: boolean;
getTargets(): Player[];
setTargets(players: Player[]): void;
}
// tslint:disable-next-line:no-unnecessary-class
export class BeforeChatEventSignal_deprecated extends IBeforeChatEventSignal {
export class BeforeChatEventSignal_deprecated extends IBeforeChatEventSignal_deprecated {
protected constructor();
}
/**
@ -379,7 +371,7 @@ export class BeforeDataDrivenEntityTriggerEvent {
setModifiers(modifiers: DefinitionModifier[]): void;
}
// tslint:disable-next-line:no-unnecessary-class
export class BeforeDataDrivenEntityTriggerEventSignal_deprecated extends IBeforeDataDrivenEntityTriggerEventSignal {
export class BeforeDataDrivenEntityTriggerEventSignal_deprecated extends IBeforeDataDrivenEntityTriggerEventSignal_deprecated {
protected constructor();
}
/**
@ -387,29 +379,20 @@ export class BeforeDataDrivenEntityTriggerEventSignal_deprecated extends IBefore
* Contains information regarding an explosion that has
* happened.
*/
export class BeforeExplosionEvent {
export class BeforeExplosionEvent extends ExplosionEvent {
protected constructor();
/**
* If set to true, cancels the explosion event.
*/
cancel: boolean;
/**
* Dimension where the explosion has occurred.
*/
readonly dimension: Dimension;
/**
* Optional source of the explosion.
*/
readonly source: Entity;
getImpactedBlocks(): Vector3[];
setImpactedBlocks(blocks: Vector3[]): void;
}
// tslint:disable-next-line:no-unnecessary-class
export class BeforeExplosionEventSignal_deprecated extends IBeforeExplosionEventSignal {
export class BeforeExplosionEventSignal_deprecated extends IBeforeExplosionEventSignal_deprecated {
protected constructor();
}
// tslint:disable-next-line:no-unnecessary-class
export class BeforeItemDefinitionEventSignal_deprecated extends IBeforeItemDefinitionEventSignal {
export class BeforeItemDefinitionEventSignal_deprecated extends IBeforeItemDefinitionEventSignal_deprecated {
protected constructor();
}
/**
@ -417,48 +400,27 @@ export class BeforeItemDefinitionEventSignal_deprecated extends IBeforeItemDefin
* Contains information related to a triggering of a custom
* item definition change.
*/
export class BeforeItemDefinitionTriggeredEvent {
export class BeforeItemDefinitionTriggeredEvent extends ItemDefinitionTriggeredEvent {
protected constructor();
/**
* If set to true, will cancel the application of this item
* definition change.
*/
cancel: boolean;
/**
* Name of the data-driven item event that is triggering this
* change.
*/
readonly eventName: string;
/**
* The impacted item stack that is being used.
*/
item: ItemStack;
/**
* Returns the source entity that triggered this item event.
*/
readonly source: Entity;
}
/**
* @beta
* Contains information related to an item being used.
*/
export class BeforeItemUseEvent {
export class BeforeItemUseEvent extends ItemUseEvent {
protected constructor();
/**
* If set to true, this will cancel the item use behavior.
*/
cancel: boolean;
/**
* The impacted item stack that is being used.
*/
item: ItemStack;
/**
* Returns the source entity that triggered this item event.
*/
readonly source: Entity;
}
// tslint:disable-next-line:no-unnecessary-class
export class BeforeItemUseEventSignal_deprecated extends IBeforeItemUseEventSignal {
export class BeforeItemUseEventSignal_deprecated extends IBeforeItemUseEventSignal_deprecated {
protected constructor();
}
/**
@ -474,7 +436,7 @@ export class BeforeItemUseOnEvent extends ItemUseOnEvent {
cancel: boolean;
}
// tslint:disable-next-line:no-unnecessary-class
export class BeforeItemUseOnEventSignal_deprecated extends IBeforeItemUseOnEventSignal {
export class BeforeItemUseOnEventSignal_deprecated extends IBeforeItemUseOnEventSignal_deprecated {
protected constructor();
}
/**
@ -499,7 +461,7 @@ export class BeforePistonActivateEvent extends BlockEvent {
readonly piston: BlockPistonComponent;
}
// tslint:disable-next-line:no-unnecessary-class
export class BeforePistonActivateEventSignal_deprecated extends IBeforePistonActivateEventSignal {
export class BeforePistonActivateEventSignal_deprecated extends IBeforePistonActivateEventSignal_deprecated {
protected constructor();
}
/**
@ -1465,6 +1427,8 @@ export class ContainerSlot {
* Throws if the slot's container is invalid.
*/
getLore(): string[];
getTags(): string[];
hasTag(tag: string): boolean;
/**
* @remarks
* Returns whether this item stack can be stacked with the
@ -2675,6 +2639,13 @@ export class EntityDieEvent {
export class EntityDieEventSignal_deprecated extends IEntityDieEventSignal {
protected constructor();
}
export class EntityEquipmentInventoryComponent extends EntityComponent {
protected constructor();
static readonly componentId = 'minecraft:equipment_inventory';
getEquipment(equipmentSlot: EquipmentSlot): ItemStack | undefined;
getEquipmentSlot(equipmentSlot: EquipmentSlot): ContainerSlot;
setEquipment(equipmentSlot: EquipmentSlot, itemStack?: ItemStack): void;
}
/**
* @beta
* When added, this component signifies that this entity
@ -4099,12 +4070,12 @@ export class FluidContainer {
*/
static readonly minFillLevel = 0;
}
export class IBeforeChatEventSignal {
export class IBeforeChatEventSignal_deprecated {
protected constructor();
subscribe(callback: (arg: BeforeChatEvent) => void): (arg: BeforeChatEvent) => void;
unsubscribe(callback: (arg: BeforeChatEvent) => void): void;
}
export class IBeforeDataDrivenEntityTriggerEventSignal {
export class IBeforeDataDrivenEntityTriggerEventSignal_deprecated {
protected constructor();
subscribe(
callback: (arg: BeforeDataDrivenEntityTriggerEvent) => void,
@ -4112,29 +4083,29 @@ export class IBeforeDataDrivenEntityTriggerEventSignal {
): (arg: BeforeDataDrivenEntityTriggerEvent) => void;
unsubscribe(callback: (arg: BeforeDataDrivenEntityTriggerEvent) => void): void;
}
export class IBeforeExplosionEventSignal {
export class IBeforeExplosionEventSignal_deprecated {
protected constructor();
subscribe(callback: (arg: BeforeExplosionEvent) => void): (arg: BeforeExplosionEvent) => void;
unsubscribe(callback: (arg: BeforeExplosionEvent) => void): void;
}
export class IBeforeItemDefinitionEventSignal {
export class IBeforeItemDefinitionEventSignal_deprecated {
protected constructor();
subscribe(
callback: (arg: BeforeItemDefinitionTriggeredEvent) => void,
): (arg: BeforeItemDefinitionTriggeredEvent) => void;
unsubscribe(callback: (arg: BeforeItemDefinitionTriggeredEvent) => void): void;
}
export class IBeforeItemUseEventSignal {
export class IBeforeItemUseEventSignal_deprecated {
protected constructor();
subscribe(callback: (arg: BeforeItemUseEvent) => void): (arg: BeforeItemUseEvent) => void;
unsubscribe(callback: (arg: BeforeItemUseEvent) => void): void;
}
export class IBeforeItemUseOnEventSignal {
export class IBeforeItemUseOnEventSignal_deprecated {
protected constructor();
subscribe(callback: (arg: BeforeItemUseOnEvent) => void): (arg: BeforeItemUseOnEvent) => void;
unsubscribe(callback: (arg: BeforeItemUseOnEvent) => void): void;
}
export class IBeforePistonActivateEventSignal {
export class IBeforePistonActivateEventSignal_deprecated {
protected constructor();
subscribe(callback: (arg: BeforePistonActivateEvent) => void): (arg: BeforePistonActivateEvent) => void;
unsubscribe(callback: (arg: BeforePistonActivateEvent) => void): void;
@ -4681,6 +4652,7 @@ export class ItemStack {
* returns an empty array.
*/
getLore(): string[];
getTags(): string[];
/**
* @remarks
* Returns true if the specified component is present on this
@ -4691,6 +4663,7 @@ export class ItemStack {
* is assumed.
*/
hasComponent(componentId: string): boolean;
hasTag(tag: string): boolean;
/**
* @remarks
* Returns whether this item stack can be stacked with the
@ -5019,6 +4992,7 @@ export class MinecraftBlockTypes {
* Represents an acacia door within Minecraft.
*/
static readonly acaciaDoor: BlockType;
static readonly acaciaFence: BlockType;
/**
*
*
@ -5289,6 +5263,7 @@ export class MinecraftBlockTypes {
* Represents a birch door within Minecraft.
*/
static readonly birchDoor: BlockType;
static readonly birchFence: BlockType;
/**
*
*
@ -6048,6 +6023,7 @@ export class MinecraftBlockTypes {
* Represents a dark oak door within Minecraft.
*/
static readonly darkOakDoor: BlockType;
static readonly darkOakFence: BlockType;
/**
*
*
@ -7313,12 +7289,6 @@ export class MinecraftBlockTypes {
* Represents a farmland block within Minecraft.
*/
static readonly farmland: BlockType;
/**
* /////
*
* Represents a fence within Minecraft.
*/
static readonly fence: BlockType;
/**
*
*
@ -7671,6 +7641,7 @@ export class MinecraftBlockTypes {
* Represents a jungle wood door within Minecraft.
*/
static readonly jungleDoor: BlockType;
static readonly jungleFence: BlockType;
/**
*
*
@ -8192,9 +8163,7 @@ export class MinecraftBlockTypes {
* Represents a note block within Minecraft.
*/
static readonly noteblock: BlockType;
/**
*
*/
static readonly oakFence: BlockType;
static readonly oakHangingSign: BlockType;
static readonly oakLog: BlockType;
/**
@ -8975,6 +8944,7 @@ export class MinecraftBlockTypes {
* Represents a spruce wood door within Minecraft.
*/
static readonly spruceDoor: BlockType;
static readonly spruceFence: BlockType;
/**
*
*
@ -9234,9 +9204,7 @@ export class MinecraftBlockTypes {
* Represents a structure void within Minecraft.
*/
static readonly structureVoid: BlockType;
/**
*
*/
static readonly suspiciousGravel: BlockType;
static readonly suspiciousSand: BlockType;
/**
*
@ -10610,6 +10578,7 @@ export class MinecraftItemTypes {
* Minecraft.
*/
static readonly acaciaDoor: ItemType;
static readonly acaciaFence: ItemType;
/**
*
*
@ -10876,6 +10845,7 @@ export class MinecraftItemTypes {
* Minecraft.
*/
static readonly birchDoor: ItemType;
static readonly birchFence: ItemType;
/**
*
*
@ -11736,6 +11706,7 @@ export class MinecraftItemTypes {
* Minecraft.
*/
static readonly darkOakDoor: ItemType;
static readonly darkOakFence: ItemType;
/**
*
*
@ -12810,6 +12781,7 @@ export class MinecraftItemTypes {
* Minecraft.
*/
static readonly jungleDoor: ItemType;
static readonly jungleFence: ItemType;
/**
*
*
@ -13515,6 +13487,7 @@ export class MinecraftItemTypes {
*
*/
static readonly oakChestBoat: ItemType;
static readonly oakFence: ItemType;
static readonly oakLog: ItemType;
/**
*
@ -14520,6 +14493,7 @@ export class MinecraftItemTypes {
* Minecraft.
*/
static readonly spruceDoor: ItemType;
static readonly spruceFence: ItemType;
/**
*
*

View File

@ -1,6 +0,0 @@
@echo off
copy %~dp0\..\original\node_modules\@minecraft\server\index.d.ts %~dp0\server.d.ts
copy %~dp0\..\original\node_modules\@minecraft\server-admin\index.d.ts %~dp0\server-admin.d.ts
copy %~dp0\..\original\node_modules\@minecraft\server-gametest\index.d.ts %~dp0\server-gametest.d.ts
copy %~dp0\..\original\node_modules\@minecraft\server-net\index.d.ts %~dp0\server-net.d.ts
copy %~dp0\..\original\node_modules\@minecraft\server-ui\index.d.ts %~dp0\server-ui.d.ts

View File

@ -1 +0,0 @@
export * from "../server-admin";

View File

@ -1 +0,0 @@
export * from "../server-gametest";

View File

@ -1 +0,0 @@
export * from "../server-net";

View File

@ -1 +0,0 @@
export * from "../server-ui";

View File

@ -1 +0,0 @@
export * from "../server";

View File

@ -1,7 +1,5 @@
{
"include": [
"ts/*"
],
"include": ["*"],
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
@ -18,19 +16,17 @@
},
"typedocOptions": {
"name": "@minecraft",
"entryPoints": [
"ts/*"
],
"entryPoints": ["*.d.ts"],
"externalPattern": "",
"disableSources": true,
"customCss": "./assets/extra.css",
"externalSymbolLinkMappings": {
"typescript": {
"Promise": "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise",
"Iterable": "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols",
"Iterator": "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols",
"IteratorResult": "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols"
"IteratorResult": "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols",
"Record": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"
}
}
}
}
}

View File

@ -1,76 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
balanced-match@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
brace-expansion@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae"
integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==
dependencies:
balanced-match "^1.0.0"
jsonc-parser@^3.0.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76"
integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==
lunr@^2.3.9:
version "2.3.9"
resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.9.tgz#18b123142832337dd6e964df1a5a7707b25d35e1"
integrity sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==
marked@^4.2.4:
version "4.2.5"
resolved "https://registry.yarnpkg.com/marked/-/marked-4.2.5.tgz#979813dfc1252cc123a79b71b095759a32f42a5d"
integrity sha512-jPueVhumq7idETHkb203WDD4fMA3yV9emQ5vLwop58lu8bTclMghBWcYAavlDqIEMaisADinV1TooIFCfqOsYQ==
minimatch@^5.1.1:
version "5.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.2.tgz#0939d7d6f0898acbd1508abe534d1929368a8fff"
integrity sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg==
dependencies:
brace-expansion "^2.0.1"
shiki@^0.11.1:
version "0.11.1"
resolved "https://registry.yarnpkg.com/shiki/-/shiki-0.11.1.tgz#df0f719e7ab592c484d8b73ec10e215a503ab8cc"
integrity sha512-EugY9VASFuDqOexOgXR18ZV+TbFrQHeCpEYaXamO+SZlsnT/2LxuLBX25GGtIrwaEVFXUAbUQ601SWE2rMwWHA==
dependencies:
jsonc-parser "^3.0.0"
vscode-oniguruma "^1.6.1"
vscode-textmate "^6.0.0"
typedoc-plugin-mdn-links@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/typedoc-plugin-mdn-links/-/typedoc-plugin-mdn-links-2.0.2.tgz#5a6aa268950c41a1437b57e2c72ed77f8ba323d2"
integrity sha512-Fzjvfsj3rxvmZNqWRvq9JTGBkOkrPp0kBtvJCJ4U5Jm14OF1KoRErtmwgVQcPLA5Xs8h5I/W4uZBaL8SDHsgxQ==
typedoc@^0.23.23:
version "0.23.23"
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.23.23.tgz#9cf95b03d2d40031d8978b55e88b0b968d69f512"
integrity sha512-cg1YQWj+/BU6wq74iott513U16fbrPCbyYs04PHZgvoKJIc6EY4xNobyDZh4KMfRGW8Yjv6wwIzQyoqopKOUGw==
dependencies:
lunr "^2.3.9"
marked "^4.2.4"
minimatch "^5.1.1"
shiki "^0.11.1"
typescript@^4.9.4:
version "4.9.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78"
integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==
vscode-oniguruma@^1.6.1:
version "1.7.0"
resolved "https://registry.yarnpkg.com/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz#439bfad8fe71abd7798338d1cd3dc53a8beea94b"
integrity sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==
vscode-textmate@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-6.0.0.tgz#a3777197235036814ac9a92451492f2748589210"
integrity sha512-gu73tuZfJgu+mvCSy4UZwd2JXykjK9zAZsfmDeut5dx/1a7FeTk0XwJsSuqQn+cuMCGVbIBfl+s53X4T19DnzQ==