Class Loader API
Modby Gnomorian
An Item and Entity Loading API for large Minecraft Mods.
Description
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.
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Create: Nether Industry
A Create addon themed around the Nether.
Litematica Wand
Mod that makes life better!
Fox's Handheld Cannon
An explosive new mobility option!
GoogleChat
Automatic, multi-service, client- or serverside message translations
Impractical Storage
Because really, who can fit 1728 gold blocks in a chest!?
PChan3 : SteamShip - SteamBoat - Pirates
Coal powered vehicles, Air - Air combat