Class SlideAnimation
java.lang.Object
io.github.rysefoxx.inventory.plugin.animator.SlideAnimation
- Since:
- 4/15/2022
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimate(@NotNull InventoryContents contents) This starts the animation for the inventory.static @NotNull SlideAnimation.Builderbuilder(@NotNull org.bukkit.plugin.Plugin plugin) void@Nullable ObjectReturns the identifier of this object, or null if it has none.@Unmodifiable @NotNull List<org.bukkit.scheduler.BukkitTask>getTasks()It returns a list of tasks that are currently runningbooleanReturns true if the click event is blocked.
-
Constructor Details
-
SlideAnimation
public SlideAnimation()
-
-
Method Details
-
builder
@Contract("_ -> new") @NotNull public static @NotNull SlideAnimation.Builder builder(@NotNull @NotNull org.bukkit.plugin.Plugin plugin) -
animate
This starts the animation for the inventory.- Parameters:
contents- The inventory contents to animate.- Throws:
IllegalArgumentException- if invalid data was passed in the builder.
-
isBlockClickEvent
@Internal public boolean isBlockClickEvent()Returns true if the click event is blocked.- Returns:
- The boolean value of the blockClickEvent variable.
-
getTasks
@Internal @NotNull public @Unmodifiable @NotNull List<org.bukkit.scheduler.BukkitTask> getTasks() throws UnsupportedOperationExceptionIt returns a list of tasks that are currently running- Returns:
- A list of BukkitTasks
- Throws:
UnsupportedOperationException- If list gets modified
-
clearTasks
@Internal public void clearTasks() -
getIdentifier
Returns the identifier of this object, or null if it has none.- Returns:
- The identifier of the object.
-