Interface SwingAnimation.Builder
- All Superinterfaces:
DataComponentBuilder<SwingAnimation>
- Enclosing interface:
SwingAnimation
@Experimental
@NonExtendable
public static interface SwingAnimation.Builder
extends DataComponentBuilder<SwingAnimation>
Builder for
SwingAnimation.-
Method Summary
Modifier and TypeMethodDescriptionduration(@org.checkerframework.checker.index.qual.Positive int duration) Sets the swing animation duration in ticks.type(SwingAnimation.Animation type) Sets the swing animation type.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
type
@Contract(value="_ -> this", mutates="this") SwingAnimation.Builder type(SwingAnimation.Animation type) Sets the swing animation type.- Parameters:
type- animation type- Returns:
- the builder for chaining
- See Also:
-
duration
@Contract(value="_ -> this", mutates="this") SwingAnimation.Builder duration(@org.checkerframework.checker.index.qual.Positive int duration) Sets the swing animation duration in ticks.- Parameters:
duration- duration (>= 0)- Returns:
- the builder for chaining
- See Also:
-