Search in sources :

Example 1 with ChestBuilder

use of net.darkhax.bookshelf.builder.ChestBuilder in project Bookshelf by Darkhax-Minecraft.

the class ChestTest method preInit.

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    MinecraftForge.EVENT_BUS.register(new BookshelfEvents());
    final RegistryHelper registry = new RegistryHelper("chesttest");
    registry.setTab(CreativeTabs.MISC);
    final ChestBuilder builder = new ChestBuilder("chesttest", true);
    builder.addChestType("one", "two", "three");
    builder.register(registry);
}
Also used : RegistryHelper(net.darkhax.bookshelf.registry.RegistryHelper) ChestBuilder(net.darkhax.bookshelf.builder.ChestBuilder) BookshelfEvents(net.darkhax.bookshelf.BookshelfEvents) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Example 2 with ChestBuilder

use of net.darkhax.bookshelf.builder.ChestBuilder in project Bookshelf by Darkhax-Minecraft.

the class ChestTestTwo method preInit.

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    MinecraftForge.EVENT_BUS.register(new BookshelfEvents());
    final RegistryHelper registry = new RegistryHelper("chesttesttwo");
    registry.setTab(CreativeTabs.MISC);
    final ChestBuilder builder = new ChestBuilder("chesttesttwo", true);
    builder.addChestType("four");
    builder.register(registry);
}
Also used : RegistryHelper(net.darkhax.bookshelf.registry.RegistryHelper) ChestBuilder(net.darkhax.bookshelf.builder.ChestBuilder) BookshelfEvents(net.darkhax.bookshelf.BookshelfEvents) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Aggregations

BookshelfEvents (net.darkhax.bookshelf.BookshelfEvents)2 ChestBuilder (net.darkhax.bookshelf.builder.ChestBuilder)2 RegistryHelper (net.darkhax.bookshelf.registry.RegistryHelper)2 EventHandler (net.minecraftforge.fml.common.Mod.EventHandler)2