Interface DamageReduction


@NullMarked @Experimental @NonExtendable public interface DamageReduction
Hold how much damage should be blocked in a given attack.
See Also:
  • Method Details

    • damageReduction

      @Contract(value="-> new", pure=true) static DamageReduction.Builder damageReduction()
    • 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