Alpine Core
一个用于开发 Minecraft 服务器插件的现代框架。
AlpineCore 是什么?
受 MassiveCore 启发,AlpineCore 有几个主要目标:
- 减少样板代码
- 集成现代技术
- 保持高兼容性
- Java 8 及以上版本
- Minecraft 1.8.8 及以上版本
- Spigot 服务端
系统
AlpineCore 由以下核心系统组成:
- 引擎 (Engines)
- 继承自
AlpineEngine - 自动注册的事件监听器
- 继承自
- 集成模块 (Integrations)
- 继承自
AlpineIntegration - 仅在满足可配置条件(例如存在外部插件)时才激活的引擎
- 继承自
- 配置 (Configurations)
- 继承自
AlpineConfig - 一组自动注册并持久化的设置
- 使用 Exlll's ConfigLib 的一个分支,为开发者和管理员提供流畅的配置体验
- 预写了针对常见配置用例的集成模块,包括兼容 Kyori's Adventure 的消息支持
- 继承自
- 存储 (Storage)
- 继承自
AlpineStore - 处理持久化的键值对数据,底层由可配置的存储系统支撑
- 继承自
- 命令 (Commands)
- 继承自
AlpineCommand - 自动注册的服务器命令
- 提供了更便捷的 API 来注册补全项和前置条件
- 利用 LiteCommands 实现高效构建复杂的命令结构
- 继承自
- 用户界面 (User Interfaces)
- 提供了一个旨在追求简洁的高级库存 GUI 框架,采用类似配方的槽位掩码配置来进行元素布局
- 允许在插件中高效创建交互式用户界面
- 使用
UIHandler初始化菜单以处理用户交互
- 传送 (Teleportation)
- 由
TeleportManager管理 - 提供一个集中式的点对点传送系统
- 使用
TeleportTask构建器编排传送序列 - 处理传送请求的生命周期,从初始化到执行
- 添加倒计时、事件处理器以及取消策略
- 使用
- 由
- 事件 (Events)
- 继承自
AlpineEvent - 一种通用的 Bukkit 事件,去除了样板代码
- 继承自
面向开发者
要使用 AlpineCore,您需要将其作为依赖项添加到您的项目中:
Gradle (Kotlin DSL)
repositories {
maven("https://lib.alpn.cloud/releases")
}
dependencies {
compileOnly("co.crystaldev:alpinecore:0.4.9")
}
Gradle (Groovy DSL)
repositories {
maven {
url 'https://lib.alpn.cloud/releases'
}
}
dependencies {
compileOnly 'co.crystaldev:alpinecore:0.4.9'
}
Maven
<repositories>
<repository>
<name>Alpine Public</name>
<url>https://lib.alpn.cloud/releases</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>co.crystaldev</groupId>
<artifactId>alpinecore</artifactId>
<version>0.4.9</version>
</dependency>
</dependencies>
Alpine Core
A modern framework for developing Minecraft server plugins.
What is AlpineCore?
Inspired by MassiveCore, AlpineCore has a few key goals:
- Reduce boilerplate
- Integrate modern technologies
- Maintain high compatibility
- Java 8 minimum
- Minecraft 1.8.8 minimum
- Spigot minimum
Systems
AlpineCore consists of the following core systems:
- Engines
- Extended from
AlpineEngine - An event listener that is automatically registered
- Extended from
- Integrations
- Extended from
AlpineIntegration - Engines that only activate under configurable conditions, such as the presence of an external plugin
- Extended from
- Configurations
- Extended from
AlpineConfig - A collection of settings that is automatically registered and persisted
- Utilizes a fork of Exlll's ConfigLib to provide a smooth configuration experience for both developers and administrators
- Pre-written integrations with common configuration use cases, including messages compatible with Kyori's Adventure
- Extended from
- Storage
- Extended from
AlpineStore - Handles persistent key + data pairs backed by a configurable storage system
- Extended from
- Commands
- Extended from
AlpineCommand - A server command that is automatically registered
- Includes a more convenient API for registering completions and conditions
- Utilizes LiteCommands to enable the efficient creation of complex command structures
- Extended from
- User Interfaces
- Provides an advanced inventory GUI framework designed for simplicity, with recipe-like slot mask configuration for element placement
- Allows the efficient creation of interactive user interfaces in the plugin
- Utilizes
UIHandlerto initialize the menu to handle user interactions
- Teleportation
- Managed by
TeleportManager - Provides a centralized system for point-to-point teleportation
- Curate a teleportation sequence with the
TeleportTaskbuilder - Handle the lifecycle of a teleportation request, from initialization to the execution
- Add a countdown, event handlers, & cancellation policies
- Curate a teleportation sequence with the
- Managed by
- Events
- Extended from
AlpineEvent - A generic Bukkit event, minus the boilerplate
- Extended from
For Developers
To use AlpineCore, you must add it as a dependency to your project:
Gradle (Kotlin DSL)
repositories {
maven("https://lib.alpn.cloud/releases")
}
dependencies {
compileOnly("co.crystaldev:alpinecore:0.4.9")
}
Gradle (Groovy DSL)
repositories {
maven {
url 'https://lib.alpn.cloud/releases'
}
}
dependencies {
compileOnly 'co.crystaldev:alpinecore:0.4.9'
}
Maven
<repositories>
<repository>
<name>Alpine Public</name>
<url>https://lib.alpn.cloud/releases</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>co.crystaldev</groupId>
<artifactId>alpinecore</artifactId>
<version>0.4.9</version>
</dependency>
</dependencies>
下载 AlpineCore
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AlpineCore
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AlpineCore
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AlpineCore
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AlpineCore
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AlpineCore
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AlpineCore
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AlpineCore
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AlpineCore
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AlpineCore
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
f6783e2 feat(compat): 添加对 PaperMC Folia 的支持 (#8)
-
add: 添加 folia 支持
-
fix: 限制异步任务调度的延迟和时间间隔
-
add: 为计划任务添加插件所有权跟踪
-
refactor: 将 UIManager 切换至
runTaskForEntity,以提升与 Folia 的兼容性
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个强大的 API,用于为你的 Minecraft 服务器创建自定义进度。
评论 0
登录后参与评分
还没有评论,来抢沙发吧