Interface DamageReduction
Hold how much damage should be blocked in a given attack.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfloat
base()
Get the constant amount of damage to be blocked.static DamageReduction.Builder
float
factor()
Get the fraction of the dealt damage to be blocked.@org.checkerframework.checker.index.qual.Positive float
Get the maximum angle between the users facing direction and the direction of the incoming attack to be blocked.type()
The damage types to block.
-
Method Details
-
damageReduction
-
type
@Nullable RegistryKeySet<DamageType> type()The damage types to block.- Returns:
- the set of damage type
-
horizontalBlockingAngle
@org.checkerframework.checker.index.qual.Positive float horizontalBlockingAngle()Get the maximum angle between the users facing direction and the direction of the incoming attack to be blocked.- Returns:
- the angle
-
base
float base()Get the constant amount of damage to be blocked.- Returns:
- the base
-
factor
float factor()Get the fraction of the dealt damage to be blocked.- Returns:
- the factor
-