Initial commit

This commit is contained in:
ProjectXero 2023-01-07 22:16:19 +08:00
commit 568ac3300e
No known key found for this signature in database
GPG Key ID: C6021259092968FC
32 changed files with 36681 additions and 0 deletions

84
.gitignore vendored Normal file
View File

@ -0,0 +1,84 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# build output
dist/
dist_original/

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 ProjectXero
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

30
README.md Normal file
View File

@ -0,0 +1,30 @@
# Minecraft 脚本 API 文档网页生成器
将 Minecraft 脚本 API 的 d.ts 生成网页以供查阅。
在线网页:[https://projectxero.top/sapi/](https://projectxero.top/sapi/)
d.ts 文件来源:[NPM组织 @minecraft](https://www.npmjs.com/search?q=%40minecraft)
网页生成器:[typedoc](https://typedoc.org/)
## 准备
```
yarn
```
## 构建
```
yarn build
```
## 更新原始文件Windows
```
cd original
yarn upgrade
cd ..
.\translated\sync.cmd
```

13
original/package.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "original",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"@minecraft/server": "^1.1.0-beta.1.19.60-preview.25",
"@minecraft/server-admin": "^1.0.0-beta.1.19.60-preview.25",
"@minecraft/server-gametest": "^1.0.0-beta.1.19.60-preview.25",
"@minecraft/server-net": "^1.0.0-beta.1.19.60-preview.25",
"@minecraft/server-ui": "^1.0.0-beta.1.19.60-preview.25"
}
}

1
original/server-admin.ts Normal file
View File

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

View File

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

1
original/server-net.ts Normal file
View File

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

1
original/server-ui.ts Normal file
View File

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

1
original/server.ts Normal file
View File

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

28
original/tsconfig.json Normal file
View File

@ -0,0 +1,28 @@
{
"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
}
}

34
original/yarn.lock Normal file
View File

@ -0,0 +1,34 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@minecraft/server-admin@1.0.0-beta.1.19.60-preview.25", "@minecraft/server-admin@^1.0.0-beta.1.19.60-preview.25":
version "1.0.0-beta.1.19.60-preview.25"
resolved "https://registry.yarnpkg.com/@minecraft/server-admin/-/server-admin-1.0.0-beta.1.19.60-preview.25.tgz#98ec63dbfff9139e96533b030c00c0e742e218c6"
integrity sha512-xqT5oI6XJaIicllARONbzLxTAevnUHNOqJpErBck9Ivye1/XVcqid437W1uunoaKh2xnkx6mHS+969h7oHB7CQ==
"@minecraft/server-gametest@^1.0.0-beta.1.19.60-preview.25":
version "1.0.0-beta.1.19.60-preview.25"
resolved "https://registry.yarnpkg.com/@minecraft/server-gametest/-/server-gametest-1.0.0-beta.1.19.60-preview.25.tgz#28a60e51f94dd4939c094ab4a5e5e474f93d0293"
integrity sha512-wCMnVEVK5xTnPlZ3e5mdV/MfEkbviHt9DDph1rCtKi4xy5mfCTtdCMmBo17jpC4g7vpAMrLthfXtzJIrhUn0HA==
dependencies:
"@minecraft/server" "1.1.0-beta.1.19.60-preview.25"
"@minecraft/server-net@^1.0.0-beta.1.19.60-preview.25":
version "1.0.0-beta.1.19.60-preview.25"
resolved "https://registry.yarnpkg.com/@minecraft/server-net/-/server-net-1.0.0-beta.1.19.60-preview.25.tgz#573dcb77b3924a904d92519599b011be160b6e31"
integrity sha512-0TUSEImBkJh6hNPZ0wvgEcyMzQNRY8Xz2tKwrpu7Ec8rtyFjlZ4F+TRlRjSHmJ6key4Ivy6+uvRkqTSyGfKMoA==
dependencies:
"@minecraft/server-admin" "1.0.0-beta.1.19.60-preview.25"
"@minecraft/server-ui@^1.0.0-beta.1.19.60-preview.25":
version "1.0.0-beta.1.19.60-preview.25"
resolved "https://registry.yarnpkg.com/@minecraft/server-ui/-/server-ui-1.0.0-beta.1.19.60-preview.25.tgz#b896ce72ad9fffda543d42e4dd1f9d9eb2105037"
integrity sha512-FKTBMcomPG2t4x8GZCaU497bsFxXM6p+21cS0rpyXodj4c1qonkipxoKZNqrBmiOfFQ9ValnNQk4IWYQmDb36Q==
dependencies:
"@minecraft/server" "1.1.0-beta.1.19.60-preview.25"
"@minecraft/server@1.1.0-beta.1.19.60-preview.25", "@minecraft/server@^1.1.0-beta.1.19.60-preview.25":
version "1.1.0-beta.1.19.60-preview.25"
resolved "https://registry.yarnpkg.com/@minecraft/server/-/server-1.1.0-beta.1.19.60-preview.25.tgz#8daef62679c13764d4c78f45fa32b6689f6798ca"
integrity sha512-51/9NAcV13rOpmrAaofVW7o6jH9aqeCPjgXzPTv1IG5vxfWBK2KjMYYRDJpsbYHx03I6hv2IeKFmz82Ty4hH1A==

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "sapi-typedoc",
"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"
},
"dependencies": {
"typedoc": "^0.23.23",
"typedoc-plugin-mdn-links": "^2.0.2",
"typescript": "^4.9.4"
},
"devDependencies": {}
}

347
translated/README.md Normal file
View File

