Interface CooldownEvent.Set

    • Method Detail

      • startingCooldown

        Optional<Ticks> startingCooldown()
        Gets the cooldown the item type had beforehand, if it had one at all.
        Returns:
        The cooldown of the item type beforehand
      • originalNewCooldown

        Ticks originalNewCooldown()
        Gets the original new set cooldown at the beginning of the event.
        Returns:
        The originally set cooldown
      • newCooldown

        Ticks newCooldown()
        Gets the new cooldown the item type has for the player.
        Returns:
        The new cooldown of the item type
      • setNewCooldown

        void setNewCooldown​(Ticks ticks)
        Sets the new cooldown for the item type for the player.
        Parameters:
        ticks - The amount of ticks the cooldown should last for