net.minecraftforge.common
Class ISpecialArmor.ArmorProperties
java.lang.Object
net.minecraftforge.common.ISpecialArmor.ArmorProperties
- All Implemented Interfaces:
- Comparable<ISpecialArmor.ArmorProperties>
- Enclosing interface:
- ISpecialArmor
public static class ISpecialArmor.ArmorProperties
- extends Object
- implements Comparable<ISpecialArmor.ArmorProperties>
Priority
public int Priority
AbsorbMax
public int AbsorbMax
AbsorbRatio
public double AbsorbRatio
Slot
public int Slot
ISpecialArmor.ArmorProperties
public ISpecialArmor.ArmorProperties(int priority,
double ratio,
int max)
ApplyArmor
public static int ApplyArmor(EntityLiving entity,
ItemStack[] inventory,
DamageSource source,
double damage)
- Gathers and applies armor reduction to damage being dealt to a entity.
- Parameters:
entity
- The Entity being damageinventory
- An array of armor itemssource
- The damage source typedamage
- The total damage being done
- Returns:
- The left over damage that has not been absorbed by the armor
compareTo
public int compareTo(ISpecialArmor.ArmorProperties o)
- Specified by:
compareTo
in interface Comparable<ISpecialArmor.ArmorProperties>
toString
public String toString()
- Overrides:
toString
in class Object
copy
public ISpecialArmor.ArmorProperties copy()