Cooldown
class Cooldown
A key used by all cooldown functions in net.silkmc.silk.game.cooldown for storing cooldowns.#
Parameters
defaultLength
The cooldown length in milliseconds which is used if no other length has been given to the cooldown functions. This defaults to 50ms = 1 tick.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Executes the given block if the entity currently does not have this cooldown. If the block is executed, this function will call applyCooldown. After the given delay, the cooldown will be removed automatically.