Interface DamageReduction
Hold how much damage should be blocked in a given attack.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfloatbase()Get the constant amount of damage to be blocked.static DamageReduction.Builderfloatfactor()Get the fraction of the dealt damage to be blocked.@org.checkerframework.checker.index.qual.Positive floatGet 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
 
- 
basefloat base()Get the constant amount of damage to be blocked.- Returns:
- the base
 
- 
factorfloat factor()Get the fraction of the dealt damage to be blocked.- Returns:
- the factor
 
 
-