FITFC / Kiwi

Kiwi is a Minecraft modding library designed to help developers focus on content creation instead of repetitive work.

Home Page:https://www.curseforge.com/minecraft/mc-mods/kiwi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kiwi

Kiwi is a Minecraft modding library designed to help developers focus on content creation instead of repetitive work.

中文指南

Registration

@KiwiModule
@KiwiModule.Category("building_blocks")
public class MyModule extends AbstractModule
{
    // Register a simple item. Kiwi will automatically register it
    public static final KiwiGO<Item> FIRST_ITEM = go(() -> new Item(itemProp().rarity(Rarity.EPIC)));

    // Register a simple block and its BlockItem
    public static final KiwiGO<Block> FIRST_BLOCK = go(() -> new Block(blockProp(Material.WOOD)));
}

Plugin

// This module will be loaded only when `dependency` mod is loaded
@KiwiModule(value = "test", dependency = "modid")
@KiwiModule.Optional
public class MyAddon extends AbstractModule
{
    // This method is called in FMLCommonSetupEvent
    @Override
    public void init(InitEvent event)
    {
        // Do something
    }
}

About

Kiwi is a Minecraft modding library designed to help developers focus on content creation instead of repetitive work.

https://www.curseforge.com/minecraft/mc-mods/kiwi

License:MIT License


Languages

Language:Java 100.0%