Interface UseCooldown.Builder
- All Superinterfaces:
DataComponentBuilder<UseCooldown>
- Enclosing interface:
UseCooldown
@Experimental
@NonExtendable
public static interface UseCooldown.Builder
extends DataComponentBuilder<UseCooldown>
-
Method Summary
Modifier and TypeMethodDescriptioncooldownGroup
(@Nullable Key key) Sets a unique resource location for this cooldown group.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
cooldownGroup
Sets a unique resource location for this cooldown group.This allows items to share cooldowns with other items in the same cooldown group.
- Parameters:
key
- the unique resource location; can be null- Returns:
- the builder for chaining
- See Also:
-