PineLib
PineLib 是一个以简洁为核心理念设计的现代 Minecraft 插件库,同时提供了强大的功能。
功能特性
菜单系统
我们提供了一套简单的菜单系统,让你能够轻松创建各种菜单。无论是简单的箱子菜单、使用铁砧*重命名物品、通过发射器/合成器展示配方,甚至是完全自定义的用户界面(UI),PineLib 都能为你提供所需的所有工具来实现这些效果。
*铁砧功能需要安装 ProtocolLib 才能正常工作。
倒计时
我们还提供了支持 Bukkit API 和 Adventure API 的倒计时功能。这些倒计时会自动更新自身状态,例如动态减少Boss血条;它们还可以利用占位符显示相关信息,如剩余时间。(注意:这不是 PlaceholderAPI)
占位符
占位符是一种简单的模板,可用于在倒计时中显示信息。所有占位符均格式化为 %%{placeholder}%%,可使用以下占位符:
seconds- 剩余的秒数。minutes- 剩余的分钟数。hours- 剩余的小时数。percentage- 倒计时的剩余百分比。progress- 剩余的刻数(ticks)。raw_progress- 与percentage相同,但表示为 0 到 1 之间的数值。
安装
要使用 PineLib,显然你需要将其安装在你的服务器上。你可以直接从 Modrinth 页面下载并将其放入服务器的插件文件夹中;然而,如果你想在其他插件中使用 PineLib,首先我们需要将 PineLib 设置为依赖项,如下所示:
name: PineLibUser
version: '1.0-SNAPSHOT'
main: com.example.pinelibuser.PineLibUser
api-version: '1.21'
prefix: PineLib
authors: [ Piny ]
description: Cool plugin using cool libraries
website: https://example.com
depend:
- PineLib
接下来,要在你的插件中实际使用 PineLib,你需要将其添加到你的 build.gradle 文件中,如下所示:
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'com.github.NotPiny:PineLib:v1.2.0-BETA'
}
用法
在你的插件中使用 PineLib 非常简单,其设计旨在让你感觉就像在自己插件代码中编写代码一样自然。在使用它提供的功能时,你无需担心获取 PineLib 的实例。有关如何使用特定功能的详细信息,请参阅 Wiki 中的文档。
PineLib
PineLib is a modern minecraft plugin library designed with simplicity in mind while still offering powerful features.
Features
Menus
We have a simple menu system that allows you to create menus with ease. Whether it's a simple chest menu, renaming items with anvils*, displaying recipes with droppers/crafters or even a fully custom UI, PineLib gives you the tools to create it all.
*anvils require ProtocolLib installed in order to work.
Countdowns
We also have countdowns which both support Bukkit and Adventure API. These countdowns will automatically update themselves such as draining boss bars; they can also display information about themselves such as the time remaining using placeholders. (Not PlaceholderAPI)
Placeholders
Placeholders are a simple template you can use to display information within
the countdowns. All placeholders are formatted as %%{placeholder}%% and the
following placeholders can be used:
seconds- The number of seconds remaining.minutes- The number of minutes remaining.hours- The number of hours remaining.percentage- The percentage of the countdown remaining.progress- The amount of ticks remaining.raw_progress-percentagebut represented as a number between 0 and 1.
Installation
To utilize PineLib, you obviously need to have it installed on your server. You can just download it from the modrinth page and place it in your servers plugin folder; however, if you want to use PineLib in your own plugin, first we need to set PineLib as a dependency like so:
name: PineLibUser
version: '1.0-SNAPSHOT'
main: com.example.pinelibuser.PineLibUser
api-version: '1.21'
prefix: PineLib
authors: [ Piny ]
description: Cool plugin using cool libraries
website: https://example.com
depend:
- PineLib
now to actually use PineLib in your plugin, you will need to add it to your
build.gradle file like so:
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'com.github.NotPiny:PineLib:v1.2.0-BETA'
}
Usage
Using PineLib in your plugin is simple and designed to feel just as natural as using any code within your own plugin. You don't need to worry about getting the instance of PineLib when you use the features it provides. For information on how to use specific features, please refer to the documentation in the wiki.
下载 PineLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PineLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PineLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PineLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PineLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PineLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PineLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PineLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个强大的 API,用于为你的 Minecraft 服务器创建自定义进度。
评论 0
登录后参与评分
还没有评论,来抢沙发吧