/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Apr 13, 2014, 10:22:24 PM (GMT)]
*/
package vazkii.botania.common.item.equipment.armor.manasteel;
import javax.annotation.Nullable;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemStack;
import vazkii.botania.api.mana.IManaDiscountArmor;
import vazkii.botania.common.lib.LibItemNames;
public class ItemManasteelHelm extends ItemManasteelArmor implements IManaDiscountArmor {
public ItemManasteelHelm() {
this(LibItemNames.MANASTEEL_HELM);
}
public ItemManasteelHelm(String name) {
super(EntityEquipmentSlot.HEAD, name);
}
@Override
public float getDiscount(ItemStack stack, int slot, EntityPlayer player, @Nullable ItemStack tool) {
return hasArmorSet(player) ? 0.1F : 0F;
}
}