- Added camera scripting APIs for the following APIs:
- 为下列 API 添加了相机脚本 API:
- setCamera(): to set the camera to a specified preset
- setCamera(): 将相机设定为指定预设
- fade(): to start a camera fade
- fade(): 开始进行相机淡入淡出步骤
- clear(): to clear the current settings on the camera
- clear(): 清除当前相机的设置
- Released Scoreboard API's from beta to V1.4.0
- 将计分板API从Beta测试正式发布到了 V1.4.0 版本
- Updated Scoreboard.getObjective, getObjectiveAtDisplaySlot, and clearObjectiveAtDisplaySlot to return '| undefined'
- 更新了 Scoreboard.getObjective, getObjectiveAtDisplaySlot, 与 clearObjectiveAtDisplaySlot 使其可以返回 '| 未被定义'
- Removed MinecraftBlockTypes defined in @minecraft/server
- 移除了来自 @minecraft/server 的 MinecraftBlockTypes 定义
- Moved ItemUseBeforeEvent to 1.4.0
- 将 ItemUseBeforeEvent移动到1.4.0
- Moved ItemUseOnBeforeEvent to 1.4.0
- 将 ItemUseOnBeforeEvent移动到1.4.0
- Moved ItemUseAfterEvent to 1.4.0
- 将 ItemUseAfterEvent移动到1.4.0
- Moved ItemUseOnAfterEvent to 1.4.0
- 将 ItemUseOnAfterEvent移动到1.4.0
- Moved ItemStartUseOnAfterEvent to 1.4.0
- 将 ItemStartUseOnAfterEvent移动到1.4.0
- Moved ItemStopUseAfterEvent to 1.4.0
- 将 ItemStopUseAfterEvent移动到1.4.0
- Moved ItemStopUseOnAfterEvent to 1.4.0
- 将 ItemStopUseOnAfterEvent移动到1.4.0
- Moved ItemCompleteUseAfterEvent to 1.4.0
- 将 ItemCompleteUseAfterEvent移动到1.4.0
- Moved ItemReleaseUseAfterEvent to 1.4.0
- 将 ItemReleaseUseAfterEvent移动到1.4.0
- Moved ItemStartUseAfterEvent to 1.4.0
- 将 ItemStartUseAfterEvent移动到1.4.0
- Moved DimensionLocation to 1.4.0
- 将 DimensionLocation移动到1.4.0
- Renamed PositionInUnloadedChunkError to LocationInUnloadedChunkError and moved it to 1.4.0
- 将 PositionInUnloadedChunkError 重命名为 LocationInUnloadedChunkError 并将其移动到1.4.0
- Renamed PositionOutOfWorldBoundariesError to LocationOutOfWorldBoundariesError and moved it to 1.4.0
- 将 PositionOutOfWorldBoundariesError 重命名为 LocationOutOfWorldBoundariesError 并将其移动到1.4.0
- Moved getSpawnPoint to 1.4.0
- 将 getSpawnPoint移动到1.4.0
- Moved setSpawnPoint to 1.4.0
- 将 setSpawnPoint移动到1.4.0
- Moved getDefaultSpawnLocation to 1.4.0
- 将 getDefaultSpawnLocation移动到1.4.0
- Moved setDefaultSpawnLocation to 1.4.0
- 将 setDefaultSpawnLocation移动到1.4.0
- Released isValid() from Beta to 1.4.0 for the following classes:
- 在下列类中将 isValid() 从Beta测试正式发布到了 V1.4.0:
- Block
- Block
- Container
- Container
- Entity
- Entity
- Player
- Player
- SimulatedPlayer
- SimulatedPlayer
- WorldAfterEvents
- WorldAfterEvents
- Removed projectileHit
- 移除了 projectileHit
- Added projectileHitBlock
- 添加了 projectileHitBlock
- Added projectileHitEntity
- 添加了 projectileHitEntity
- Added class ProjectileHitBlockAfterEvent export class:
ProjectileHitBlockAfterEvent { readonly dimension: Dimension; readonly hitVector: Vector3; readonly location: Vector3; readonly projectile: Entity; readonly source?: Entity; getBlockHit(): BlockHitInformation; } - 添加了 ProjectileHitBlockAfterEvent 出口类:
ProjectileHitBlockAfterEvent { readonly dimension: Dimension; readonly hitVector: Vector3; readonly location: Vector3; readonly projectile: Entity; readonly source?: Entity; getBlockHit(): BlockHitInformation; } - Added class ProjectileHitEntityAfterEvent export class:
ProjectileHitEntityAfterEvent { readonly dimension: Dimension; readonly hitVector: Vector3; readonly location: Vector3; readonly projectile: Entity; readonly source?: Entity; getEntityHit(): EntityHitInformation; } - 添加了 ProjectileHitEntityAfterEvent 出口类:
ProjectileHitEntityAfterEvent { readonly dimension: Dimension; readonly hitVector: Vector3; readonly location: Vector3; readonly projectile: Entity; readonly source?: Entity; getEntityHit(): EntityHitInformation; } - Fixed a bug where ContainerSlot would not work with certain container types (MCPE-168805)
- 修复了 ContainerSlot 不适用于某些容器类型的问题 (MCPE-168805)
|