2015-02-17 16:15:16 +01:00
|
|
|
package ellpeck.someprettyrandomstuff.material;
|
|
|
|
|
|
|
|
import ellpeck.someprettyrandomstuff.config.ConfigValues;
|
|
|
|
import ellpeck.someprettyrandomstuff.util.Util;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.init.Items;
|
2015-02-17 16:15:16 +01:00
|
|
|
import net.minecraft.item.Item.ToolMaterial;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.item.ItemStack;
|
2015-02-17 16:15:16 +01:00
|
|
|
import net.minecraftforge.common.util.EnumHelper;
|
|
|
|
|
|
|
|
public class InitItemMaterials{
|
|
|
|
|
|
|
|
public static ToolMaterial toolMaterialEmerald;
|
|
|
|
public static ToolMaterial toolMaterialObsidian;
|
|
|
|
|
|
|
|
public static void init(){
|
|
|
|
Util.logInfo("Initializing Materials...");
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
toolMaterialEmerald = EnumHelper.addToolMaterial("toolMaterialEmerald", ConfigValues.toolEmeraldHarvestLevel, ConfigValues.toolEmeraldMaxUses, ConfigValues.toolEmeraldEfficiency, ConfigValues.toolEmeraldDamage, ConfigValues.toolEmeraldEnchantability).setRepairItem(new ItemStack(Items.emerald));
|
|
|
|
toolMaterialObsidian = EnumHelper.addToolMaterial("toolMaterialObsidian", ConfigValues.toolObsidianHarvestLevel, ConfigValues.toolObsidianMaxUses, ConfigValues.toolObsidianEfficiency, ConfigValues.toolObsidianDamage, ConfigValues.toolObsidianEnchantability).setRepairItem(new ItemStack(Blocks.obsidian));
|
2015-02-17 16:15:16 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|