Make modding no longer cumbersome.
@KiwiModule
@KiwiModule.Group("building_blocks")
public class MyModule extends AbstractModule
{
// Register a simple item. Kiwi will automatically register it
public static final Item FIRST_ITEM = new Item(itemProp().rarity(Rarity.EPIC));
// Register a simple block and its BlockItem
public static final Block FIRST_BLOCK = new Block(blockProp(Material.WOOD));
}
// This module will be loaded only when `dependency` mod is loaded
@KiwiModule(name = "test", dependency = "modid")
@KiwiModule.Optional
public class MyAddon extends AbstractModule
{
// This method is called in FMLCommonSetupEvent
@Override
public void init(FMLCommonSetupEvent event)
{
// Do something
}
}
- Add Kiwi to your build path
- Follow the
Readme.txt
of MDK