接口 BlocksAttacksComponent.DamageReduction

所有超级接口:
ConfigurationSerializable
封闭接口:
BlocksAttacksComponent

public static interface BlocksAttacksComponent.DamageReduction extends ConfigurationSerializable
A damage reduction for a specific set of damage types.
  • 方法详细资料

    • getTypes

      Gets the types to which this reduction applies.
      返回:
      the damage types
    • setTypes

      void setTypes(@Nullable @Nullable DamageType type)
      Sets the types to which this reduction applies.
      参数:
      type - the damage types
    • setTypes

      void setTypes(@Nullable @Nullable Collection<DamageType> types)
      Sets the types to which this reduction applies.
      参数:
      types - the damage types
    • setTypes

      void setTypes(@Nullable @Nullable Tag<DamageType> tag)
      Sets the types to which this reduction applies.
      参数:
      tag - the damage tag
    • getBase

      float getBase()
      Gets the constant amount of damage to be blocked.
      返回:
      base block amount
    • setBase

      void setBase(float base)
      Sets the constant amount of damage to be blocked.
      参数:
      base - new base amount
    • getFactor

      float getFactor()
      Gets the proportion of damage to be blocked.
      返回:
      base blocking factor
    • setFactor

      void setFactor(float factor)
      Sets the proportion of damage to be blocked.
      参数:
      factor - new blocking factor
    • getHorizontalBlockingAngle

      float getHorizontalBlockingAngle()
      Gets the maximum angle at which attacks will be blocked (defaults to 90).
      返回:
      maximum blocking angle
    • setHorizontalBlockingAngle

      void setHorizontalBlockingAngle(float horizontalBlockingAngle)
      Sets the maximum angle at which attacks will be blocked (defaults to 90).
      参数:
      horizontalBlockingAngle - new blocking angle