Minecraft Class Loader API mod 2026 download
logo
minecraft mod Class Loader API

Class Loader API

Game Version: 1.7.10
Total Downloads: 2,140
Updated: Dec 9, 2014
Created: Dec 8, 2014
Download Class Loader APIDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
CLAPIv0.1.1.2 release 4.34 KB Dec 9, 2014 1.7.10 1,899 download Class Loader API CLAPIv0.1.1.2 releaseDownload
CLAPIv0.0.1.1 release 4.24 KB Dec 8, 2014 1.7.10 241 download Class Loader API CLAPIv0.0.1.1 releaseDownload

Description

Share this:

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.

Comments

Add a comment