Lexiconfig Мод для Minecraft 1.20.1, 1.21.1
Це API конфігурації, яке прагне забезпечити безліч інтеграцій разом з іншими бібліотеками та бути максимально простим у використанні як для розробників, так і для користувачів.
Огляд
Це API конфігурації, покликане забезпечити сумісність із кількома різними іншими бібліотеками конфігурації, а також бути простим у використанні в проєкті з кількома завантажувачами, головним чином для використання в моїх модах.
Воно має простий у використанні синтаксис на основі анотацій, щоб зробити створення нових файлів конфігурації якомога простішим.
Якщо ви користувач модів, ця інформація, ймовірно, не дуже корисна для вас. Якщо ж ви розробник модів і хотіли б використовувати Lexiconfig у своїх проєктах, прокрутіть далі до розділу Розробка.
Наразі воно не має підтримки інших бібліотек конфігурації, але в міру оновлення я додаватиму більше сумісностей із кожною з них, щоб гарантувати, що воно не конфліктує з іншими, а натомість може безперешкодно інтегруватися між ними.
Ось список поточних, а також запланованих інтеграцій із різними бібліотеками/API конфігурації:
❌ - Не інтегровано ✅ - Інтегровано ❓ - У процесі
Статус Мод
❌ Cloth Config
❌ oωo config
✅ Configured
❌ Forge Config Screens
Розробка
Цей мод містить API, який можна використовувати для розміщення нових лексиконів, прослуховування подій тощо.
Залежність
build.gradle
dependencies { implementation "com.codinglitch.lexiconfig:lexiconfig-api:APIVERSIONHERE" }
Ви можете перейти на https://versions.codinglitch.com, щоб переглянути найновішу версію API.
Використання
Щоб розмістити власні лексикони, спершу потрібно створити власну Library. Це можна зробити, просто створивши новий клас, що розширює клас Library, і позначивши його анотацією LexiconLibrary.
@LexiconLibrary public class MyNewLibrary extends Library { @Override public void shelveLexicons() { } }
У налаштуванні Forge жодних подальших змін вносити не потрібно. Однак, якщо ви розробляєте для Fabric, вам доведеться додати цей клас як точку входу у вашому fabric.mod.json.
fabric.mod.json
//... "entrypoints": { "lexiconfig": [ "com.path.to.MyNewLibrary" ] } //...
Наступний крок — нарешті створити та розмістити ваші лексикони. Це можна зробити, просто створивши ще один клас для лексикону та надавши йому відповідні анотації, як показано далі:
@Lexicon(name = MYLEXICONTITLE) // preferably use your mod id as a name public class MyLexicon extends LexiconData { @LexiconEntry(comment = "This is a comment for a simple field!") public String mySimpleField = "content"; @LexiconPage(comment = "This is a fancy new comment on the fancy new category!") public MyNewPage myNewPage = new MyNewPage(); public static class MyNewPage extends LexiconPageData { @LexiconEntry(comment = "This field is inside a lexicon page!") public Boolean myPageField = true; } }
Наступний і останній крок — розмістити лексикон, що можна зробити, просто додавши його екземпляр як поле в бібліотеці та розмістивши його в наведеному методі.
@LexiconLibrary public class MyNewLibrary extends Library { public static MyLexicon MYLEXICON = new MyLexicon(); @Override public void shelveLexicons() { LexiconfigApi.shelveLexicon(MYLEXICON); } }
Як встановити Lexiconfig
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.18–1.21.11 on Fabric, Forge or NeoForge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 1.21.11. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file lexiconfig-neoforge-1.4.21-novel.jar (64 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: Lexiconfig should be in the list.
Minecraft 1.21.11 runs on Java 21: with a different Java version the game may close right after launch.
Версії
Із залежностями
| Minecraft | Завантажувач | Файл | Дата | Дії |
|---|---|---|---|---|
| 1.21 | NeoForge | [NEOFORGE] Lexiconfig 1.4.21-novel63.8 КБ 1 | ||
| 1.21 | Fabric | [FABRIC] Lexiconfig 1.4.21-novel271 КБ 2 | ||
| 1.18.1 | Forge | [FORGE] Lexiconfig 1.4.21-epic65.6 КБ 2 |
Часті питання
Which Minecraft versions does Lexiconfig work on?
There are files for 1.18–1.21.11, 27 versions in total. The newest is 1.21.11.
Is Lexiconfig for Forge or Fabric?
There are files for Fabric: 1.21–1.21.11, for Forge: 1.18–1.20.6 and for NeoForge: 1.21–1.21.11.
Does Lexiconfig need other mods?
The author lists no required dependencies: the Fabric, Forge or NeoForge loader is enough.
Which Java does Lexiconfig need?
Minecraft 1.21.11 runs on Java 21. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.
Where can I download Lexiconfig safely?
On this page: the file lexiconfig-neoforge-1.4.21-novel.jar (64 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: f862c78f4d27938208913d1c3ee4d9be1a13d166.
Відгуки
Станьте першим, хто оцінить Lexiconfig

