Interface JavaUseCooldown.Builder

All Superinterfaces:
GenericBuilder<JavaUseCooldown>
Enclosing interface:
JavaUseCooldown

public static interface JavaUseCooldown.Builder extends GenericBuilder<JavaUseCooldown>
Builder for the use cooldown component.
Since:
2.9.3
  • Method Details

    • seconds

      JavaUseCooldown.Builder seconds(@org.checkerframework.checker.index.qual.Positive float seconds)
      Sets the duration in seconds in which the item cannot be used again.
      Parameters:
      seconds - the cooldown time
      Returns:
      this builder
      Since:
      2.9.3
      See Also:
    • cooldownGroup

      JavaUseCooldown.Builder cooldownGroup(@Nullable Identifier cooldownGroup)
      Sets the cooldown group that this cooldown belongs to. When any item in this group is used, all items in the group are not usable for the amount of time specified in JavaUseCooldown.seconds() null results in the item identifier being specified instead.
      Parameters:
      cooldownGroup - the cooldown group identifier
      Returns:
      this builder
      Since:
      2.9.3
      See Also:
    • build

      Creates the use cooldown component.
      Specified by:
      build in interface GenericBuilder<JavaUseCooldown>
      Returns:
      the new component
      Since:
      2.9.3