use of com.witchworks.common.item.magic.brew.ItemBrewDrink in project Witchworks by Um-Mitternacht.
the class CommonRegistration method registerItems.
@SubscribeEvent
public static void registerItems(RegistryEvent.Register<Item> event) {
final IForgeRegistry<Item> registry = event.getRegistry();
//Crops
registerCrop(ACONITUM, new ItemAconitum(), LibItemName.SEED_ACONITUM);
registerCrop(ASPHODEL, new ItemAsphodel(), LibItemName.SEED_ASPHODEL);
registerCrop(BELLADONNA, new ItemBelladonna(), LibItemName.SEED_BELLADONNA);
registerCrop(GINGER, new ItemGinger(), LibItemName.SEED_GINGER);
registerCrop(KELP, new ItemKelp(), new ItemKelpSeed());
registerCrop(MINT, new ItemCrop(LibItemName.MINT, 1, 2F, false), LibItemName.SEED_MINT);
registerCrop(WHITE_SAGE, new ItemCrop(LibItemName.WHITE_SAGE, 1, 0.4F, false), LibItemName.SEED_WHITE_SAGE);
registerCrop(MANDRAKE, new ItemCrop(LibItemName.MANDRAKE, 4, 6F, false), LibItemName.SEED_MANDRAKE);
registerCrop(LAVENDER, new ItemLavender(), LibItemName.SEED_LAVENDER);
registerCrop(THISTLE, new ItemThistle(), LibItemName.SEED_THISTLE);
registerCrop(TULSI, new ItemCrop(LibItemName.TULSI, 1, 0.4F, false), LibItemName.SEED_TULSI);
registerCrop(KENAF, new ItemCrop(LibItemName.KENAF, 4, 6F, false), LibItemName.SEED_KENAF);
registerCrop(SILPHIUM, new ItemCrop(LibItemName.SILPHIUM, 4, 6F, false), LibItemName.SEED_SILPHIUM);
registerCrop(GARLIC, new ItemCrop(LibItemName.GARLIC, 4, 6F, false), LibItemName.SEED_GARLIC);
registerCrop(WORMWOOD, new ItemCrop(LibItemName.WORMWOOD, 4, 0.8F, false), LibItemName.SEED_WORMWOOD);
CropRegistry.getFoods().forEach((crop, item) -> registry.register(item));
CropRegistry.getSeeds().forEach((crop, item) -> registry.register(item));
//Normal Items
registry.registerAll(//Gems
new ItemMod(LibItemName.GARNET), new ItemMod(LibItemName.MOLDAVITE), new ItemMod(LibItemName.NUUMMITE), new ItemMod(LibItemName.TIGERS_EYE), new ItemMod(LibItemName.TOURMALINE), new ItemMod(LibItemName.BLOODSTONE), new ItemMod(LibItemName.JASPER), new ItemMod(LibItemName.GEMSTONE_AMALGAM), new ItemMod(LibItemName.MALACHITE), new ItemMod(LibItemName.AMETHYST), new ItemMod(LibItemName.ALEXANDRITE), new ItemMod(LibItemName.SILVER_POWDER), new ItemMod(LibItemName.SILVER_INGOT), new ItemMod(LibItemName.SILVER_NUGGET), //Other
new ItemHoney(), new ItemSalt(), new ItemMod(LibItemName.WAX), new ItemMod(LibItemName.BEE).setMaxDamage(35), new ItemMod(LibItemName.HONEYCOMB), new ItemMod(LibItemName.EMPTY_HONEYCOMB), new ItemMod(LibItemName.MORTAR_AND_PESTLE), new ItemMod(LibItemName.UNREFINED_CHALK), new ItemBrewDrink(), new ItemBrewSplash(), new ItemBrewLinger(), new ItemMod(LibItemName.GLASS_JAR), //Tools
new ItemSilverPickaxe(), new ItemSilverAxe(), new ItemSilverSpade(), new ItemSilverHoe(), new ItemSilverSword(), new ItemAthame(), new ItemBoline(), new ItemTaglock(), new ItemMod(LibItemName.CHALK_ITEM), new ItemMod(LibItemName.NEEDLE_BONE), //Books
new ItemShadowBook(), new ItemDustyGrimoire(), //Equipment
new ItemSilverArmor(LibItemName.SILVER_HELMET, ModMaterials.ARMOR_SILVER, 1, EntityEquipmentSlot.HEAD), new ItemSilverArmor(LibItemName.SILVER_CHESTPLATE, ModMaterials.ARMOR_SILVER, 1, EntityEquipmentSlot.CHEST), new ItemSilverArmor(LibItemName.SILVER_LEGGINGS, ModMaterials.ARMOR_SILVER, 2, EntityEquipmentSlot.LEGS), new ItemSilverArmor(LibItemName.SILVER_BOOTS, ModMaterials.ARMOR_SILVER, 1, EntityEquipmentSlot.FEET));
//Item Blocks
registry.registerAll(itemBlock(ModBlocks.CROP_ACONITUM), itemBlock(ModBlocks.CROP_ASPHODEL), itemBlock(ModBlocks.CROP_BELLADONNA), itemBlock(ModBlocks.CROP_GINGER), itemBlock(ModBlocks.CROP_KELP), itemBlock(ModBlocks.CROP_MINT), itemBlock(ModBlocks.CROP_SILPHIUM), itemBlock(ModBlocks.CROP_WHITE_SAGE), itemBlock(ModBlocks.CROP_MANDRAKE), itemBlock(ModBlocks.CROP_LAVENDER), itemBlock(ModBlocks.CROP_THISTLE), itemBlock(ModBlocks.CROP_TULSI), itemBlock(ModBlocks.CROP_KENAF), itemBlock(ModBlocks.CROP_GARLIC), itemBlock(ModBlocks.CROP_WORMWOOD), itemBlock(ModBlocks.SILVER_BLOCK), itemBlock(ModBlocks.MOLDAVITE_BLOCK), itemBlock(ModBlocks.COQUINA), itemBlock(ModBlocks.BLOODSTONE_BLOCK), itemBlock(ModBlocks.KETTLE), itemBlock(ModBlocks.ALTAR), itemBlock(ModBlocks.APIARY), itemBlock(ModBlocks.BEEHIVE), itemBlock(ModBlocks.SILVER_ORE), itemBlock(ModBlocks.MOLDAVITE_ORE), itemBlock(ModBlocks.MALACHITE_ORE), itemBlock(ModBlocks.BLOODSTONE_ORE), itemBlock(ModBlocks.TIGERS_EYE_ORE), itemBlock(ModBlocks.NUUMMITE_ORE), itemBlock(ModBlocks.JASPER_ORE), itemBlock(ModBlocks.GARNET_ORE), itemBlock(ModBlocks.TOURMALINE_ORE), itemBlock(ModBlocks.TOURMALINE_BLOCK), itemBlock(ModBlocks.SALT_ORE), itemBlock(ModBlocks.AMETHYST_ORE), itemBlock(ModBlocks.ALEXANDRITE_ORE), itemBlock(ModBlocks.NETHERSTEEL), new ItemBlockColor(ModBlocks.CANDLE_LARGE), new ItemBlockColor(ModBlocks.CANDLE_MEDIUM), new ItemBlockColor(ModBlocks.CANDLE_SMALL), itemBlock(ModBlocks.SALT_BARRIER), itemBlock(ModBlocks.CHALK));
for (final IFluidBlock fluidBlock : Fluids.MOD_FLUID_BLOCKS) {
registry.register(itemBlock((Block) fluidBlock));
}
}
Aggregations