public class ShieldDurability extends ItemDurability
Constructor and Description |
---|
ShieldDurability() |
Modifier and Type | Method and Description |
---|---|
float |
getDamageMultiplier()
If the shield is blocking when the player takes damage by another entity,
the amount of durability reduced by the shield will be however much the
damage taken was.
|
int |
getExtraDurabilityTaken() |
ShieldDurability |
setDamageMultiplier(float damageMultiplier)
If the shield is blocking when the player takes damage by another entity,
the amount of durability reduced by the shield will be however much the
damage taken was.
|
ShieldDurability |
setExtraDurabilityTaken(int extraDurabilityTaken)
Set the Extra Durability taken upon blocking a hit.
|
addSpecialBlock, getAllSpecialBlocks, getBlockBreak, getBlockBreak, getEntityHit, getInstantBlockBreak, getSpecialBlockDurability, setBlockBreak, setEntityHit, setInstantBlockBreak
public int getExtraDurabilityTaken()
public ShieldDurability setExtraDurabilityTaken(int extraDurabilityTaken)
extraDurabilityTaken
- public float getDamageMultiplier()
public ShieldDurability setDamageMultiplier(float damageMultiplier)
damageMultiplier
-