public interface ISpecialArmor
ItemArmor
Modifier and Type | Interface and Description |
---|---|
static class |
ISpecialArmor.ArmorProperties |
Modifier and Type | Method and Description |
---|---|
void |
damageArmor(EntityLivingBase 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(EntityLivingBase player,
ItemStack armor,
DamageSource source,
double damage,
int slot)
Retrieves the modifiers to be used when calculating armor damage.
|
ISpecialArmor.ArmorProperties getProperties(EntityLivingBase player, @Nonnull 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, @Nonnull 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(EntityLivingBase entity, @Nonnull 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.