
Registry Helper Lib
A small library to register faster and easier. Supports Minecraft's and custom registries.
- Загрузки
- 2K
- Подписчики
- 3
- Обновлён
- 25 февраля 2026 г.
- Лицензия
- GPL-3.0-or-later
Опубликован 28 июня 2024 г.
RegistryHelperLib
Are you tired of writing a lot of code to register all the things of minecraft?
With this little library, you will be able to register in an easier way.
Installation
Add the Modrinth's Maven Repository in build.gradle:
repositories {
maven {
name = 'Modrinth'
url = 'https://api.modrinth.com/maven'
content {
includeGroup 'maven.modrinth'
}
}
}
Then add the mod implementation, still in build.gradle:
dependencies{
//other dependencies
modImplementation("maven.modrinth:registry-helper-lib:${project.registry_helper_version}")
}
Then add the version variable in gradle.properties. Replace the version below by the version of the lib you want:
registry_helper_version= <version>
How to use it?
Create an instance of the RegistryHelper class. This instance will allow you to register for a registry type.
public class ModItems {
private static final RegistryHelper<Item> registryHelper=new RegistryHelper<>(Registries.ITEM,ExampleMod.MOD_ID);
public static final Item EXAMPLE_ITEM= registryHelper.register("name",new Item(new Item.Settings()));
public static void init(){
}
}
Ченджлог
1.0.1+1.21.5Бета1.21.6, 1.21.7, 1.21.8 · 1 декабря 2025 г.
New Version
1.0.1+1.21.10Бета1.21.10, 1.21.11 · 24 ноября 2025 г.
New port to lastest version!
1.0.1+1.20.1Бета1.20.4, 1.20.5, 1.20.6 · 7 декабря 2024 г.
Simple port to 1.20.1
1.0.1+1.21Релиз1.21, 1.21.1 · 21 октября 2024 г.
The version is now clearer
Комментарии
Загружаем…