Search in sources :

Example 1 with ItemBrewLinger

use of com.witchworks.common.item.magic.brew.ItemBrewLinger 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));
    }
}
Also used : ItemSilverArmor(com.witchworks.common.item.equipment.ItemSilverArmor) ItemBrewSplash(com.witchworks.common.item.magic.brew.ItemBrewSplash) Item(net.minecraft.item.Item) ItemKelpSeed(com.witchworks.common.item.food.seed.ItemKelpSeed) ItemMod(com.witchworks.common.item.ItemMod) ItemBrewDrink(com.witchworks.common.item.magic.brew.ItemBrewDrink) ItemBrewLinger(com.witchworks.common.item.magic.brew.ItemBrewLinger) ItemTaglock(com.witchworks.common.item.magic.ItemTaglock) ItemSalt(com.witchworks.common.item.block.ItemSalt) ItemDustyGrimoire(com.witchworks.common.item.magic.books.ItemDustyGrimoire) ItemBlockColor(com.witchworks.common.item.block.ItemBlockColor) ItemShadowBook(com.witchworks.common.item.magic.books.ItemShadowBook) IFluidBlock(net.minecraftforge.fluids.IFluidBlock) Block(net.minecraft.block.Block) IFluidBlock(net.minecraftforge.fluids.IFluidBlock) ItemBlock(net.minecraft.item.ItemBlock) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

Aggregations

ItemMod (com.witchworks.common.item.ItemMod)1 ItemBlockColor (com.witchworks.common.item.block.ItemBlockColor)1 ItemSalt (com.witchworks.common.item.block.ItemSalt)1 ItemSilverArmor (com.witchworks.common.item.equipment.ItemSilverArmor)1 ItemKelpSeed (com.witchworks.common.item.food.seed.ItemKelpSeed)1 ItemTaglock (com.witchworks.common.item.magic.ItemTaglock)1 ItemDustyGrimoire (com.witchworks.common.item.magic.books.ItemDustyGrimoire)1 ItemShadowBook (com.witchworks.common.item.magic.books.ItemShadowBook)1 ItemBrewDrink (com.witchworks.common.item.magic.brew.ItemBrewDrink)1 ItemBrewLinger (com.witchworks.common.item.magic.brew.ItemBrewLinger)1 ItemBrewSplash (com.witchworks.common.item.magic.brew.ItemBrewSplash)1 Block (net.minecraft.block.Block)1 Item (net.minecraft.item.Item)1 ItemBlock (net.minecraft.item.ItemBlock)1 IFluidBlock (net.minecraftforge.fluids.IFluidBlock)1 SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)1