Dev coolfish#46
Merged
Merged
Conversation
为客户端 API 添加相机控制方法,包括 setCameraTarget 和 resetCamera,用于旁观实体及返回玩家视角。 通过 client.getBlockState 增强方块查询能力,可从渲染缓存中获取方块状态。 通过 client.onRender 引入渲染回调,支持带部分帧插值的每帧自定义渲染。 扩展实体 API,添加支持伤害来源的 hurt 方法、基于位置的 teleportTo 传送方法、带附魔装备的 setEquipmentWithEnchants 方法,以及不触发回调直接移除实体的 remove 方法。 添加鼠标增量输入方法 getMouseDeltaX 和 getMouseDeltaY,用于跟踪鼠标相对移动。 扩展 GameBounds3 数学运算,新增 volume、isEmpty、equals、union、inflate 和 deflate 方法。 增强玩家背包管理,新增 removeItem、setHeldSlot、inventoryFreeSlots、hasItem、getItemCount 和 givePotion 方法。 实现按玩家独立的 Bossbar 系统,包含 showBossbar 和 removeBossbar 方法。 添加 UI 绘制能力,包含 drawItem、removeDrawItem、drawRect 和 removeDrawRect 方法,用于自定义叠加层显示。 更新世界事件回调,支持通过返回 false 取消操作,阻止方块破坏/放置、实体交互和伤害事件等行为。 为体素 API 添加缺失的重载方法,包括支持 GameBounds3 参数的 fillVoxel、replace、clone、setVoxelState 和 countVoxel 方法。 更新中文文档,同步所有新增 API 及变更内容。
- 将项目状态从 Beta 更新为 v0.1.0 正式发布 - 增加 Box3JS 与传统 Java 模组开发的全面功能对比 - 扩展安装说明,提供清晰的分步安装流程 - 增强快速入门章节,补充完整的工作流示例 - 新增所有可用 box3script 命令的命令参考表 - 优化 API 概览,完善全局对象描述 - 补充涵盖客户端脚本编写的教程内容 - 新增示例项目展示,详细说明功能亮点 - 重组依赖信息,提升结构清晰度 - 整体优化文档结构与可读性
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.