Noxesium Paper API ?
Noxesium 是一款客户端侧的 Fabric 模组,它为服务器插件提供了更多对客户端行为的控制权。此 Paper 插件提供了一个 API,你可以使用它来管理与 Noxesium 客户端功能的所有交互。
功能 ✏️
与 API 交互的主要方法是通过其代码接口,你可以在这里找到源代码。 你也可以通过游戏内的 /noxesium 命令控制各种功能。某些功能只能通过代码访问。
命令 ?️
以下是当前支持的 /noxesium 子命令:
component 配置实体或玩家身上的组件,让你能够控制实体的行为。参见下方的列表,了解组件可以实现的一些示例。
link 为目标玩家打开一个弹出窗口,以便在浏览器中打开 URL。
list 显示使用 Noxesium 的玩家列表及其版本。
playsound 播放带有额外可自定义设置(如时间偏移、循环或无衰减)的声音。此功能的代码 API 还可以修改之前的声音实例并使音效淡出。
zoom 让你可以控制客户端的缩放和视场角(FOV)。
组件 ?
为玩家和实体提供了多种可用的组件:
- 创建自定义的可交互对象,如加速带或跳跃垫。
- 改变信标、守卫者或末影水晶光束的颜色。
- 自定义物品属性,例如悬停声音、物品槽的渲染方式以及是否可以移动该物品。
- 将各种移动系统移至由客户端控制,如激流三叉戟、鞘翅和冲刺矛。
- 防止客户端使用调试功能,例如隐藏 GUI、显示碰撞箱以及各种调试渲染器。
……还有更多!所有这些都可以随时更改,并通过命令或代码进行调整。
源码 8️⃣
你可以在这里找到 API 的源代码。 API 包含详尽的代码注释,目前没有其他文档。
Noxesium Paper API ?
Noxesium is a client-side Fabric mod which gives server plugins more control over client behavior. This Paper plugin adds an API you can use to manage all interactions with the Noxesium client features.
Features ✏️
The primary method to interact with the API is through its code interface, the source code of which you can find here. You can also control various features through the in-game /noxesium command. Some functionality is exclusively accessible through code.
Commands ?️
Here's the currently supported sub-commands of /noxesium:
component Configures components on entities or players which lets you control entity behaviors. See the list below for some examples of what components can do.
link Opens up a pop-up for the target player to open a URL in a browser.
list Shows a list of players using Noxesium and which version they are on.
playsound Plays a sound with additional customisable settings such as a time offset, looping, or no attenuation. The code API for this feature can also modify previous sound instances and fade out sound effects.
zoom Lets you control the zoom and FOV of a client.
Components ?
There's a number of components available for players and entities:
- Creating custom interactable objects like speed boosters or jump pads.
- Changing the color of beacon, guardian or end crystal beams.
- Customise properties of inventory items such as hover sounds, how the item's slot is rendered, and whether you can move the item.
- Move various movement systems to be controlled by the client such as riptide tridents, elytras, and lunge spears.
- Prevent clients from using debug features such as GUI hiding, showing hitboxes, and various debug renderers.
... And many more! These can all be changed at any time and tweaked through the command or in code.
Source 8️⃣
You can find the source code for the API here. The API has extensive code comments, no further documentation exists at this time.
评论 0
登录后参与评分
还没有评论,来抢沙发吧