Interface SwingAnimationComponent
- All Superinterfaces:
ConfigurationSerializable
Represents a component which determines the animation when using this item.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe diferent types of animation. -
Method Summary
Modifier and TypeMethodDescriptionintGets the animation duration.getType()Gets the animation type.voidsetDuration(int ticks) Sets the animation duration.voidSets the animation typeMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Method Details
-
getType
Gets the animation type.- Returns:
- animation type
-
setType
Sets the animation type- Parameters:
type- animation type
-
getDuration
int getDuration()Gets the animation duration.- Returns:
- animation duration in ticks
-
setDuration
void setDuration(int ticks) Sets the animation duration.- Parameters:
ticks- duration in ticks
-