Mineuniverse
Log in Register
Mods

Class Loader API

An Item and Entity Loading API for large Minecraft Mods.
Claim this project
2,542 downloads
0 likes
Updated Mar 10, 2015
0 hypes

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.

No files available for download.

You Might Also Like

Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527
Lodestone
A collection of code used throughout projects under the Lodestar team.
9,914,417
TheDragonLib
A library for most of sokratis12GR's Mods
9,910,232
Multi Mob Library
A library mod containing essential files for Daveyx0's mob mods
9,892,767
FTB Library (Forge) (Legacy)
FTB Library is a library mod that is used for some of our mods.
98,265,314