跳到正文

GooeyLibs

作者:NickImpact

A user-interface based library useful for creating front-end UIs for existing game screens on both Forge and Fabric

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

What is GooeyLibs?

GooeyLibs is a server-side UI library that allows creation of interactable screens for both Forge and Fabric. GooeyLibs provides no default interaction, and serves as a general purpose API for plugins to work alongside with.

Design Capabilities

GooeyLibs follows the builder pattern for creating in-game screens. Additionally, GooeyLibs also allows for users to create pages within menus. Pages are primarily useful where elements of a UI would otherwise flow beyond the UI’s visible limits, allowing you to have a paginated view instead!

To learn more about GooeyLib’s API, see the following wiki: https://github.com/landonjw/GooeyLibs/wiki

Using GooeyLibs in your Projects

When using GooeyLibs, there are a few things to note. GooeyLibs provides a default API layer that most plugins should use when importing GooeyLibs. If you wish to debug the mod from the IDE, you’ll want to also include the launcher components to GooeyLibs.

Repository

repositories {
    maven("https://maven.impactdev.net/repository/development/")
}

Dependency

dependencies {
    modImplementation("ca.landonjw.gooeylibs:api:3.0.0-1.20.1-SNAPSHOT")

    // When using forge
    modRuntimeOnly("ca.landonjw.gooeylibs:forge:3.0.0-1.20.1-SNAPSHOT")

    // When using fabric
    modRuntimeOnly("ca.landonjw.gooeylibs:fabric:3.0.0-1.20.1-SNAPSHOT")
}

常见问题

GooeyLibs 支持哪些 Minecraft 版本?

GooeyLibs 支持 Minecraft Java 版 1.20.1–1.21.4,共 6 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

GooeyLibs 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

NickImpact 的其他作品

查看全部 →