Package org.spongepowered.api.data.type
Interface ShieldDamageReduction<T>
public interface ShieldDamageReduction<T>
Defines the amount of damage reduced when blocking with a shield-like
ItemStack.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceThe final amount of blocked damage will beconstantReduction + fractionalReduction * damage -
Method Summary
Modifier and TypeMethodDescriptionof(ShieldDamageReduction.MultiplyAdd config) doubleresolve(DamageSource source, double damage, double angle)
-
Method Details
-
of
-
configuration
T configuration() -
resolve
-