Перейти к содержимому
Mineforgian

Tulip

A config library for Minecraft that makes it easy to handle saving and loading config data to and from config files

3K загрузок4 подписчиковMITfabricquilt

Обновлён 26 октября 2024 г. · опубликован 21 июля 2023 г.

What is Tulip?

Tulip is a lightweight and easy-to-use config library for Minecraft that simplifies the process of saving and loading data to and from config files. With its simple API, Tulip allows you to easily manage your mod's config settings. Whether you're a beginner or an experienced modder, Tulip's intuitive design means that it is easy to handle things like saving and loading data all while the mod handles errors for you.

You can use this mod to add configurations to your mods. To clarify, this mod isn't for making config screens (where other config libraries do so), this library is for handling saving and loading. You will have to create your own config screen class to handle actually dealing with your mod's data.

Well, where do I find a source to learn how to use this library?

I've made a GitHub wiki page that explains every step in the process of using Tulip, as well as setting up a simple config screen along with it. You can find it here.

IMPORTANT

Please note that most likely older versions of Tulip are broken and should be considered broken even if they aren't. If you're a mod creator and would like to use Tulip, please be sure to download the latest version of Tulip.

Potential Future Additions

  • Quick config screen creation
  • JSON config files
  • Automatic class serialization and deserialization

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
1.2.2Релиз1.21, 1.21.1, 1.21.2, 1.21.3fabric26 октября 2024 г..jar (20 КБ)
1.2.1Релиз1.19.4, 1.20, 1.20.1, 1.20.2fabric, quilt2 октября 2023 г..jar (20 КБ)
1.2.0-1.19.xРелиз1.19.1, 1.19.2, 1.19.3, 1.19.4fabric, quilt22 июля 2023 г..jar (20 КБ)
1.1.0-1.19.xРелиз1.19.1, 1.19.2, 1.19.3, 1.19.4fabric, quilt22 июля 2023 г..jar (20 КБ)
1.0.0-1.19.xРелиз1.19.1, 1.19.2, 1.19.3, 1.19.4fabric, quilt22 июля 2023 г..jar (20 КБ)

Ченджлог

1.2.2Релиз1.21.1, 1.21.2, 1.21.3 · 26 октября 2024 г.
  • Added loadWithoutSave()
  • Added setDefault()
  • Made a separate absolute path constructor
  • Disambiguified some method names
  • General code cleanups
1.2.1Релиз1.20, 1.20.1, 1.20.2 · 2 октября 2023 г.
  • Minor fix to allow Tulip to run on all Minecraft versions.
1.2.0-1.19.xРелиз1.19.2, 1.19.3, 1.19.4 · 22 июля 2023 г.
  • Changed the load() method to also save after loading config to ensure that properties are synced correctly
1.1.0-1.19.xРелиз1.19.2, 1.19.3, 1.19.4 · 22 июля 2023 г.
  • Changed internal API methods load() and save() to loadUnsafe() and saveUnsafe()
  • Added new load() and save() methods that handle file exceptions automatically
1.0.0-1.19.xРелиз1.19.2, 1.19.3, 1.19.4 · 22 июля 2023 г.

First version

Полная история изменений — на Modrinth.

Комментарии

Загружаем…