Package org.spongepowered.api.data.type
Interface ShieldItemDamageFunction<T>
public interface ShieldItemDamageFunction<T>
Defines the amount of
Keys.ITEM_DURABILITY damage a shield-like
ItemStack takes, when blocking an attack.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceThe final amount of damage will beconstantDamage + fractionalDamage * attackDamage -
Method Summary
-
Method Details
-
of
-
configuration
T configuration() -
resolve
double resolve(double damage)
-