Interface UseCooldown
Holds the contents of cooldown information when an item is used.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe unique resource location to identify this cooldown group.@Positive floatseconds()The amount of seconds the cooldown will be active for.static UseCooldown.BuilderuseCooldown(@Positive float seconds) Creates a new builder for use cooldown.
-
Method Details
-
useCooldown
@Contract(value="_ -> new", pure=true) static UseCooldown.Builder useCooldown(@Positive float seconds) Creates a new builder for use cooldown.- Parameters:
seconds- the duration in seconds; must be positive- Returns:
- builder
-
seconds
-
cooldownGroup
-