Class Animation
java.lang.Object
de.marcely.bedwars.api.cosmetics.shop.data.Animation
- All Implemented Interfaces:
ActionData
Data for when an animation should be played.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<? extends AnimationHandler> Get all the handlers that play when the animation starts.abstract StringgetId()Returns the unique id of this animations.abstract AnimationLocationGet the location rule used for the animation.getType()Returns the type of this action data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.cosmetics.shop.data.ActionData
as, asAnimation, asImage, asKillMessages, asProductModifier, asSkin
-
Constructor Details
-
Animation
public Animation()
-
-
Method Details
-
getType
Description copied from interface:ActionDataReturns the type of this action data.- Specified by:
getTypein interfaceActionData- Returns:
- The type represented by this data
-
getId
Returns the unique id of this animations.May represent the id that was defined in configs. If none was defined (as it was configured within the item itself), it may be an auto-generated id.
- Returns:
- The id
-
getLocation
Get the location rule used for the animation.- Returns:
- The type of location at which the animation is held
-
getHandlers
Get all the handlers that play when the animation starts.- Returns:
- An immutable list containing this animation's handlers
-