Interface Weapon


@NullMarked @Experimental @NonExtendable public interface Weapon
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Builder for Weapon.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    The number of seconds that blocking is disabled.
    int
    Amount of durability to remove each time the weapon is used to attack.
    Returns a new builder for creating a Weapon.
  • Method Details

    • weapon

      static Weapon.Builder weapon()
      Returns a new builder for creating a Weapon.
      Returns:
      a builder instance.
    • itemDamagePerAttack

      int itemDamagePerAttack()
      Amount of durability to remove each time the weapon is used to attack.
      Returns:
      durability
    • disableBlockingForSeconds

      float disableBlockingForSeconds()
      The number of seconds that blocking is disabled.
      Returns:
      seconds