2015-08-29 14:33:25 +02:00
|
|
|
|
/*
|
|
|
|
|
* This file ("InitToolMaterials.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://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD> 2015 Ellpeck
|
|
|
|
|
*/
|
|
|
|
|
|
2015-03-07 12:51:28 +01:00
|
|
|
|
package ellpeck.actuallyadditions.material;
|
2015-02-17 16:15:16 +01:00
|
|
|
|
|
2015-04-24 19:22:03 +02:00
|
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigFloatValues;
|
|
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigIntValues;
|
2015-07-01 21:32:48 +02:00
|
|
|
|
import ellpeck.actuallyadditions.util.ModUtil;
|
2015-02-17 16:15:16 +01:00
|
|
|
|
import net.minecraft.item.Item.ToolMaterial;
|
|
|
|
|
import net.minecraftforge.common.util.EnumHelper;
|
|
|
|
|
|
2015-07-11 05:24:04 +02:00
|
|
|
|
public class InitToolMaterials{
|
2015-02-17 16:15:16 +01:00
|
|
|
|
|
|
|
|
|
public static ToolMaterial toolMaterialEmerald;
|
|
|
|
|
public static ToolMaterial toolMaterialObsidian;
|
2015-07-25 08:34:02 +02:00
|
|
|
|
public static ToolMaterial toolMaterialQuartz;
|
2015-02-17 16:15:16 +01:00
|
|
|
|
|
|
|
|
|
public static void init(){
|
2015-07-11 05:24:04 +02:00
|
|
|
|
ModUtil.LOGGER.info("Initializing Tool Materials...");
|
2015-02-17 16:15:16 +01:00
|
|
|
|
|
2015-04-24 19:22:03 +02:00
|
|
|
|
toolMaterialEmerald = EnumHelper.addToolMaterial("toolMaterialEmerald", ConfigIntValues.EMERALD_HARVEST_LEVEL.getValue(), ConfigIntValues.EMERALD_USES.getValue(), ConfigFloatValues.EMERALD_SPEED.getValue(), ConfigFloatValues.EMERALD_MAX_DAMAGE.getValue(), ConfigIntValues.EMERALD_ENCHANTABILITY.getValue());
|
|
|
|
|
toolMaterialObsidian = EnumHelper.addToolMaterial("toolMaterialObsidian", ConfigIntValues.OBSIDIAN_HARVEST_LEVEL.getValue(), ConfigIntValues.OBSIDIAN_USES.getValue(), ConfigFloatValues.OBSIDIAN_SPEED.getValue(), ConfigFloatValues.OBSIDIAN_MAX_DAMAGE.getValue(), ConfigIntValues.OBSIDIAN_ENCHANTABILITY.getValue());
|
2015-07-25 08:34:02 +02:00
|
|
|
|
toolMaterialQuartz = EnumHelper.addToolMaterial("toolMaterialQuartz", ConfigIntValues.QUARTZ_HARVEST_LEVEL.getValue(), ConfigIntValues.QUARTZ_USES.getValue(), ConfigFloatValues.QUARTZ_SPEED.getValue(), ConfigFloatValues.QUARTZ_MAX_DAMAGE.getValue(), ConfigIntValues.QUARTZ_ENCHANTABILITY.getValue());
|
2015-02-17 16:15:16 +01:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|