/* * This file ("TheWildPlants.java") is part of the Actually Additions mod for Minecraft. * It is created and owned by Ellpeck and distributed * under the Actually Additions License to be found at * http://ellpeck.de/actaddlicense * View the source code at https://github.com/Ellpeck/ActuallyAdditions * * © 2015-2016 Ellpeck */ package de.ellpeck.actuallyadditions.mod.blocks.metalists; import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks; import net.minecraft.block.Block; import net.minecraft.item.EnumRarity; import net.minecraft.util.IStringSerializable; public enum TheWildPlants implements IStringSerializable{ CANOLA("canola", EnumRarity.RARE, InitBlocks.blockCanola), FLAX("flax", EnumRarity.RARE, InitBlocks.blockFlax), RICE("rice", EnumRarity.RARE, InitBlocks.blockRice), COFFEE("coffee", EnumRarity.RARE, InitBlocks.blockCoffee); public final String name; public final EnumRarity rarity; public final Block wildVersionOf; TheWildPlants(String name, EnumRarity rarity, Block wildVersionOf){ this.name = name; this.rarity = rarity; this.wildVersionOf = wildVersionOf; } @Override public String getName(){ return this.name; } }