|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISpecialArmor
This interface is to be implemented by ItemArmor classes. It will allow to modify computation of damage and health loss. Computation will be called before the actual armor computation, which can then be cancelled.
ItemArmor
Nested Class Summary | |
---|---|
static class |
ISpecialArmor.ArmorProperties
|
Method Summary | |
---|---|
void |
damageArmor(EntityLiving entity,
ItemStack stack,
DamageSource source,
int damage,
int slot)
Applies damage to the ItemStack. |
int |
getArmorDisplay(EntityPlayer player,
ItemStack armor,
int slot)
Get the displayed effective armor. |
ISpecialArmor.ArmorProperties |
getProperties(EntityLiving player,
ItemStack armor,
DamageSource source,
double damage,
int slot)
Retrieves the modifiers to be used when calculating armor damage. |
Method Detail |
---|
ISpecialArmor.ArmorProperties getProperties(EntityLiving player, ItemStack armor, DamageSource source, double damage, int slot)
player
- The entity wearing the armor.armor
- The ItemStack of the armor item itself.source
- The source of the damage, which can be used to alter armor
properties based on the type or source of damage.damage
- The total damage being applied to the entityslot
- The armor slot the item is in.
int getArmorDisplay(EntityPlayer player, ItemStack armor, int slot)
player
- The player wearing the armor.armor
- The ItemStack of the armor item itself.slot
- The armor slot the item is in.
void damageArmor(EntityLiving entity, ItemStack stack, DamageSource source, int damage, int slot)
entity
- The entity wearing the armorstack
- The ItemStack of the armor item itself.source
- The source of the damage, which can be used to alter armor
properties based on the type or source of damage.damage
- The amount of damage being applied to the armorslot
- The armor slot the item is in.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |