2015-08-29 14:33:25 +02:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("InitArmorMaterials.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
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.material;
|
2015-07-11 05:24:04 +02:00
|
|
|
|
2018-05-10 11:38:58 +02:00
|
|
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
2016-03-18 23:47:22 +01:00
|
|
|
import net.minecraft.init.SoundEvents;
|
2015-12-31 15:05:27 +01:00
|
|
|
import net.minecraft.item.ItemArmor.ArmorMaterial;
|
2016-05-16 17:00:29 +02:00
|
|
|
import net.minecraft.util.SoundEvent;
|
2015-07-11 05:24:04 +02:00
|
|
|
import net.minecraftforge.common.util.EnumHelper;
|
|
|
|
|
2016-05-30 23:55:16 +02:00
|
|
|
import java.util.Locale;
|
|
|
|
|
2016-06-17 23:50:38 +02:00
|
|
|
public final class InitArmorMaterials{
|
2015-07-11 05:24:04 +02:00
|
|
|
|
2015-12-31 15:05:27 +01:00
|
|
|
public static ArmorMaterial armorMaterialEmerald;
|
|
|
|
public static ArmorMaterial armorMaterialObsidian;
|
|
|
|
public static ArmorMaterial armorMaterialQuartz;
|
|
|
|
|
|
|
|
public static ArmorMaterial armorMaterialCrystalRed;
|
|
|
|
public static ArmorMaterial armorMaterialCrystalBlue;
|
|
|
|
public static ArmorMaterial armorMaterialCrystalLightBlue;
|
|
|
|
public static ArmorMaterial armorMaterialCrystalBlack;
|
|
|
|
public static ArmorMaterial armorMaterialCrystalGreen;
|
|
|
|
public static ArmorMaterial armorMaterialCrystalWhite;
|
2015-07-11 05:24:04 +02:00
|
|
|
|
2017-02-13 18:42:33 +01:00
|
|
|
public static ArmorMaterial armorMaterialGoggles;
|
|
|
|
|
2015-07-11 05:24:04 +02:00
|
|
|
public static void init(){
|
2018-05-10 11:38:58 +02:00
|
|
|
ActuallyAdditions.LOGGER.info("Initializing Armor Materials...");
|
2015-07-11 05:24:04 +02:00
|
|
|
|
2018-05-10 11:51:20 +02:00
|
|
|
armorMaterialEmerald = addArmorMaterial("armorMaterialEmerald", ActuallyAdditions.MODID+":armor_emerald", 50, new int[]{5, 8, 9, 4}, 15, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 2);
|
|
|
|
armorMaterialObsidian = addArmorMaterial("armorMaterialObsidian", ActuallyAdditions.MODID+":armor_obsidian", 120, new int[]{1, 3, 4, 3}, 10, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 1);
|
|
|
|
armorMaterialQuartz = addArmorMaterial("armorMaterialQuartz", ActuallyAdditions.MODID+":armor_quartz", 20, new int[]{3, 5, 6, 3}, 8, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 1);
|
|
|
|
|
|
|
|
armorMaterialCrystalRed = addArmorMaterial("armorMaterialCrystalRed", ActuallyAdditions.MODID+":armor_crystal_red", 18, new int[]{3, 6, 7, 3}, 9, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 0);
|
|
|
|
armorMaterialCrystalBlue = addArmorMaterial("armorMaterialCrystalBlue", ActuallyAdditions.MODID+":armor_crystal_blue", 18, new int[]{3, 6, 7, 3}, 10, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 0);
|
|
|
|
armorMaterialCrystalLightBlue = addArmorMaterial("armorMaterialCrystalLightBlue", ActuallyAdditions.MODID+":armor_crystal_light_blue", 35, new int[]{4, 7, 8, 4}, 12, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 3);
|
|
|
|
armorMaterialCrystalBlack = addArmorMaterial("armorMaterialCrystalBlack", ActuallyAdditions.MODID+":armor_crystal_black", 12, new int[]{1, 3, 4, 1}, 13, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 0);
|
|
|
|
armorMaterialCrystalGreen = addArmorMaterial("armorMaterialCrystalGreen", ActuallyAdditions.MODID+":armor_crystal_green", 60, new int[]{6, 9, 9, 4}, 18, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 3);
|
|
|
|
armorMaterialCrystalWhite = addArmorMaterial("armorMaterialCrystalWhite", ActuallyAdditions.MODID+":armor_crystal_white", 18, new int[]{3, 6, 6, 3}, 11, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 0);
|
|
|
|
|
|
|
|
armorMaterialGoggles = addArmorMaterial("armorMaterialGoggles", ActuallyAdditions.MODID+":armor_goggles", 0, new int[]{0, 0, 0, 0}, 0, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 0);
|
2016-05-16 17:00:29 +02:00
|
|
|
}
|
2016-01-10 15:29:44 +01:00
|
|
|
|
2018-05-10 11:51:20 +02:00
|
|
|
private static ArmorMaterial addArmorMaterial(String name, String textureName, int durability, int[] reductionAmounts, int enchantability, SoundEvent soundOnEquip, float toughness){
|
|
|
|
return EnumHelper.addArmorMaterial((ActuallyAdditions.MODID+"_"+name).toUpperCase(Locale.ROOT), textureName, durability, reductionAmounts, enchantability, soundOnEquip, toughness);
|
2015-07-11 05:24:04 +02:00
|
|
|
}
|
|
|
|
}
|