use of toolbox.common.items.parts.ItemToolHead 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());
}
Aggregations