Search in sources :

Example 1 with ItemToolHandle

use of toolbox.common.items.parts.ItemToolHandle in project Adventurers-Toolbox by the-realest-stu.

the class ModItems method registerItems.

@SubscribeEvent
public static void registerItems(RegistryEvent.Register<Item> event) {
    event.getRegistry().register(new ItemRock());
    if (!Config.DISABLED_TOOLS.contains("pickaxe")) {
        event.getRegistry().register(new ItemToolHead("pickaxe_head"));
        ItemSchematic.subtypes.add("pickaxe_head");
    }
    if (!Config.DISABLED_TOOLS.contains("axe")) {
        event.getRegistry().register(new ItemToolHead("axe_head"));
        ItemSchematic.subtypes.add("axe_head");
    }
    if (!Config.DISABLED_TOOLS.contains("shovel")) {
        event.getRegistry().register(new ItemToolHead("shovel_head"));
        ItemSchematic.subtypes.add("shovel_head");
    }
    if (!Config.DISABLED_TOOLS.contains("hoe")) {
        event.getRegistry().register(new ItemToolHead("hoe_head"));
        ItemSchematic.subtypes.add("hoe_head");
    }
    if (!Config.DISABLED_TOOLS.contains("handpick")) {
        event.getRegistry().register(new ItemToolHead("handpick_head"));
        ItemSchematic.subtypes.add("handpick_head");
    }
    if (!Config.DISABLED_TOOLS.contains("hammer")) {
        event.getRegistry().register(new ItemToolHead("hammer_head"));
        ItemSchematic.subtypes.add("hammer_head");
    }
    if (!Config.DISABLED_TOOLS.contains("sword")) {
        event.getRegistry().register(new ItemToolHead("sword_blade"));
        ItemSchematic.subtypes.add("sword_blade");
        event.getRegistry().register(new ItemToolHead("sword_crossguard"));
        ItemSchematic.subtypes.add("sword_crossguard");
    }
    if (!Config.DISABLED_TOOLS.contains("dagger")) {
        event.getRegistry().register(new ItemToolHead("dagger_blade"));
        ItemSchematic.subtypes.add("dagger_blade");
    }
    if (!Config.DISABLED_TOOLS.contains("mace")) {
        event.getRegistry().register(new ItemToolHead("mace_head"));
        ItemSchematic.subtypes.add("mace_head");
    }
    if (Config.ENABLE_SCHEMATICS)
        event.getRegistry().register(new ItemSchematic());
    event.getRegistry().register(new ItemToolHandle());
    event.getRegistry().register(new ItemGuideBook());
    if (Config.ENABLE_TINKERS_COMPAT)
        event.getRegistry().register(new ItemCast());
    if (!Config.DISABLED_TOOLS.contains("pickaxe"))
        event.getRegistry().register(new ItemATPickaxe());
    if (!Config.DISABLED_TOOLS.contains("axe"))
        event.getRegistry().register(new ItemATAxe());
    if (!Config.DISABLED_TOOLS.contains("shovel"))
        event.getRegistry().register(new ItemATShovel());
    if (!Config.DISABLED_TOOLS.contains("hoe"))
        event.getRegistry().register(new ItemATHoe());
    if (!Config.DISABLED_TOOLS.contains("handpick"))
        event.getRegistry().register(new ItemATHandpick());
    if (!Config.DISABLED_TOOLS.contains("hammer"))
        event.getRegistry().register(new ItemATHammer());
    if (!Config.DISABLED_TOOLS.contains("sword"))
        event.getRegistry().register(new ItemATSword());
    if (!Config.DISABLED_TOOLS.contains("dagger"))
        event.getRegistry().register(new ItemATDagger());
    if (!Config.DISABLED_TOOLS.contains("mace"))
        event.getRegistry().register(new ItemATMace());
}
Also used : ItemATShovel(toolbox.common.items.tools.ItemATShovel) ItemATHoe(toolbox.common.items.tools.ItemATHoe) ItemATSword(toolbox.common.items.tools.ItemATSword) ItemATPickaxe(toolbox.common.items.tools.ItemATPickaxe) ItemATHammer(toolbox.common.items.tools.ItemATHammer) ItemToolHandle(toolbox.common.items.parts.ItemToolHandle) ItemCast(toolbox.compat.tconstruct.ItemCast) ItemToolHead(toolbox.common.items.parts.ItemToolHead) ItemATAxe(toolbox.common.items.tools.ItemATAxe) ItemATMace(toolbox.common.items.tools.ItemATMace) ItemATDagger(toolbox.common.items.tools.ItemATDagger) ItemATHandpick(toolbox.common.items.tools.ItemATHandpick) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

Aggregations

SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)1 ItemToolHandle (toolbox.common.items.parts.ItemToolHandle)1 ItemToolHead (toolbox.common.items.parts.ItemToolHead)1 ItemATAxe (toolbox.common.items.tools.ItemATAxe)1 ItemATDagger (toolbox.common.items.tools.ItemATDagger)1 ItemATHammer (toolbox.common.items.tools.ItemATHammer)1 ItemATHandpick (toolbox.common.items.tools.ItemATHandpick)1 ItemATHoe (toolbox.common.items.tools.ItemATHoe)1 ItemATMace (toolbox.common.items.tools.ItemATMace)1 ItemATPickaxe (toolbox.common.items.tools.ItemATPickaxe)1 ItemATShovel (toolbox.common.items.tools.ItemATShovel)1 ItemATSword (toolbox.common.items.tools.ItemATSword)1 ItemCast (toolbox.compat.tconstruct.ItemCast)1