Package org.spongepowered.api.data.type
Interface ShieldDamageReduction.MultiplyAdd.Builder
- All Superinterfaces:
ResettableBuilder<ShieldDamageReduction.MultiplyAdd,ShieldDamageReduction.MultiplyAdd.Builder>
- Enclosing interface:
ShieldDamageReduction.MultiplyAdd
public static interface ShieldDamageReduction.MultiplyAdd.Builder
extends ResettableBuilder<ShieldDamageReduction.MultiplyAdd,ShieldDamageReduction.MultiplyAdd.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()constantReduction(double constant) Sets the constant amount of damage to be blocked.damageTypes(Set<DamageType> damageTypes) Limits thedamage typesthis reduction applies to.damageTypes(Tag<DamageType> tag) Limits thedamage typesthis reduction applies to.fractionalReduction(double fraction) Sets fractional amount of damage to block, where a factor of 1 means that all damage is blocked, and a factor of 0 that no damage is blocked.horizontalBlockingAngle(double angle) Sets the maximum angle between the users facing direction and the direction of the incoming attack.Methods inherited from interface org.spongepowered.api.util.ResettableBuilder
reset
-
Method Details
-
damageTypes
Limits thedamage typesthis reduction applies to.- Parameters:
damageTypes- the affected damage types- Returns:
- This builder, for chaining
-
damageTypes
Limits thedamage typesthis reduction applies to.- Parameters:
tag- the tag defining affected damage types- Returns:
- This builder, for chaining
-
horizontalBlockingAngle
Sets the maximum angle between the users facing direction and the direction of the incoming attack.- Parameters:
angle- the maximum angle- Returns:
- This builder, for chaining
-
constantReduction
Sets the constant amount of damage to be blocked.- Parameters:
constant- a constant amount of damage to block- Returns:
- This builder, for chaining
-
fractionalReduction
Sets fractional amount of damage to block, where a factor of 1 means that all damage is blocked, and a factor of 0 that no damage is blocked.- Parameters:
fraction- fractional amount of damage to block- Returns:
- This builder, for chaining
-
build
-