Class Cooldown
java.lang.Object
valorless.rarespawns.builders.components.Cooldown
Represents a cooldown component that can be applied to an item.
This component defines the cooldown behavior when the item is used.
Links to Bukkit API:
UseCooldownComponentNamespacedKeyItemStackItemMeta
-
Constructor Summary
ConstructorsConstructorDescriptionCooldown(valorless.valorlessutils.config.Config config) Initializes the cooldown component based on the provided configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.bukkit.inventory.ItemStack item) Applies the cooldown component to the given item stack.
-
Constructor Details
-
Cooldown
public Cooldown(valorless.valorlessutils.config.Config config) Initializes the cooldown component based on the provided configuration.Supported config keys:
- use-cooldown.cooldown
- use-cooldown.group
- Parameters:
config- The configuration object containing cooldown settings.- See Also:
-
-
Method Details
-
apply
public void apply(org.bukkit.inventory.ItemStack item) Applies the cooldown component to the given item stack.- Parameters:
item- The item stack to apply the component to.- See Also:
-