McLists一周年快乐
服务器已经添加了详细介绍信息板块
服主可以在管理后台来提交自己服务器介绍信息。
服务器介绍信息提交后,管理人员会进行审核
审核通过后会在服务器详细页面进行显示
提交服务器介绍信息会让新玩家更好的了解你的服务器哦~
添加图片信息,也会让百度等搜索引擎更好的收录您的服务器哦~
管理平台地址:传送门
OtterLib

OtterLib - OtterLib 海獭库

一个很酷的全新简单库模组,人人都能使用!
fabric / folia / paper / purpur 作者 Oth3r 支持版本 1.20 - 26.1
下载量
98,440
关注数
51
数据来源
Modrinth
模组详细介绍

一个简单的 Minecraft 库模组,主要是为了让我的模组开发更轻松,但任何人都可以使用!

当前支持的加载器:Fabric、Spigot 和 Paper

在你的项目中使用!👍️

想在你的项目中使用 OtterLib?你可以在 build.gradle 文件中将它添加为依赖:

repositories {
    maven {
        name "oth3rMavenSnapshots"
        url "https://maven.oth3r.one/snapshots"
    }
}

在各个加载器上的实现如下,其中 ${project.otterlib_version} 是该加载器对应的当前 OtterLib 版本(例如 0.2.0.0+1.21.60.2.0.0+1.20-1.21.6

// fabric
modImplementation "one.oth3r:otterlib:${project.otterlib_version}-fabric"
// spigot
implementation "one.oth3r:otterlib:${project.otterlib_version}-spigot"
// paper
implementation "one.oth3r:otterlib:${project.otterlib_version}-paper"

访问 maven repository 以查看更多关于该库的详细信息,包括最新版本。

功能特性

💬 简单聊天构建器

示例用法

player.sendMessage(new CTxT("Hello").color(Color.BLUE).bold(true).strikethrough(true)
    .append(new CTxT("World!!!!!!!!!").rainbow(new Rainbow(true)).underline(true).italic(true)).b());

游戏内示例

In game example

📜 自定义语言读取器

OtterLib 提供了一个自定义语言读取器,让你可以在所有支持的加载器上轻松实现服务端本地化。同时还支持为语言文件设置一个次级位置,方便玩家进行覆盖。

🗃️ 强大的文件保存与加载

添加了一个接口,可轻松创建配置文件,并支持便捷地保存、加载和更新版本。

将 json 中的旧条目更新到新版本

@Override
public void update(JsonElement jsonElement) {
    JsonObject file = jsonElement.getAsJsonObject();
    if (file.get("version").getAsDouble() == 1.0) {
        this.version = 1.1;
        this.test = file.get("test-bool").getAsBoolean();
    }
}

⚙️ 自定义配置界面

OtterLib 提供了一个自定义配置界面,可以进行自定义,以便编辑多个配置文件、链接到社交媒体,甚至打开不同的界面。

创建该界面

client.setScreen(new ConfigScreen(client.currentScreen, Text.of("test"),
    new CustomImage(Identifier.of(FabricTest.MOD_ID, "textures/gui/banner.png"),240, 60),
    // the list of buttons to be displayed in the middle
    List.of(
            SimpleButton.Templates.fileEditor(new CTxT("Test File"), FabricTest.testFile, new CustomImage(Identifier.of(FabricTest.MOD_ID, "button/server_button"),246,26)).build(),
            SimpleButton.Templates.fileEditor(new CTxT("Test File No Image"), FabricTest.testFile).build(),
            SimpleButton.Templates.wiki(new CTxT("Help")).openLink("https://oth3r.one").size(30,30).build(),
            SimpleButton.Templates.wiki(new CTxT("Help")).openLink("https://oth3r.one").size(30,30).build(),
            SimpleButton.Templates.warning(new CTxT("Help")).openLink("https://oth3r.one").size(150,15).hideText(false).build()
    ),
    // the bottom buttons can be customized!
    List.of(
            new SimpleButton.Builder(new CTxT("Donate"))
                    .miniIcon(new CustomImage(Identifier.of(Assets.ID, "icon/donate"),15,15)).build(),
            SimpleButton.Templates.donate(new CTxT("Donate")).openLink(URI.create("https://ko-fi.com/oth3r")).build(),
            SimpleButton.Templates.done(new CTxT("Done")).build(),
            SimpleButton.Templates.wiki(new CTxT("Wiki")).openLink("https://oth3r.one").build()
    )));

游戏内主配置界面

main config screen

游戏内文件编辑器:(计划加入单独条目编辑器,目前这只是一个简单的占位版本)

file config screen
基本信息
模组名称OtterLib
作者Oth3r
下载量98,440
关注数51
支持版本1.20 - 26.1
加载器fabric / folia / paper / purpur
客户端required
服务端required

友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作

历史访问人数:163,460  |  历史访问人次:262,445

今日访问人数:322  |  今日访问人次:338

昨日访问人数:23,567  |  昨日访问人次:27,193

Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.

Powered by GermMC 京ICP备17023959号-6