@ -0,0 +1,347 @@
# Minecraft Script API
Minecraft 脚本 API 文档。
|模块|版本|
| - | - |
|[@minecraft/server](https://www.npmjs.com/package/@minecraft/server)|`1.1.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.60.25`
通过 [typedoc](https://typedoc.org/) 基于 d.ts 生成。
目前正在翻译中。欢迎[参与翻译](#参与翻译)
## 参与翻译
项目地址:[XeroAlpha/sapi-typedoc](https://github.com/XeroAlpha/sapi-typedoc)
欢迎通过 [Fork & Pull Request](https://docs.github.com/zh/pull-requests/collaborating-with-pull-requests/getting-started/about-collaborative-development-models) 参与此项目!
## 翻译状态
|状态|描述|
| - | - |
|`未翻译`|尚未翻译,欢迎为这部分条目贡献翻译|
|`不翻译`|尚未翻译且不开放贡献|
|`翻译中`|正在翻译中|
|`未更新`|原文本已经更新,但尚未翻译|
|`暂停中`|未完成翻译,因为译名讨论等原因暂停|
|`已完成`|已完成此部分的翻译|
|模块|进度|
| - | - |
|[@minecraft/server](#minecraftserver)|1/252|
|[@minecraft/server-admin](#minecraftserver-admin)|0/5|
|[@minecraft/server-gametest](#minecraftserver-gametest)|0/9|
|[@minecraft/server-net](#minecraftserver-net)|0/6|
|[@minecraft/server-ui](#minecraftserver-ui)|0/8|
### @minecraft/server
|名称|类型|状态|
| - | - | - |
|[`Direction`](https://projectxero.top/sapi/enums/server.Direction.html)|枚举|已完成|
|[`DisplaySlotId`](https://projectxero.top/sapi/enums/server.DisplaySlotId.html)|枚举|未翻译|
|[`EntityDamageCause`](https://projectxero.top/sapi/enums/server.EntityDamageCause.html)|枚举|未翻译|
|[`FluidType`](https://projectxero.top/sapi/enums/server.FluidType.html)|枚举|未翻译|
|[`GameMode`](https://projectxero.top/sapi/enums/server.GameMode.html)|枚举|未翻译|
|[`MessageSourceType`](https://projectxero.top/sapi/enums/server.MessageSourceType.html)|枚举|未翻译|
|[`ObjectiveSortOrder`](https://projectxero.top/sapi/enums/server.ObjectiveSortOrder.html)|枚举|未翻译|
|[`ScoreboardIdentityType`](https://projectxero.top/sapi/enums/server.ScoreboardIdentityType.html)|枚举|未翻译|
|[`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)|类|未翻译|
|[`BeforeDataDrivenEntityTriggerEvent`](https://projectxero.top/sapi/classes/server.BeforeDataDrivenEntityTriggerEvent.html)|类|未翻译|
|[`BeforeDataDrivenEntityTriggerEventSignal`](https://projectxero.top/sapi/classes/server.BeforeDataDrivenEntityTriggerEventSignal.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)|类|未翻译|
|[`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)|类|未翻译|
|[`BeforeItemUseOnEvent`](https://projectxero.top/sapi/classes/server.BeforeItemUseOnEvent.html)|类|未翻译|
|[`BeforeItemUseOnEventSignal`](https://projectxero.top/sapi/classes/server.BeforeItemUseOnEventSignal.html)|类|未翻译|
|[`BeforePistonActivateEvent`](https://projectxero.top/sapi/classes/server.BeforePistonActivateEvent.html)|类|未翻译|
|[`BeforePistonActivateEventSignal`](https://projectxero.top/sapi/classes/server.BeforePistonActivateEventSignal.html)|类|未翻译|
|[`BeforeWatchdogTerminateEvent`](https://projectxero.top/sapi/classes/server.BeforeWatchdogTerminateEvent.html)|类|未翻译|
|[`BeforeWatchdogTerminateEventSignal`](https://projectxero.top/sapi/classes/server.BeforeWatchdogTerminateEventSignal.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)|类|未翻译|
|[`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)|类|未翻译|
|[`BlockHitInformation`](https://projectxero.top/sapi/classes/server.BlockHitInformation.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)|类|未翻译|
|[`BlockLocation`](https://projectxero.top/sapi/classes/server.BlockLocation.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)|类|未翻译|
|[`BlockPotionContainerComponent`](https://projectxero.top/sapi/classes/server.BlockPotionContainerComponent.html)|类|未翻译|
|[`BlockProperties`](https://projectxero.top/sapi/classes/server.BlockProperties.html)|类|未翻译|
|[`BlockRecordPlayerComponent`](https://projectxero.top/sapi/classes/server.BlockRecordPlayerComponent.html)|类|未翻译|
|[`BlockSignComponent`](https://projectxero.top/sapi/classes/server.BlockSignComponent.html)|类|未翻译|
|[`BlockSnowContainerComponent`](https://projectxero.top/sapi/classes/server.BlockSnowContainerComponent.html)|类|未翻译|
|[`BlockType`](https://projectxero.top/sapi/classes/server.BlockType.html)|类|未翻译|
|[`BlockWaterContainerComponent`](https://projectxero.top/sapi/classes/server.BlockWaterContainerComponent.html)|类|未翻译|
|[`BoolBlockProperty`](https://projectxero.top/sapi/classes/server.BoolBlockProperty.html)|类|未翻译|
|[`ButtonPushEvent`](https://projectxero.top/sapi/classes/server.ButtonPushEvent.html)|类|未翻译|
|[`ButtonPushEventSignal`](https://projectxero.top/sapi/classes/server.ButtonPushEventSignal.html)|类|未翻译|
|[`ChatEvent`](https://projectxero.top/sapi/classes/server.ChatEvent.html)|类|未翻译|
|[`ChatEventSignal`](https://projectxero.top/sapi/classes/server.ChatEventSignal.html)|类|未翻译|
|[`Color`](https://projectxero.top/sapi/classes/server.Color.html)|类|未翻译|
|[`CommandResult`](https://projectxero.top/sapi/classes/server.CommandResult.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)|类|未翻译|
|[`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)|类|未翻译|
|[`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)|类|未翻译|
|[`EnchantmentSlot`](https://projectxero.top/sapi/classes/server.EnchantmentSlot.html)|类|未翻译|
|[`EnchantmentType`](https://projectxero.top/sapi/classes/server.EnchantmentType.html)|类|未翻译|
|[`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)|类|未翻译|
|[`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)|类|未翻译|
|[`EntityDefinitionFeedItem`](https://projectxero.top/sapi/classes/server.EntityDefinitionFeedItem.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)|类|未翻译|
|[`EntityFrictionModifierComponent`](https://projectxero.top/sapi/classes/server.EntityFrictionModifierComponent.html)|类|未翻译|
|[`EntityGroundOffsetComponent`](https://projectxero.top/sapi/classes/server.EntityGroundOffsetComponent.html)|类|未翻译|
|[`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)|类|未翻译|
|[`EntityHitInformation`](https://projectxero.top/sapi/classes/server.EntityHitInformation.html)|类|未翻译|
|[`EntityHurtEvent`](https://projectxero.top/sapi/classes/server.EntityHurtEvent.html)|类|未翻译|
|[`EntityHurtEventSignal`](https://projectxero.top/sapi/classes/server.EntityHurtEventSignal.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)|类|未翻译|
|[`EntityIsChestedComponent`](https://projectxero.top/sapi/classes/server.EntityIsChestedComponent.html)|类|未翻译|
|[`EntityIsDyableComponent`](https://projectxero.top/sapi/classes/server.EntityIsDyableComponent.html)|类|未翻译|
|[`EntityIsHiddenWhenInvisibleComponent`](https://projectxero.top/sapi/classes/server.EntityIsHiddenWhenInvisibleComponent.html)|类|未翻译|
|[`EntityIsIgnitedComponent`](https://projectxero.top/sapi/classes/server.EntityIsIgnitedComponent.html)|类|未翻译|
|[`EntityIsIllagerCaptainComponent`](https://projectxero.top/sapi/classes/server.EntityIsIllagerCaptainComponent.html)|类|未翻译|
|[`EntityIsSaddledComponent`](https://projectxero.top/sapi/classes/server.EntityIsSaddledComponent.html)|类|未翻译|
|[`EntityIsShakingComponent`](https://projectxero.top/sapi/classes/server.EntityIsShakingComponent.html)|类|未翻译|
|[`EntityIsShearedComponent`](https://projectxero.top/sapi/classes/server.EntityIsShearedComponent.html)|类|未翻译|
|[`EntityIsStackableComponent`](https://projectxero.top/sapi/classes/server.EntityIsStackableComponent.html)|类|未翻译|
|[`EntityIsStunnedComponent`](https://projectxero.top/sapi/classes/server.EntityIsStunnedComponent.html)|类|未翻译|
|[`EntityIsTamedComponent`](https://projectxero.top/sapi/classes/server.EntityIsTamedComponent.html)|类|未翻译|
|[`EntityItemComponent`](https://projectxero.top/sapi/classes/server.EntityItemComponent.html)|类|未翻译|
|[`EntityIterator`](https://projectxero.top/sapi/classes/server.EntityIterator.html)|类|未翻译|
|[`EntityLavaMovementComponent`](https://projectxero.top/sapi/classes/server.EntityLavaMovementComponent.html)|类|未翻译|
|[`EntityLeashableComponent`](https://projectxero.top/sapi/classes/server.EntityLeashableComponent.html)|类|未翻译|
|[`EntityMarkVariantComponent`](https://projectxero.top/sapi/classes/server.EntityMarkVariantComponent.html)|类|未翻译|
|[`EntityMountTamingComponent`](https://projectxero.top/sapi/classes/server.EntityMountTamingComponent.html)|类|未翻译|
|[`EntityMovementAmphibiousComponent`](https://projectxero.top/sapi/classes/server.EntityMovementAmphibiousComponent.html)|类|未翻译|
|[`EntityMovementBasicComponent`](https://projectxero.top/sapi/classes/server.EntityMovementBasicComponent.html)|类|未翻译|
|[`EntityMovementComponent`](https://projectxero.top/sapi/classes/server.EntityMovementComponent.html)|类|未翻译|
|[`EntityMovementFlyComponent`](https://projectxero.top/sapi/classes/server.EntityMovementFlyComponent.html)|类|未翻译|
|[`EntityMovementGenericComponent`](https://projectxero.top/sapi/classes/server.EntityMovementGenericComponent.html)|类|未翻译|
|[`EntityMovementGlideComponent`](https://projectxero.top/sapi/classes/server.EntityMovementGlideComponent.html)|类|未翻译|
|[`EntityMovementHoverComponent`](https://projectxero.top/sapi/classes/server.EntityMovementHoverComponent.html)|类|未翻译|
|[`EntityMovementJumpComponent`](https://projectxero.top/sapi/classes/server.EntityMovementJumpComponent.html)|类|未翻译|
|[`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)|类|未翻译|
|[`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)|类|未翻译|
|[`EntityNavigationHoverComponent`](https://projectxero.top/sapi/classes/server.EntityNavigationHoverComponent.html)|类|未翻译|
|[`EntityNavigationWalkComponent`](https://projectxero.top/sapi/classes/server.EntityNavigationWalkComponent.html)|类|未翻译|
|[`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)|类|未翻译|
|[`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)|类|未翻译|
|[`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)|类|未翻译|
|[`EntityTypeIterator`](https://projectxero.top/sapi/classes/server.EntityTypeIterator.html)|类|未翻译|
|[`EntityTypes`](https://projectxero.top/sapi/classes/server.EntityTypes.html)|类|未翻译|
|[`EntityUnderwaterMovementComponent`](https://projectxero.top/sapi/classes/server.EntityUnderwaterMovementComponent.html)|类|未翻译|
|[`EntityVariantComponent`](https://projectxero.top/sapi/classes/server.EntityVariantComponent.html)|类|未翻译|
|[`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)|类|未翻译|
|[`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)|类|未翻译|
|[`IBlockProperty`](https://projectxero.top/sapi/classes/server.IBlockProperty.html)|类|未翻译|
|[`IEntityComponent`](https://projectxero.top/sapi/classes/server.IEntityComponent.html)|类|未翻译|
|[`IntBlockProperty`](https://projectxero.top/sapi/classes/server.IntBlockProperty.html)|类|未翻译|
|[`InventoryComponentContainer`](https://projectxero.top/sapi/classes/server.InventoryComponentContainer.html)|类|未翻译|
|[`ItemCompleteChargeEvent`](https://projectxero.top/sapi/classes/server.ItemCompleteChargeEvent.html)|类|未翻译|
|[`ItemCompleteChargeEventSignal`](https://projectxero.top/sapi/classes/server.ItemCompleteChargeEventSignal.html)|类|未翻译|
|[`ItemCooldownComponent`](https://projectxero.top/sapi/classes/server.ItemCooldownComponent.html)|类|未翻译|
|[`ItemDefinitionEventSignal`](https://projectxero.top/sapi/classes/server.ItemDefinitionEventSignal.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)|类|未翻译|
|[`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)|类|未翻译|
|[`ItemStartUseOnEvent`](https://projectxero.top/sapi/classes/server.ItemStartUseOnEvent.html)|类|未翻译|
|[`ItemStartUseOnEventSignal`](https://projectxero.top/sapi/classes/server.ItemStartUseOnEventSignal.html)|类|未翻译|
|[`ItemStopChargeEvent`](https://projectxero.top/sapi/classes/server.ItemStopChargeEvent.html)|类|未翻译|
|[`ItemStopChargeEventSignal`](https://projectxero.top/sapi/classes/server.ItemStopChargeEventSignal.html)|类|未翻译|
|[`ItemStopUseOnEvent`](https://projectxero.top/sapi/classes/server.ItemStopUseOnEvent.html)|类|未翻译|
|[`ItemStopUseOnEventSignal`](https://projectxero.top/sapi/classes/server.ItemStopUseOnEventSignal.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)|类|未翻译|
|[`ItemUseOnEvent`](https://projectxero.top/sapi/classes/server.ItemUseOnEvent.html)|类|未翻译|
|[`ItemUseOnEventSignal`](https://projectxero.top/sapi/classes/server.ItemUseOnEventSignal.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)|类|未翻译|
|[`Location`](https://projectxero.top/sapi/classes/server.Location.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)|类|未翻译|
|[`MinecraftEffectTypes`](https://projectxero.top/sapi/classes/server.MinecraftEffectTypes.html)|类|翻译中|
|[`MinecraftEnchantmentTypes`](https://projectxero.top/sapi/classes/server.MinecraftEnchantmentTypes.html)|类|翻译中|
|[`MinecraftEntityTypes`](https://projectxero.top/sapi/classes/server.MinecraftEntityTypes.html)|类|翻译中|
|[`MinecraftItemTypes`](https://projectxero.top/sapi/classes/server.MinecraftItemTypes.html)|类|翻译中|
|[`MolangVariableMap`](https://projectxero.top/sapi/classes/server.MolangVariableMap.html)|类|未翻译|
|[`NavigationResult`](https://projectxero.top/sapi/classes/server.NavigationResult.html)|类|未翻译|
|[`NumberRange`](https://projectxero.top/sapi/classes/server.NumberRange.html)|类|未翻译|
|[`PistonActivateEvent`](https://projectxero.top/sapi/classes/server.PistonActivateEvent.html)|类|未翻译|
|[`PistonActivateEventSignal`](https://projectxero.top/sapi/classes/server.PistonActivateEventSignal.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)|类|未翻译|
|[`PlayerLeaveEvent`](https://projectxero.top/sapi/classes/server.PlayerLeaveEvent.html)|类|未翻译|
|[`PlayerLeaveEventSignal`](https://projectxero.top/sapi/classes/server.PlayerLeaveEventSignal.html)|类|未翻译|
|[`PlayerSpawnEvent`](https://projectxero.top/sapi/classes/server.PlayerSpawnEvent.html)|类|未翻译|
|[`PlayerSpawnEventSignal`](https://projectxero.top/sapi/classes/server.PlayerSpawnEventSignal.html)|类|未翻译|
|[`ProjectileHitEvent`](https://projectxero.top/sapi/classes/server.ProjectileHitEvent.html)|类|未翻译|
|[`ProjectileHitEventSignal`](https://projectxero.top/sapi/classes/server.ProjectileHitEventSignal.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)|类|未翻译|
|[`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)|类|未翻译|
|[`Seat`](https://projectxero.top/sapi/classes/server.Seat.html)|类|未翻译|
|[`ServerMessageSignal`](https://projectxero.top/sapi/classes/server.ServerMessageSignal.html)|类|未翻译|
|[`StringBlockProperty`](https://projectxero.top/sapi/classes/server.StringBlockProperty.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)|类|未翻译|
|[`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)|类|未翻译|
|[`XYRotation`](https://projectxero.top/sapi/classes/server.XYRotation.html)|类|未翻译|
|[`BlockFillOptions`](https://projectxero.top/sapi/interfaces/server.BlockFillOptions.html)|接口|未翻译|
|[`BlockRaycastOptions`](https://projectxero.top/sapi/interfaces/server.BlockRaycastOptions.html)|接口|未翻译|
|[`EntityDamageSource`](https://projectxero.top/sapi/interfaces/server.EntityDamageSource.html)|接口|未翻译|
|[`EntityDataDrivenTriggerEventOptions`](https://projectxero.top/sapi/interfaces/server.EntityDataDrivenTriggerEventOptions.html)|接口|未翻译|
|[`EntityEventOptions`](https://projectxero.top/sapi/interfaces/server.EntityEventOptions.html)|接口|未翻译|
|[`EntityQueryOptions`](https://projectxero.top/sapi/interfaces/server.EntityQueryOptions.html)|接口|未翻译|
|[`EntityQueryScoreOptions`](https://projectxero.top/sapi/interfaces/server.EntityQueryScoreOptions.html)|接口|未翻译|
|[`EntityRaycastOptions`](https://projectxero.top/sapi/interfaces/server.EntityRaycastOptions.html)|接口|未翻译|
|[`ExplosionOptions`](https://projectxero.top/sapi/interfaces/server.ExplosionOptions.html)|接口|未翻译|
|[`MusicOptions`](https://projectxero.top/sapi/interfaces/server.MusicOptions.html)|接口|未翻译|
|[`RawMessage`](https://projectxero.top/sapi/interfaces/server.RawMessage.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)|值|未翻译|
### @minecraft/server-admin
|名称|类型|状态|
| - | - | - |
|[`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)|值|未翻译|
### @minecraft/server-gametest
|名称|类型|状态|
| - | - | - |
|[`FenceConnectivity`](https://projectxero.top/sapi/classes/server_gametest.FenceConnectivity.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)|类|未翻译|
|[`register`](https://projectxero.top/sapi/functions/server_gametest.register.html)|undefined|未翻译|
|[`registerAsync`](https://projectxero.top/sapi/functions/server_gametest.registerAsync.html)|undefined|未翻译|
### @minecraft/server-net
|名称|类型|状态|
| - | - | - |
|[`HttpRequestMethod`](https://projectxero.top/sapi/enums/server_net.HttpRequestMethod.html)|枚举|未翻译|
|[`HttpClient`](https://projectxero.top/sapi/classes/server_net.HttpClient.html)|类|未翻译|
|[`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)|值|未翻译|
### @minecraft/server-ui
|名称|类型|状态|
| - | - | - |
|[`FormCancelationReason`](https://projectxero.top/sapi/enums/server_ui.FormCancelationReason.html)|枚举|未翻译|
|[`ActionFormData`](https://projectxero.top/sapi/classes/server_ui.ActionFormData.html)|类|未翻译|
|[`ActionFormResponse`](https://projectxero.top/sapi/classes/server_ui.ActionFormResponse.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)|类|未翻译|

View File

@ -0,0 +1,5 @@
@media (max-width: 1024px) {
html .col-menu {
max-width: min(25rem, 90vw) !important;
}
}

82
translated/original/server-admin.d.ts vendored Normal file
View File

@ -0,0 +1,82 @@
// 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.
***************************************************************************** */
/**
* @beta
* @packageDocumentation
* Contains types related to administering a Bedrock Dedicated
* Server. These types allow for the configuration of variables
* and secrets in JSON files in the Bedrock Dedicated Server
* folder. These types cannot be used on Minecraft clients.
*
* Manifest Details
* ```json
* {
* "module_name": "@minecraft/server-admin",
* "version": "1.0.0-beta.1.19.60-preview.25"
* }
* ```
*
*/
/**
* This represents a placeholder object that represents a
* secret string. The contents of that string are not available
* to script; this object is just a placeholder.
*/
// tslint:disable-next-line:no-unnecessary-class
export class SecretString {
constructor(value: string);
}
/**
* A collection of server secrets defined in dedicated server
* configuration.
*/
export class ServerSecrets {
protected constructor();
/**
* A list of available, configured server secrets.
*/
readonly names: string[];
/**
* @remarks
* Returns a SecretString that is a placeholder for a secret
* configured in a JSON file. In certain objects, like an
* HttpHeader, this Secret is resolved at the time of execution
* but is not made available to the script environment.
* @param name
*/
get(name: string): SecretString | undefined;
}
/**
* A collection of server variables defined in dedicated server
* configuration.
*/
export class ServerVariables {
protected constructor();
/**
* A list of available, configured server variables.
*/
readonly names: string[];
/**
* @remarks
* Returns the value of variable that has been configured in a
* dedicated server configuration JSON file.
* @param name
*/
get(name: string): any | undefined;
}
/**
* A globally available object that returns a list of
* dedicated-server configured secrets.
*/
export const secrets: ServerSecrets;
/**
* A globally available object that returns a list of
* dedicated-server configured variables.
*/
export const variables: ServerVariables;

2121
translated/original/server-gametest.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

187
translated/original/server-net.d.ts vendored Normal file
View File

@ -0,0 +1,187 @@
// 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.
***************************************************************************** */
/**
* @beta
* @packageDocumentation
* The `@minecraft/server-net` module contains types for
* executing HTTP-based requests. This module can only be used
* on Bedrock Dedicated Server.
*
* Manifest Details
* ```json
* {
* "module_name": "@minecraft/server-net",
* "version": "1.0.0-beta.1.19.60-preview.25"
* }
* ```
*
*/
import * as minecraftserveradmin from '@minecraft/server-admin';
export enum HttpRequestMethod {
/**
* Represents the method for an HTTP HEAD request. HEAD
* requests are similar to a GET request, but are commonly used
* to retrieve just the HTTP response headers from the
* specified URI, and not the body contents.
*/
DELETE = 'DELETE',
/**
* Represents the method for an HTTP PUT request. POST requests
* are commonly used to create a new resource that is a
* subordinate of the specified URI.
*/
GET = 'GET',
/**
* Represents the method for an HTTP PUT request. GET requests
* are commonly used to retrieve information about a resource
* at the specified URI.
*/
HEAD = 'HEAD',
/**
* Represents the method for an HTTP PUT request. GET requests
* are commonly used to retrieve information about a resource
* at the specified URI.
*/
POST = 'POST',
/**
* Represents the method for an HTTP PUT request. PUT requests
* are commonly used to update a single resource that already
* exists in a resource collection.
*/
PUT = 'PUT',
}
export class HttpClient {
protected constructor();
/**
* @remarks
* Cancels all pending requests.
* @param reason
*/
cancelAll(reason: string): void;
/**
* @remarks
* Performs a simple HTTP get request.
* @param uri
* URL to make an HTTP Request to.
* @returns
* An awaitable promise that contains the HTTP response.
*/
get(uri: string): Promise<HttpResponse>;
/**
* @remarks
* Performs an HTTP request.
* @param config
* Contains an HTTP Request object with configuration data on
* the HTTP request.
* @returns
* An awaitable promise that contains the HTTP response.
*/
request(config: HttpRequest): Promise<HttpResponse>;
testOnly_fulfillRequest(requestId: number, headers: HttpHeader[], body: string, status: number): void;
testOnly_getRequests(): number[];
testOnly_rejectRequest(requestId: number, reason: string): void;
}
/**
* Represents an HTTP header - a key/value pair of
* meta-information about a request.
*/
export class HttpHeader {
/**
* Key of the HTTP header.
*/
key: string;
/**
* Value of the HTTP header.
*/
value: minecraftserveradmin.SecretString | string;
constructor(key: string, value: minecraftserveradmin.SecretString | string);
}
/**
* Main object for structuring a request.
*/
export class HttpRequest {
/**
* Content of the body of the HTTP request.
*/
body: string;
/**
* A collection of HTTP headers to add to the outbound request.
*/
headers: HttpHeader[];
/**
* HTTP method (e.g., GET or PUT or PATCH) to use for making
* the request.
*/
method: HttpRequestMethod;
/**
* Amount of time, in seconds, before the request times out and
* is abandoned.
*/
timeout: number;
/**
* The HTTP resource to access.
*/
uri: string;
constructor(uri: string);
/**
* @remarks
* Adds an additional header to the overall list of headers
* used in the corresponding HTTP request.
* @param key
* @param value
*/
addHeader(key: string, value: minecraftserveradmin.SecretString | string): HttpRequest;
/**
* @remarks
* Updates the content of the body of the HTTP request.
* @param body
*/
setBody(body: string): HttpRequest;
/**
* @remarks
* Replaces and applies a set of HTTP Headers for the request.
* @param headers
*/
setHeaders(headers: HttpHeader[]): HttpRequest;
/**
* @remarks
* Sets the desired HTTP method (e.g., GET or PUT or PATCH) to
* use for making the request.
* @param method
*/
setMethod(method: HttpRequestMethod): HttpRequest;
setTimeout(timeout: number): HttpRequest;
}
/**
* Main object that contains result information from a request.
*/
export class HttpResponse {
protected constructor();
/**
* Body content of the HTTP response.
*/
readonly body: string;
/**
* A collection of HTTP response headers returned from the
* request.
*/
readonly headers: HttpHeader[];
/**
* Information that was used to formulate the HTTP response
* that this object represents.
*/
readonly request: HttpRequest;
/**
* HTTP response code for the request. For example, 404
* represents resource not found, and 500 represents an
* internal server error.
*/
readonly status: number;
}
export const http: HttpClient;

269
translated/original/server-ui.d.ts vendored Normal file
View File

@ -0,0 +1,269 @@
// 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.
***************************************************************************** */
/**
* @beta
* @packageDocumentation
* The `@minecraft/server-ui` module contains types for
* expressing simple dialog-based user experiences.
*
* * {@link ActionFormData} contain a list of buttons with
* captions and images that can be used for presenting a set of
* options to a player.
* * {@link MessageFormData} are simple two-button message
* experiences that are functional for Yes/No or OK/Cancel
* questions.
* * {@link ModalFormData} allow for a more flexible
* "questionnaire-style" list of controls that can be used to
* take input.
* @example createActionForm.js
* ```typescript
* const form = new ActionFormData()
* .title("Months")
* .body("Choose your favorite month!")
* .button("January")
* .button("February")
* .button("March")
* .button("April")
* .button("May");
*
* form.show(players[0]).then((response) => {
* if (response.selection === 3) {
* dimension.runCommand("say I like April too!");
* }
* });
*
* ```
*
* Manifest Details
* ```json
* {
* "module_name": "@minecraft/server-ui",
* "version": "1.0.0-internal.1.19.60-preview.25"
* }
* ```
*
*/
import * as minecraftserver from '@minecraft/server';
export enum FormCancelationReason {
userBusy = 'userBusy',
userClosed = 'userClosed',
}
/**
* Builds a simple player form with buttons that let the player
* take action.
*/
export class ActionFormData {
/**
* @remarks
* Method that sets the body text for the modal form.
* @param bodyText
*/
body(bodyText: string): ActionFormData;
/**
* @remarks
* Adds a button to this form with an icon from a resource
* pack.
* @param text
* @param iconPath
*/
button(text: string, iconPath?: string): ActionFormData;
/**
* @remarks
* Creates and shows this modal popup form. Returns
* asynchronously when the player confirms or cancels the
* dialog.
* @param player
* Player to show this dialog to.
* @throws This function can throw errors.
*/
show(player: minecraftserver.Player): Promise<ActionFormResponse>;
/**
* @remarks
* This builder method sets the title for the modal dialog.
* @param titleText
*/
title(titleText: string): ActionFormData;
}
/**
* Returns data about the player results from a modal action
* form.
*/
export class ActionFormResponse extends FormResponse {
protected constructor();
/**
* Contains additional details as to why a form was canceled.
*/
readonly cancelationReason?: FormCancelationReason;
/**
* If true, the form was canceled by the player (e.g., they
* selected the pop-up X close button).
*/
readonly canceled: boolean;
/**
* Returns the index of the button that was pushed.
*/
readonly selection?: number;
}
/**
* Base type for a form response.
*/
export class FormResponse {
protected constructor();
/**
* Contains additional details as to why a form was canceled.
*/
readonly cancelationReason?: FormCancelationReason;
/**
* If true, the form was canceled by the player (e.g., they
* selected the pop-up X close button).
*/
readonly canceled: boolean;
}
/**
* Builds a simple two-button modal dialog.
*/
export class MessageFormData {
/**
* @remarks
* Method that sets the body text for the modal form.
* @param bodyText
*/
body(bodyText: string): MessageFormData;
/**
* @remarks
* Method that sets the text for the first button of the
* dialog.
* @param text
*/
button1(text: string): MessageFormData;
/**
* @remarks
* This method sets the text for the second button on the
* dialog.
* @param text
*/
button2(text: string): MessageFormData;
/**
* @remarks
* Creates and shows this modal popup form. Returns
* asynchronously when the player confirms or cancels the
* dialog.
* @param player
* Player to show this dialog to.
* @throws This function can throw errors.
*/
show(player: minecraftserver.Player): Promise<MessageFormResponse>;
/**
* @remarks
* This builder method sets the title for the modal dialog.
* @param titleText
*/
title(titleText: string): MessageFormData;
}
/**
* Returns data about the player results from a modal message
* form.
*/
export class MessageFormResponse extends FormResponse {
protected constructor();
/**
* Contains additional details as to why a form was canceled.
*/
readonly cancelationReason?: FormCancelationReason;
/**
* If true, the form was canceled by the player (e.g., they
* selected the pop-up X close button).
*/
readonly canceled: boolean;
/**
* Returns the index of the button that was pushed.
*/
readonly selection?: number;
}
/**
* Used to create a fully customizable pop-up form for a
* player.
*/
export class ModalFormData {
/**
* @remarks
* Adds a dropdown with choices to the form.
* @param label
* @param options
* @param defaultValueIndex
*/
dropdown(label: string, options: string[], defaultValueIndex?: number): ModalFormData;
/**
* @remarks
* Creates and shows this modal popup form. Returns
* asynchronously when the player confirms or cancels the
* dialog.
* @param player
* Player to show this dialog to.
* @throws This function can throw errors.
*/
show(player: minecraftserver.Player): Promise<ModalFormResponse>;
/**
* @remarks
* Adds a numeric slider to the form.
* @param label
* @param minimumValue
* @param maximumValue
* @param valueStep
* @param defaultValue
*/
slider(
label: string,
minimumValue: number,
maximumValue: number,
valueStep: number,
defaultValue?: number,
): ModalFormData;
/**
* @remarks
* Adds a textbox to the form.
* @param label
* @param placeholderText
* @param defaultValue
*/
textField(label: string, placeholderText: string, defaultValue?: string): ModalFormData;
/**
* @remarks
* This builder method sets the title for the modal dialog.
* @param titleText
*/
title(titleText: string): ModalFormData;
/**
* @remarks
* Adds a toggle checkbox button to the form.
* @param label
* @param defaultValue
*/
toggle(label: string, defaultValue?: boolean): ModalFormData;
}
/**
* Returns data about player responses to a modal form.
*/
export class ModalFormResponse extends FormResponse {
protected constructor();
/**
* Contains additional details as to why a form was canceled.
*/
readonly cancelationReason?: FormCancelationReason;
/**
* If true, the form was canceled by the player (e.g., they
* selected the pop-up X close button).
*/
readonly canceled: boolean;
/**
* An ordered set of values based on the order of controls
* specified by ModalFormData.
*/
readonly formValues?: any[];
}

15322
translated/original/server.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

82
translated/server-admin.d.ts vendored Normal file
View File

@ -0,0 +1,82 @@
// 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.
***************************************************************************** */
/**
* @beta
* @packageDocumentation
* Contains types related to administering a Bedrock Dedicated
* Server. These types allow for the configuration of variables
* and secrets in JSON files in the Bedrock Dedicated Server
* folder. These types cannot be used on Minecraft clients.
*
* Manifest Details
* ```json
* {
* "module_name": "@minecraft/server-admin",
* "version": "1.0.0-beta.1.19.60-preview.25"
* }
* ```
*
*/
/**
* This represents a placeholder object that represents a
* secret string. The contents of that string are not available
* to script; this object is just a placeholder.
*/
// tslint:disable-next-line:no-unnecessary-class
export class SecretString {
constructor(value: string);
}
/**
* A collection of server secrets defined in dedicated server
* configuration.
*/
export class ServerSecrets {
protected constructor();
/**
* A list of available, configured server secrets.
*/
readonly names: string[];
/**
* @remarks
* Returns a SecretString that is a placeholder for a secret
* configured in a JSON file. In certain objects, like an
* HttpHeader, this Secret is resolved at the time of execution
* but is not made available to the script environment.
* @param name
*/
get(name: string): SecretString | undefined;
}
/**
* A collection of server variables defined in dedicated server
* configuration.
*/
export class ServerVariables {
protected constructor();
/**
* A list of available, configured server variables.
*/
readonly names: string[];
/**
* @remarks
* Returns the value of variable that has been configured in a
* dedicated server configuration JSON file.
* @param name
*/
get(name: string): any | undefined;
}
/**
* A globally available object that returns a list of
* dedicated-server configured secrets.
*/
export const secrets: ServerSecrets;
/**
* A globally available object that returns a list of
* dedicated-server configured variables.
*/
export const variables: ServerVariables;

2121
translated/server-gametest.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

187
translated/server-net.d.ts vendored Normal file
View File

@ -0,0 +1,187 @@
// 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.
***************************************************************************** */
/**
* @beta
* @packageDocumentation
* The `@minecraft/server-net` module contains types for
* executing HTTP-based requests. This module can only be used
* on Bedrock Dedicated Server.
*
* Manifest Details
* ```json
* {
* "module_name": "@minecraft/server-net",
* "version": "1.0.0-beta.1.19.60-preview.25"
* }
* ```
*
*/
import * as minecraftserveradmin from '@minecraft/server-admin';
export enum HttpRequestMethod {
/**
* Represents the method for an HTTP HEAD request. HEAD
* requests are similar to a GET request, but are commonly used
* to retrieve just the HTTP response headers from the
* specified URI, and not the body contents.
*/
DELETE = 'DELETE',
/**
* Represents the method for an HTTP PUT request. POST requests
* are commonly used to create a new resource that is a
* subordinate of the specified URI.
*/
GET = 'GET',
/**
* Represents the method for an HTTP PUT request. GET requests
* are commonly used to retrieve information about a resource
* at the specified URI.
*/
HEAD = 'HEAD',
/**
* Represents the method for an HTTP PUT request. GET requests
* are commonly used to retrieve information about a resource
* at the specified URI.
*/
POST = 'POST',
/**
* Represents the method for an HTTP PUT request. PUT requests
* are commonly used to update a single resource that already
* exists in a resource collection.
*/
PUT = 'PUT',
}
export class HttpClient {
protected constructor();
/**
* @remarks
* Cancels all pending requests.
* @param reason
*/
cancelAll(reason: string): void;
/**
* @remarks
* Performs a simple HTTP get request.
* @param uri
* URL to make an HTTP Request to.
* @returns
* An awaitable promise that contains the HTTP response.
*/
get(uri: string): Promise<HttpResponse>;
/**
* @remarks
* Performs an HTTP request.
* @param config
* Contains an HTTP Request object with configuration data on
* the HTTP request.
* @returns
* An awaitable promise that contains the HTTP response.
*/
request(config: HttpRequest): Promise<HttpResponse>;
testOnly_fulfillRequest(requestId: number, headers: HttpHeader[], body: string, status: number): void;
testOnly_getRequests(): number[];
testOnly_rejectRequest(requestId: number, reason: string): void;
}
/**
* Represents an HTTP header - a key/value pair of
* meta-information about a request.
*/
export class HttpHeader {
/**
* Key of the HTTP header.
*/
key: string;
/**
* Value of the HTTP header.
*/
value: minecraftserveradmin.SecretString | string;
constructor(key: string, value: minecraftserveradmin.SecretString | string);
}
/**
* Main object for structuring a request.
*/
export class HttpRequest {
/**
* Content of the body of the HTTP request.
*/
body: string;
/**
* A collection of HTTP headers to add to the outbound request.
*/
headers: HttpHeader[];
/**
* HTTP method (e.g., GET or PUT or PATCH) to use for making
* the request.
*/
method: HttpRequestMethod;
/**
* Amount of time, in seconds, before the request times out and
* is abandoned.
*/
timeout: number;
/**
* The HTTP resource to access.
*/
uri: string;
constructor(uri: string);
/**
* @remarks
* Adds an additional header to the overall list of headers
* used in the corresponding HTTP request.
* @param key
* @param value
*/
addHeader(key: string, value: minecraftserveradmin.SecretString | string): HttpRequest;
/**
* @remarks
* Updates the content of the body of the HTTP request.
* @param body
*/
setBody(body: string): HttpRequest;
/**
* @remarks
* Replaces and applies a set of HTTP Headers for the request.
* @param headers
*/
setHeaders(headers: HttpHeader[]): HttpRequest;
/**
* @remarks
* Sets the desired HTTP method (e.g., GET or PUT or PATCH) to
* use for making the request.
* @param method
*/
setMethod(method: HttpRequestMethod): HttpRequest;
setTimeout(timeout: number): HttpRequest;
}
/**
* Main object that contains result information from a request.
*/
export class HttpResponse {
protected constructor();
/**
* Body content of the HTTP response.
*/
readonly body: string;
/**
* A collection of HTTP response headers returned from the
* request.
*/
readonly headers: HttpHeader[];
/**
* Information that was used to formulate the HTTP response
* that this object represents.
*/
readonly request: HttpRequest;
/**
* HTTP response code for the request. For example, 404
* represents resource not found, and 500 represents an
* internal server error.
*/
readonly status: number;
}
export const http: HttpClient;

269
translated/server-ui.d.ts vendored Normal file
View File

@ -0,0 +1,269 @@
// 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.
***************************************************************************** */
/**
* @beta
* @packageDocumentation
* The `@minecraft/server-ui` module contains types for
* expressing simple dialog-based user experiences.
*
* * {@link ActionFormData} contain a list of buttons with
* captions and images that can be used for presenting a set of
* options to a player.
* * {@link MessageFormData} are simple two-button message
* experiences that are functional for Yes/No or OK/Cancel
* questions.
* * {@link ModalFormData} allow for a more flexible
* "questionnaire-style" list of controls that can be used to
* take input.
* @example createActionForm.js
* ```typescript
* const form = new ActionFormData()
* .title("Months")
* .body("Choose your favorite month!")
* .button("January")
* .button("February")
* .button("March")
* .button("April")
* .button("May");
*
* form.show(players[0]).then((response) => {
* if (response.selection === 3) {
* dimension.runCommand("say I like April too!");
* }
* });
*
* ```
*
* Manifest Details
* ```json
* {
* "module_name": "@minecraft/server-ui",
* "version": "1.0.0-internal.1.19.60-preview.25"
* }
* ```
*
*/
import * as minecraftserver from '@minecraft/server';
export enum FormCancelationReason {
userBusy = 'userBusy',
userClosed = 'userClosed',
}
/**
* Builds a simple player form with buttons that let the player
* take action.
*/
export class ActionFormData {
/**
* @remarks
* Method that sets the body text for the modal form.
* @param bodyText
*/
body(bodyText: string): ActionFormData;
/**
* @remarks
* Adds a button to this form with an icon from a resource
* pack.
* @param text
* @param iconPath
*/
button(text: string, iconPath?: string): ActionFormData;
/**
* @remarks
* Creates and shows this modal popup form. Returns
* asynchronously when the player confirms or cancels the
* dialog.
* @param player
* Player to show this dialog to.
* @throws This function can throw errors.
*/
show(player: minecraftserver.Player): Promise<ActionFormResponse>;
/**
* @remarks
* This builder method sets the title for the modal dialog.
* @param titleText
*/
title(titleText: string): ActionFormData;
}
/**
* Returns data about the player results from a modal action
* form.
*/
export class ActionFormResponse extends FormResponse {
protected constructor();
/**
* Contains additional details as to why a form was canceled.
*/
readonly cancelationReason?: FormCancelationReason;
/**
* If true, the form was canceled by the player (e.g., they
* selected the pop-up X close button).
*/
readonly canceled: boolean;
/**
* Returns the index of the button that was pushed.
*/
readonly selection?: number;
}
/**
* Base type for a form response.
*/
export class FormResponse {
protected constructor();
/**
* Contains additional details as to why a form was canceled.
*/
readonly cancelationReason?: FormCancelationReason;
/**
* If true, the form was canceled by the player (e.g., they
* selected the pop-up X close button).
*/
readonly canceled: boolean;
}
/**
* Builds a simple two-button modal dialog.
*/
export class MessageFormData {
/**
* @remarks
* Method that sets the body text for the modal form.
* @param bodyText
*/
body(bodyText: string): MessageFormData;
/**
* @remarks
* Method that sets the text for the first button of the
* dialog.
* @param text
*/
button1(text: string): MessageFormData;
/**
* @remarks
* This method sets the text for the second button on the
* dialog.
* @param text
*/
button2(text: string): MessageFormData;
/**
* @remarks
* Creates and shows this modal popup form. Returns
* asynchronously when the player confirms or cancels the
* dialog.
* @param player
* Player to show this dialog to.
* @throws This function can throw errors.
*/
show(player: minecraftserver.Player): Promise<MessageFormResponse>;
/**
* @remarks
* This builder method sets the title for the modal dialog.
* @param titleText
*/
title(titleText: string): MessageFormData;
}
/**
* Returns data about the player results from a modal message
* form.
*/
export class MessageFormResponse extends FormResponse {
protected constructor();
/**
* Contains additional details as to why a form was canceled.
*/
readonly cancelationReason?: FormCancelationReason;
/**
* If true, the form was canceled by the player (e.g., they
* selected the pop-up X close button).
*/
readonly canceled: boolean;
/**
* Returns the index of the button that was pushed.
*/
readonly selection?: number;
}
/**
* Used to create a fully customizable pop-up form for a
* player.
*/
export class ModalFormData {
/**
* @remarks
* Adds a dropdown with choices to the form.
* @param label
* @param options
* @param defaultValueIndex
*/
dropdown(label: string, options: string[], defaultValueIndex?: number): ModalFormData;
/**
* @remarks
* Creates and shows this modal popup form. Returns
* asynchronously when the player confirms or cancels the
* dialog.
* @param player
* Player to show this dialog to.
* @throws This function can throw errors.
*/
show(player: minecraftserver.Player): Promise<ModalFormResponse>;
/**
* @remarks
* Adds a numeric slider to the form.
* @param label
* @param minimumValue
* @param maximumValue
* @param valueStep
* @param defaultValue
*/
slider(
label: string,
minimumValue: number,
maximumValue: number,
valueStep: number,
defaultValue?: number,
): ModalFormData;
/**
* @remarks
* Adds a textbox to the form.
* @param label
* @param placeholderText
* @param defaultValue
*/
textField(label: string, placeholderText: string, defaultValue?: string): ModalFormData;
/**
* @remarks
* This builder method sets the title for the modal dialog.
* @param titleText
*/
title(titleText: string): ModalFormData;
/**
* @remarks
* Adds a toggle checkbox button to the form.
* @param label
* @param defaultValue
*/
toggle(label: string, defaultValue?: boolean): ModalFormData;
}
/**
* Returns data about player responses to a modal form.
*/
export class ModalFormResponse extends FormResponse {
protected constructor();
/**
* Contains additional details as to why a form was canceled.
*/
readonly cancelationReason?: FormCancelationReason;
/**
* If true, the form was canceled by the player (e.g., they
* selected the pop-up X close button).
*/
readonly canceled: boolean;
/**
* An ordered set of values based on the order of controls
* specified by ModalFormData.
*/
readonly formValues?: any[];
}

15336
translated/server.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

6
translated/sync.cmd Normal file
View File

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

View File

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

View File

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

View File

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

View File

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

1
translated/ts/server.ts Normal file
View File

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

36
translated/tsconfig.json Normal file
View File

@ -0,0 +1,36 @@
{
"include": [
"ts/*"
],
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"target": "es6",
"noEmit": true,
"declaration": true,
"paths": {
"@minecraft/server": ["./server"],
"@minecraft/server-admin": ["./server-admin"],
"@minecraft/server-gametest": ["./server-gametest"],
"@minecraft/server-net": ["./server-net"],
"@minecraft/server-ui": ["./server-ui"]
}
},
"typedocOptions": {
"name": "@minecraft",
"entryPoints": [
"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"
}
}
}
}

76
yarn.lock Normal file
View File

@ -0,0 +1,76 @@
# 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==