Package net.tnemc.item.component.helper
Class ItemDamage
java.lang.Object
net.tnemc.item.component.helper.ItemDamage
ItemDamage - Controls how much damage should be applied to the item from a given attack
If not specified, a point of durability is removed for every point of damage dealt
The final damage applied to the item is determined by: floor(base + factor * dealt_damage)
The final value may be negative, causing the item to be repaired
- Since:
- 0.2.0.0
- Author:
- creatorfromhell
- See Also:
-
Constructor Details
-
ItemDamage
-
-
Method Details
-
threshold
-
base
-
factor
-
clone
- Throws:
CloneNotSupportedException
-