/*******************************************************************************
* AbyssalCraft
* Copyright (c) 2012 - 2017 Shinoow.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-3.0.txt
*
* Contributors:
* Shinoow - implementation
******************************************************************************/
package com.shinoow.abyssalcraft.common.enchantments;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnumEnchantmentType;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.inventory.EntityEquipmentSlot;
public class EnchantmentIronWall extends Enchantment {
public EnchantmentIronWall() {
// super(par1, new ResourceLocation("abyssalcraft", "iron_wall"), par2, EnumEnchantmentType.ARMOR_TORSO);
super(Rarity.UNCOMMON, EnumEnchantmentType.ARMOR_CHEST, new EntityEquipmentSlot[]{EntityEquipmentSlot.CHEST});
setName("abyssalcraft.iron_wall");
}
@Override
public int getMinEnchantability(int par1)
{
return 14;
}
@Override
public int getMaxEnchantability(int par1)
{
return super.getMinEnchantability(par1) + 30;
}
@Override
public int getMaxLevel(){
return 1;
}
@Override
public void onUserHurt(EntityLivingBase user, Entity attacker, int level)
{
user.motionX = user.motionY = user.motionZ = 0;
}
}