Interface JavaUseCooldown.Builder
- All Superinterfaces:
GenericBuilder<JavaUseCooldown>
- Enclosing interface:
JavaUseCooldown
Builder for the use cooldown component.
- Since:
- 2.9.3
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates the use cooldown component.cooldownGroup(@Nullable Identifier cooldownGroup) Sets the cooldown group that this cooldown belongs to.seconds(@org.checkerframework.checker.index.qual.Positive float seconds) Sets the duration in seconds in which the item cannot be used again.
-
Method Details
-
seconds
Sets the duration in seconds in which the item cannot be used again.- Parameters:
seconds- the cooldown time- Returns:
- this builder
- Since:
- 2.9.3
- See Also:
-
cooldownGroup
Sets the cooldown group that this cooldown belongs to. When any item in this group is used, all items in the group are not usable for the amount of time specified inJavaUseCooldown.seconds().
nullresults in the item identifier being specified instead.- Parameters:
cooldownGroup- the cooldown group identifier- Returns:
- this builder
- Since:
- 2.9.3
- See Also:
-
build
JavaUseCooldown build()Creates the use cooldown component.- Specified by:
buildin interfaceGenericBuilder<JavaUseCooldown>- Returns:
- the new component
- Since:
- 2.9.3
-