2015-08-29 14:33:25 +02:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("InitToolMaterials.java") is part of the Actually Additions mod for Minecraft.
|
2015-08-29 14:33:25 +02:00
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
2016-05-16 22:52:27 +02:00
|
|
|
* http://ellpeck.de/actaddlicense
|
2015-08-29 14:33:25 +02:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2016-05-16 22:54:42 +02:00
|
|
|
* © 2015-2016 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.material;
|
2015-02-17 16:15:16 +01:00
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
2015-02-17 16:15:16 +01:00
|
|
|
import net.minecraft.item.Item.ToolMaterial;
|
|
|
|
import net.minecraftforge.common.util.EnumHelper;
|
|
|
|
|
2016-05-16 17:00:29 +02:00
|
|
|
import java.util.Locale;
|
|
|
|
|
2016-06-17 23:50:38 +02:00
|
|
|
public final 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
|
|
|
|
2015-12-31 15:05:27 +01:00
|
|
|
public static ToolMaterial toolMaterialCrystalRed;
|
|
|
|
public static ToolMaterial toolMaterialCrystalBlue;
|
|
|
|
public static ToolMaterial toolMaterialCrystalLightBlue;
|
|
|
|
public static ToolMaterial toolMaterialCrystalBlack;
|
|
|
|
public static ToolMaterial toolMaterialCrystalGreen;
|
|
|
|
public static ToolMaterial toolMaterialCrystalWhite;
|
|
|
|
|
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
|
|
|
|
2016-05-16 17:00:29 +02:00
|
|
|
toolMaterialEmerald = addToolMaterial("toolMaterialEmerald", 3, 2000, 9.0F, 5.0F, 15);
|
|
|
|
toolMaterialObsidian = addToolMaterial("toolMaterialObsidian", 3, 8000, 4.0F, 2.0F, 15);
|
|
|
|
toolMaterialQuartz = addToolMaterial("toolMaterialQuartz", 2, 280, 6.5F, 2.0F, 10);
|
|
|
|
|
|
|
|
toolMaterialCrystalRed = addToolMaterial("toolMaterialCrystalRed", 2, 300, 7.0F, 2.25F, 12);
|
|
|
|
toolMaterialCrystalBlue = addToolMaterial("toolMaterialCrystalBlue", 2, 300, 7.0F, 2.25F, 12);
|
|
|
|
toolMaterialCrystalLightBlue = addToolMaterial("toolMaterialCrystalLightBlue", 3, 1600, 9.0F, 4.0F, 14);
|
|
|
|
toolMaterialCrystalBlack = addToolMaterial("toolMaterialCrystalBlack", 2, 280, 6.0F, 2.0F, 8);
|
|
|
|
toolMaterialCrystalGreen = addToolMaterial("toolMaterialCrystalGreen", 4, 2200, 9.5F, 5.5F, 18);
|
|
|
|
toolMaterialCrystalWhite = addToolMaterial("toolMaterialCrystalWhite", 2, 280, 6.25F, 2.5F, 15);
|
2015-02-17 16:15:16 +01:00
|
|
|
|
2016-05-16 17:00:29 +02:00
|
|
|
}
|
2015-12-31 15:05:27 +01:00
|
|
|
|
2016-05-16 17:00:29 +02:00
|
|
|
private static ToolMaterial addToolMaterial(String name, int harvestLevel, int maxUses, float efficiency, float damage, int enchantability){
|
|
|
|
return EnumHelper.addToolMaterial((ModUtil.MOD_ID+"_"+name).toUpperCase(Locale.ROOT), harvestLevel, maxUses, efficiency, damage, enchantability);
|
2015-02-17 16:15:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|