RegistryHelperLib
Are you tired of writing a lot of code to register all the things of minecraft?
With this polyvalent library, you will be able to register faster and cleaner. Unlike other registry libraries, the Registry Helper supports all the Minecraft's registries, and even custom ones! You will see, it's realy simple to use.
Instalation
Add the Modrinth's Maven Repository in build.gradle:repositories {
maven {
name = 'Modrinth'
url = 'https://api.modrinth.com/maven'
content {
includeGroup 'maven.modrinth'
}
}
}
dependencies{
//other dependencies
modImplementation("maven.modrinth:registry-helper-lib:${project.registry_helper_version}")
}
registry_helper_version=1.0.0+1.21
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(){
}
}
Featured versions
See allProject members
![JujuCorp](https://cdn.modrinth.com/data/BcMd9a7y/5e36a83a1b3f49e5b0b79f47955b0af56983167e.png)
JujuCorp
Organization
![](https://cdn.modrinth.com/user/pAAfFrh0/15badd9723d78c1e40660c09d8fe548c6b380e3e.webp)
potatoes11
Icon Maker
![](https://cdn.modrinth.com/user/NRuZg9Is/6a0386169fe7389d59c18e60faf63cdc01a8dd89.webp)
bob_bacon
Modder
Technical information
License
GPL-3.0-or-later
Client side
unsupported
Server side
required
Project ID