Mineuniverse
Mods
Class Loader API

Class Loader API

MOD
An Item and Entity Loading API for large Minecraft Mods.
by Gnomorian
Download Claim this project
8,005 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
API and Library
Advertisement Remove ads with Premium →

pass the api the package/folder your items or entities are in, and it will search that folder the item or entity, pass any parameters you provide it and load them into the game.

e.g.

yourMainClass.java

@EventHandler
    public void preinit(FMLPreInitializationEvent event)
    {
        CLAPI clap = new CLAPI();
        items = clap.getItems("nz.co.crookedhill.items");

        registerItems(items);
    }

private void registerItems(Map<String, Item>items)

{

        for(Map.Entry<String, Item> entry : items.entrySet())

        {

                GameRegistry.registerItem(entry.getValue(), entry.getKey());

        }

}

 and thats it, all 100 of your items, registered cleanly.

CLAPIv0.1.1.2
MC 1.7.10
Release 2014-12-09 Get
CLAPIv0.0.1.1
MC 1.7.10
Release 2014-12-08 Get

More from Gnomorian

Advertisement Remove ads with Premium →

You Might Also Like