

该 API 在 GitHub 上持续更新,包含大量新功能、漏洞修复及其他改进。支持版本:1.21.1 Neo、Forge、Fabric;1.20.1 Forge、Fabric
Refraction API 旨在整合多个项目中常用的代码,并提供许多实用方法,使添加过场动画等功能更易于实现,同时简化整体开发流程。
Refraction 由 ZeusIGN 与 ConnorTron110 开发。

(列出的大部分功能仅在未发布的版本中可用)
Refraction 提供的所有主要功能:
ReConfig——支持自动同步的配置系统
Atda——持久化数据存储系统
Syncables——服务器 → 客户端类数据同步能力
Channels——带有自定义标头的服务器与客户端间的数据通道
NamedAPI——基于命名 API 通道方案的 Channels 扩展
Runnabler——用于客户端/服务端延迟执行与 tick 回调的处理程序
RefractionEvents——支持多加载器的事件系统
VoxelUtils——体素生成工具集
Particler——粒子包装器,支持渲染与 tick 操控
RAABB——支持非轴对齐碰撞框
Cutscenes——通过代码自定义过场动画(未来将支持命令)
Custom debuggers——类似 Minecraft 的调试机制,Refraction 提供自定义调试支持
Interactions——NPC 交互处理程序
Quests——任务处理系统,默认不支持任务叠加(未来可能更改)
Server Screens——完全在服务端控制屏幕界面,无需额外数据包,包括关闭、打开以及在客户端 ↔ 服务器之间共享数据
Registrable tracking sounds——可在客户端注册并由服务端调用的 tick 声音
Flood Filler——高度可定制的水填充器
Camera shake——提供摄像机震动接口
SyncConfig——玩家加入时自动同步配置
Vec3Helper——丰富的 Vec3 工具函数
RScanner——给定包路径的文件扫描器
还有更多功能,欢迎自行查看,主要集中在 @helper 和 @feature 目录 :D


This API is constantly being updated on Github, with a ton more features, bug fixes, and other things. Supported for: 1.21.1 Neo, Forge, Fabric 1.20.1 Forge, Fabric
Refraction API was made for commonly used code between multiple projects & includes many useful methods to make adding features such as cutscenes easier to implement and to make the overall development process easier.
Refraction was made by ZeusIGN & ConnorTron110.

(Most of the listed features are only available on the unpublished versions)
All big things that Refraction offers:
ReConfig—Config system with auto syncing support
Atda—Persistent data storage system
Syncables—Server → Client class syncing capability
Channels—Custom data channels between server and client w/ headers
NamedAPI—Extension of Channels for named API channel schemes
Runnabler—Handler for delayed and ticking runnables on client / server
RefractionEvents—Event system with multiloader support
VoxelUtils—Voxel generation utilities
Particler—Particle wrapper with render and tick manipulation
RAABB—Allows for non-axis aligner boxes with collision
Cutscenes—Customizable cutscenes through code (future command support)
Custom debuggers—Similar to Minecraft's system of debugging, Refraction has custom debug support
Interactions—NPC Interaction handler
Quests—Quest handler system, doesn't offer quest stacking by default (future change)
Server Screens—Full server side control of screens without extra packets including closing, opening and sharing data between client ↔ server
Registrable tracking sounds—Ticking sounds that can be registered on the client and called from the server
Flood Filler—Highly customizable flood filler
Camera shake—Provides a camera shake interface
SyncConfig—Automatic syncing for player joins
Vec3Helper—A lot of vec3 util
RScanner—File scanner given a package
And a lot more, just take a look for yourself, mainly in @helper and @feature dirs :D
评论 0
登录后参与评分
还没有评论,来抢沙发吧