Interface UseCooldown
Holds the contents of cooldown information when an item is used.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe unique resource location to identify this cooldown group.float
seconds()
The amount of seconds the cooldown will be active for.static UseCooldown.Builder
useCooldown
(float seconds) Creates a new builder for use cooldown.
-
Method Details
-
useCooldown
Creates a new builder for use cooldown.- Parameters:
seconds
- the duration in seconds; must be positive- Returns:
- builder
-
seconds
The amount of seconds the cooldown will be active for.- Returns:
- cooldown seconds
-
cooldownGroup
The unique resource location to identify this cooldown group.This allows items to share cooldowns with other items in the same cooldown group, if present.
- Returns:
- cooldown group, or null if not present
-